-
Notifications
You must be signed in to change notification settings - Fork 1
frontend guide
BEENY edited this page Jun 10, 2025
·
3 revisions
-
Prettier
- ์ธ๋ฏธ์ฝ๋ก : ์ฌ์ฉ
- ๋ฐ์ดํ:
' - ํญ ๋๋น: 2
- ์ค๋ฐ๊ฟ: LF
-
ESLint
-
eslint,eslint-plugin-react-hooks,eslint-plugin-react-refresh -
typescript-eslintํฌํจ
-
-
๋ค์ด๋ฐ ๊ท์น
- ์ปดํฌ๋ํธ/ํ์ด์ง:
PascalCase - ๋ณ์/ํจ์:
camelCase - ํด๋:
kebab-case
- ์ปดํฌ๋ํธ/ํ์ด์ง:
<Routes>
<Route path="/" element={<Home />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/oauth/kakao/callback" element={<KakaoCallback />} />
<Route path="/diary/:diaryId" element={<DiaryDetail />} />
<Route path="/setChatting" element={<SettingPage />} />
<Route path="/chat/:chatId/:character" element={<ChatPage />} />
<Route path="/writing" element={<WritingPage />} />
<Route path="/edit/:chatId" element={<EditPage />} />
<Route path="/comments" element={<Comments />} />
<Route path="/hashtags" element={<Hashtags />} />
<Route path="/hashtag/:id" element={<HashtagDetail />} />
<Route path="/test" element={<Testpage />} />
</Routes>-
์ต๋ ๋๋น ์ ํ: ๋ชจ๋ฐ์ผ ์ฐ์ ์ ๋ต์ ๋ฐ๋ผ
max-width: 600px๋ฑ์ ์ ํ์ ์ฃผ์ด ์ค์ ์ ๋ ฌ -
๊ณ ์ ์์ ์์น:
position: fixed๋ฅผ ์ฌ์ฉํ์ฌ ํ๋จ ๊ณ ์ ์ ๋ ฅ์ฐฝ์ด๋ ๋ฒํผ UI ๊ตฌ์ฑ -
๋ ์ด์์ ์ ๋ ฌ:
display: flex์flex-direction,gap์์ฑ์ ์ฌ์ฉํ์ฌ ์ ์ฐํ ๋ฐฐ์น ์ง์
-
font-size: ์ ๋ชฉ์2rem์ด์, ๋ณธ๋ฌธ์1rem๋ด์ธ ์ฌ์ฉ -
font-family:"Gowun Dodum"๋ฑ ์ฌ์ฉ์ ์ ์ ํฐํธ ์ฌ์ฉ ๊ฐ๋ฅ -
font-weight: ์ ๋ชฉ์bold, ๋ณธ๋ฌธ์normal๋๋500๊ถ์ฅ
- ๋ฐฐ๊ฒฝ์:
#FFF8F8,#FAFAFA,#FEF2F2 - ํ
์คํธ ์์:
#364B76,#6A7282,#1E2A52 - ๊ฐ์กฐ์ ๋๋ ํฌ์ธํธ ์:
#3B82F6,#9FACBA,#FCE4EC,#E0F7FA๋ฑ
- ๊ณตํต Wrapper
const Wrapper = styled.div`
width: 100%;
max-width: 600px;
margin: 0 auto;
`;- ๋ฒํผ
const Button = styled.button`
background-color: #fafafa;
color: #6a7282;
border: none;
cursor: pointer;
`;- ์ฑํ
์ฐฝ, ๋ฆฌ์คํธ์์
overflow-y: auto๋ฐ ์คํฌ๋กค ๋ง์คํน ์ฌ์ฉ - ํฌ๋ก์ค๋ธ๋ผ์ฐ์ง ๊ณ ๋ คํ ์คํฌ๋กค ์ ๊ฑฐ ์ฒ๋ฆฌ
&::-webkit-scrollbar { display: none; }
scrollbar-width: none;
-ms-overflow-style: none;- ๋ฒํผ์
cursor: pointer์ง์ ํ์ -
img์๋alt์์ฑ ์ถ๊ฐ - ์์ ๋๋น ์ถฉ๋ถํ ๊ณ ๋ ค
(์์คํ ์ ์ด ํฐํธ๊ฐ ์์ ๊ฒฝ์ฐ sans-serif)
- Node.js v18 ์ด์ ๊ถ์ฅ
- Vite + SWC ์ฌ์ฉ
- ์คํ ๋ฐฉ๋ฒ:
git clone https://github.com/OpenKetchupSource/Web.git cd Web npm install npm run dev
- Netlify +
_redirectsSPA ๋ผ์ฐํ ๋์ - GitHub Actions๋ก ๋ฆฐํธ/๋น๋ ์๋ํ