Skip to content

Commit 8223571

Browse files
committed
feat(#43): Banner 컴포넌트 생성
1 parent 3eb32a9 commit 8223571

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { style } from "@vanilla-extract/css";
2+
3+
import { colors, semantic } from "@/styles";
4+
5+
export const wrapper = style({
6+
backgroundColor: colors.redOrange[90],
7+
padding: "1.4rem 2.4rem",
8+
});
9+
10+
export const linkWrapper = style({
11+
display: "flex",
12+
alignItems: "center",
13+
gap: "0.4rem",
14+
});
15+
16+
export const icon = style({
17+
color: semantic.icon.black,
18+
});
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"use client";
2+
3+
import Image from "next/image";
4+
import Link from "next/link";
5+
6+
import RightArrowIcon from "@/assets/right-arrow.svg";
7+
import { Bleed } from "@/components/ui/Bleed";
8+
import { HStack, VStack } from "@/components/ui/Stack";
9+
import { Text } from "@/components/ui/Text";
10+
11+
import * as styles from "./Banner.css";
12+
13+
export const Banner = () => {
14+
return (
15+
<Bleed inline={20} className={styles.wrapper}>
16+
<HStack align='center' gap={8}>
17+
<Image
18+
src='/images/store.png'
19+
alt='가게 이미지'
20+
width={55}
21+
height={55}
22+
/>
23+
<VStack gap={4} justify='center'>
24+
<Text typo='body1Sb' color='neutral.10'>
25+
당신의 소중한 가게를 소개해주세요
26+
</Text>
27+
{/* TODO: [가게 등록하기] url로 변경 */}
28+
<Link href='/' className={styles.linkWrapper}>
29+
<Text typo='label2' color='neutral.10'>
30+
가게 등록하기
31+
</Text>
32+
<RightArrowIcon width={16} height={16} className={styles.icon} />
33+
</Link>
34+
</VStack>
35+
</HStack>
36+
</Bleed>
37+
);
38+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Banner } from "./Banner";

0 commit comments

Comments
 (0)