-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐จ ๊ณต์ฉ ์ปดํฌ๋ํธ ์ถ๊ฐ (๋๋กญ๋ค์ด, ํค๋, ํ์ด์ง ์ปจํ
์ด๋) (#9)
* feat: svgr ์ค์น ๋ฐ ์ธํ * feat: shared ํด๋ ๋ด์์ tailwind๊ฐ ์๋๋๋๋ก ์ธํ * feat: public ํด๋๋ด assets์ import ๊ฐ๋ฅํ๋๋ก ์ธํ * feat: storybook์์ svgr์ด ๋์๋๋๋ก ์ธํ * feat: header ๊ณตํต ์ปดํฌ๋ํธ ๊ตฌํ * feat: PageContainer ์ปดํฌ๋ํธ ๊ตฌํ * feat: Dropdown ์ปดํฌ๋ํธ ๊ตฌํ ๋ฐ storise ํ์ผ ์์ฑ * feat: page.tsx์ pagecontainer ์ ์ฉ * feat: dropdown, header export ํ์ผ ์ถ๊ฐ * chore: lint ์ ์ฉ * chore: shared ๋ด .gitkeep ์ ๊ฑฐ * feat: dropdown ๋ด use-client ์ถ๊ฐ * feat: PageContainer export ๊ตฌ์กฐ ์์ * setting: next.config.mjs๋ด turbopack ๋์ svg ์ค์ ์ ๊ฑฐ * feat: pageContainer ๋ด import ์์ * feat: dropdown ์ปดํฌ๋ํธ ์์ * chore: dropdown stories ํ์ผ ๋ด ๋ค์ด๋ฐ ์์ * style: dropdown ์ปดํฌ๋ํธ button ๋ด radius ์ถ๊ฐ * feat: Dropdown.stories.tsx ํ์ ๋ช ์ ์ค์ ๋ฐ props ๋ด ํจ์ ์ ์ธํ์ฌ ์ ์ฉ * feat: Header.tsx ๋ด prop type ์์
- Loading branch information
1 parent
3f01365
commit cdf4564
Showing
22 changed files
with
566 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,50 @@ | ||
import IconArrowFront from '/public/assets/icon/arrow-front.svg'; | ||
|
||
import { PageContainer } from '@/widgets/pageContainer/ui/PageContainer'; | ||
export default function Home() { | ||
return ( | ||
<div className="flex flex-row justify-center gap-12 bg-[#666666]"> | ||
<div className="w-72"> | ||
<p className="bg-white text-black">White</p> | ||
<p className="bg-gray01 text-black">Gray 01</p> | ||
<p className="bg-gray02 text-black">Gray 02</p> | ||
<p className="bg-gray03 text-black">Gray 03</p> | ||
<p className="bg-gray04 text-black">Gray 04</p> | ||
<p className="bg-gray05 text-black">Gray 05</p> | ||
<p className="bg-gray06 text-black">Gray 06</p> | ||
<p className="bg-gray07 text-white">Gray 07</p> | ||
</div> | ||
<PageContainer | ||
headerProps={{ | ||
left: <IconArrowFront width="44" height="44" />, | ||
center: <div className="text-black">๋ฉ์ธํ์ด์ง</div>, | ||
right: <button className="w-[44px] h-[44px] pr-2 text-black">๊ฒ์</button>, | ||
}} | ||
> | ||
<div className="mt-[44px] flex flex-col justify-center gap-12 bg-[#666666]"> | ||
<div className="w-72"> | ||
<p className="bg-white text-black">White</p> | ||
<p className="bg-gray01 text-black">Gray 01</p> | ||
<p className="bg-gray02 text-black">Gray 02</p> | ||
<p className="bg-gray03 text-black">Gray 03</p> | ||
<p className="bg-gray04 text-black">Gray 04</p> | ||
<p className="bg-gray05 text-black">Gray 05</p> | ||
<p className="bg-gray06 text-black">Gray 06</p> | ||
<p className="bg-gray07 text-white">Gray 07</p> | ||
</div> | ||
|
||
<div className="w-72"> | ||
<p className="bg-red01 text-black">Red 01</p> | ||
<p className="bg-red02 text-black">Red 02</p> | ||
<p className="bg-red03 text-black">Red 03</p> | ||
<div className="w-72"> | ||
<p className="bg-red01 text-black">Red 01</p> | ||
<p className="bg-red02 text-black">Red 02</p> | ||
<p className="bg-red03 text-black">Red 03</p> | ||
|
||
<div className="h-6" /> | ||
<div className="h-6" /> | ||
|
||
<p className="bg-yellow01 text-black">Yellow 01</p> | ||
<p className="bg-yellow02 text-black">Yellow 02</p> | ||
</div> | ||
<p className="bg-yellow01 text-black">Yellow 01</p> | ||
<p className="bg-yellow02 text-black">Yellow 02</p> | ||
</div> | ||
|
||
<div className="w-72"> | ||
<p className="bg-ashblue01 text-black">Ashblue 01</p> | ||
<p className="bg-ashblue02 text-black">Ashblue 02</p> | ||
<p className="bg-overlay text-white">Overlay</p> | ||
<div className="w-72"> | ||
<p className="bg-ashblue01 text-black">Ashblue 01</p> | ||
<p className="bg-ashblue02 text-black">Ashblue 02</p> | ||
<p className="bg-overlay text-white">Overlay</p> | ||
|
||
<div className="h-6" /> | ||
<div className="h-6" /> | ||
|
||
<p className="bg-mint01 text-black">Mint 01</p> | ||
<p className="bg-mint02 text-black">Mint 02</p> | ||
<p className="bg-mint03 text-black">Mint 03</p> | ||
<p className="bg-mint01 text-black">Mint 01</p> | ||
<p className="bg-mint02 text-black">Mint 02</p> | ||
<p className="bg-mint03 text-black">Mint 03</p> | ||
</div> | ||
</div> | ||
</div> | ||
</PageContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '*.svg' { | ||
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>; | ||
export default content; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
webpack: (config) => { | ||
config.module.rules.push({ | ||
test: /\.svg$/, | ||
use: ["@svgr/webpack"], | ||
}); | ||
return config; | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.