260706_2_로그인 인증 검토

This commit is contained in:
2026-07-07 20:40:10 +09:00
parent f8633bb1fe
commit 5da0260be3
29 changed files with 720 additions and 336 deletions
+2 -51
View File
@@ -12,7 +12,7 @@
import { ui_locales, currentLanguageIndex } from "@ui/ui_template_locale";
import { createButton, createCard, createTag } from "@ui/ui_template_elements";
import { navigateTo } from "../A00_Common/router";
import { ROUTES, AUTH_TOKEN_KEY } from "@config/config_frontend";
import { ROUTES } from "@config/config_frontend";
import "./A01_Home_UI_Style.css";
/** locale 헬퍼 */
@@ -46,11 +46,6 @@ function onA01_Home_Explore_Click(): void {
navigateTo(ROUTES.A02_PROG_DETAIL);
}
function navigateToDevPage(route: string): void {
localStorage.setItem(AUTH_TOKEN_KEY, "dev-temp-token");
navigateTo(route as never);
}
/* -----------------------------------------------------------------------------
* 섹션 빌더
* -------------------------------------------------------------------------- */
@@ -150,56 +145,12 @@ function buildFeatures(): HTMLElement {
return section;
}
function buildDevMenu(): HTMLElement {
const section = document.createElement("section");
section.className = "a01-section a01-dev-menu";
section.style.opacity = "0.6";
section.style.borderTop = "2px dashed var(--color-slate)";
section.style.marginTop = "var(--spacing-48)";
section.style.paddingTop = "var(--spacing-48)";
const heading = document.createElement("h2");
heading.className = "a01-section__title";
heading.textContent = "🔧 개발 모드 - B 그룹 테스트";
const grid = document.createElement("div");
grid.className = "a01-feature-grid";
grid.style.gridTemplateColumns = "repeat(auto-fit, minmax(200px, 1fr))";
const bPages: [string, string][] = [
[ROUTES.B01_ACCOUNT, "B01 · 계정 상세"],
[ROUTES.B02_PROJ_REGISTER, "B02 · 프로젝트 등록"],
[ROUTES.B03_FILE_INPUT, "B03 · 파일 입력"],
[ROUTES.B04_WF1_SURFACE, "B04 · 지표면 분석"],
[ROUTES.B05_WF2_ROUTE, "B05 · 경로 설계"],
[ROUTES.B06_WF3_PROFILE_CROSS, "B06 · 종횡단 생성"],
[ROUTES.B07_WF4_DESIGN_DETAIL, "B07 · 상세 설계"],
[ROUTES.B08_WF5_QUANTITY, "B08 · 수량 산출"],
[ROUTES.B09_WF6_ESTIMATION, "B09 · 견적/문서"],
[ROUTES.B10_PAYMENT, "B10 · 결재"],
[ROUTES.B11_STATUS, "B11 · 상태 출력"],
];
for (const [route, label] of bPages) {
const btn = createButton({
label,
variant: "ghost",
onClick: () => navigateToDevPage(route),
});
btn.style.width = "100%";
grid.append(btn);
}
section.append(heading, grid);
return section;
}
/* -----------------------------------------------------------------------------
* 페이지 진입점
* -------------------------------------------------------------------------- */
export function renderA01Home(root: HTMLElement): void {
const page = document.createElement("div");
page.className = "a01-home";
page.append(buildHero(), buildNews(), buildFeatures(), buildDevMenu());
page.append(buildHero(), buildNews(), buildFeatures());
root.append(page);
}