Skip to content

Commit

Permalink
feat: Search 컴포넌트 - 베이스 UI 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
eggmun98 committed Aug 17, 2024
1 parent e6bd98d commit e370fd1
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 2 deletions.
Binary file added public/images/buttons/readingGlasses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import Header from '@/components/Layouts/Header/Header';
import Search from '@/components/Layouts/Search/Search';
import * as styles from '@/styles/rootStyles.css';

export default function RootPage() {
return (
<div className={styles.wrapper}>
<Header />
<Search />
</div>
);
}
40 changes: 40 additions & 0 deletions src/components/Layouts/Search/Search.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { style } from '@vanilla-extract/css';

export const wrapper = style({
display: 'flex',
flexDirection: 'row',
backgroundColor: '#fff',

width: '30dvw',
height: '50px',
padding: '10px 20px',
borderRadius: '50px',

cursor: 'pointer',
});

export const textInput = style({
outlineColor: '#fff',
fontSize: '16px',
});

export const glassesWrapper = style({
display: 'flex',
flexDirection: 'row',
// justifyContent: 'flex-end',
// width: '5%',
});

export const tagWrapper = style({
display: 'flex',
flexDirection: 'row',
// width: '95%',
marginRight: 'auto',
});

export const tagBox = style({
padding: '6px',
borderRadius: '50px',
backgroundColor: '#6A6868',
marginRight: '10px',
});
19 changes: 19 additions & 0 deletions src/components/Layouts/Search/Search.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Image from 'next/image';
import * as styles from './Search.css';

export default function Search() {
return (
<div className={styles.wrapper}>
<div className={styles.tagWrapper}>
{new Array(5).fill('React').map((el) => (
<div key="test" className={styles.tagBox}>
{el}
</div>
))}
</div>
<div className={styles.glassesWrapper}>
<Image src="/images/buttons/readingGlasses.png" alt="ReadingGlasses" width={22} height={30} />
</div>
</div>
);
}
4 changes: 2 additions & 2 deletions src/styles/rootStyles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { style } from '@vanilla-extract/css';

export const wrapper = style({
display: 'flex',
flexDirection: 'row',
justifyContent: 'center',
flexDirection: 'column',
alignItems: 'center',
});

0 comments on commit e370fd1

Please sign in to comment.