feat : 프로젝트 전반적인 커밋
SpecialSource Frontend (React) CD / deploy (push) Failing after 1m2s

This commit is contained in:
sungjin.choi committed 2026-11-17 10:21:33 +09:00
1 parent cfda95c1ba
commit a49df04adf
28 files changed
+734 -304

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
import { MENU } from "../constants";
import { POSTS } from "../mocks/posts";
import styles from "./bbs.module.css";
interface Props {
readIds: number[];
onSelect: (cmd: string) => void;
}
export default function MainMenu({ readIds, onSelect }: Props) {
const unread = POSTS.length - readIds.length;
return (
<>
<div className={styles.title}>SPECIALSOURCE.SYSTEM 메인 메뉴</div>
<div className={styles.sub}>번호나 메뉴명을 입력하거나, 줄을 클릭하세요.</div>
<hr className={styles.rule} />
{MENU.map((m) => (
<div key={m.num} className={styles.row} onClick={() => onSelect(String(m.num))}>
<span className={styles.num}>{m.num}.</span>
<span>{m.label}</span>
<span className={styles.dim}>{m.en}</span>
{m.key === "board" && <span className={styles.accent}>(안읽음 {unread})</span>}
{m.key === "viewed" && <span className={styles.accent}>({readIds.length}건)</span>}
</div>
))}
<hr className={styles.rule} />
<div className={styles.footer}>
예) <b>2</b> 또는 <b>board</b> 입력 → 자유게시판 이동
</div>
</>
);
}