Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Search 컴포넌트 구현 #2

Merged
merged 3 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
}
2 changes: 2 additions & 0 deletions src/styles/rootStyles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { style } from '@vanilla-extract/css';

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