-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feat/#120
- Loading branch information
Showing
25 changed files
with
401 additions
and
65 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
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
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
40 changes: 0 additions & 40 deletions
40
src/components/Header/components/CategoryHeader/CategoryHeader.css.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
57 changes: 57 additions & 0 deletions
57
src/components/HeaderSection/components/CategoryHeader/CategoryHeader.css.ts
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,57 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
import colors from '@/styles/color'; | ||
import typography from '@/styles/typo'; | ||
|
||
export const bottomHeaderWrapper = style({ | ||
display: 'flex', | ||
flexWrap: 'wrap', | ||
alignItems: 'center', | ||
marginBottom: '20px', | ||
'@media': { | ||
'screen and (max-width: 700px)': { | ||
marginBottom: '13px', | ||
width: '100%', | ||
}, | ||
}, | ||
}); | ||
|
||
export const searchBarWrapper = style({ | ||
marginLeft: 'auto', | ||
'@media': { | ||
'screen and (max-width: 700px)': { | ||
display: 'none', | ||
}, | ||
}, | ||
}); | ||
|
||
export const bottomHeader = style({ | ||
...typography.h3, | ||
display: 'flex', | ||
gap: '27px', | ||
}); | ||
|
||
export const buttonStyles = style({ | ||
...typography.h4, | ||
padding: '12px 0px', | ||
borderRadius: '4px', | ||
cursor: 'pointer', | ||
color: colors.gray11, | ||
transition: 'background-color 0.3s ease, border-color 0.3s ease', | ||
|
||
':hover': { | ||
color: colors.primary10, | ||
borderColor: colors.primary7, | ||
}, | ||
|
||
':active': { | ||
borderColor: colors.primary8, | ||
color: colors.primary12, | ||
}, | ||
'@media': { | ||
'screen and (max-width: 700px)': { | ||
padding: '10px 0px', | ||
fontSize: '16px', | ||
}, | ||
}, | ||
}); |
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
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
27 changes: 27 additions & 0 deletions
27
src/components/HeaderSection/components/MobileHeader/MobileHeader.css.ts
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,27 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
import colors from '@/styles/color'; | ||
|
||
export const stickyHeader = style({ | ||
position: 'sticky', | ||
top: 0, | ||
zIndex: 1, | ||
backdropFilter: 'blur(2px)', | ||
backgroundColor: 'rgba(255,255,255, 0.95)', | ||
borderBottom: `1px solid ${colors.gray3}`, | ||
'@media': { | ||
'screen and (min-width: 700px)': { | ||
display: 'none', | ||
}, | ||
}, | ||
}); | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
margin: '0 auto', | ||
}); | ||
|
||
export const SideNavButton = style({ | ||
cursor: 'pointer', | ||
}); |
39 changes: 39 additions & 0 deletions
39
src/components/HeaderSection/components/MobileHeader/MobileHeader.tsx
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,39 @@ | ||
'use client'; | ||
|
||
import { useSearchParams } from 'next/navigation'; | ||
|
||
// 현재 알림 기능 api 없음으로 주석처리 | ||
// import Alarm from '@/components/Header/components/Alarm'; | ||
// import SlideSideNav from '@/components/SlideSideNav'; | ||
// import useBooleanState from '@/hooks/useBooleanState'; | ||
|
||
import useGetCategory from '@/apis/queryHooks/category/useGetCategory'; | ||
import { Category } from '@/apis/types/category'; | ||
|
||
import MaxLayout from '../../../MaxLayout'; | ||
import CategoryHeader from '../CategoryHeader'; | ||
import MobileUserHeader from '../MobileUserHeader'; | ||
|
||
import * as S from './MobileHeader.css'; | ||
|
||
function MobileHeader() { | ||
const searchParams = useSearchParams(); | ||
const pickCategory = Number(searchParams.get('categoryId')); | ||
|
||
const { data } = useGetCategory({ targetCategoryId: pickCategory }); | ||
|
||
if (!data) return null; | ||
|
||
return ( | ||
<header className={S.stickyHeader}> | ||
<MaxLayout> | ||
<div className={S.container}> | ||
<MobileUserHeader /> | ||
<CategoryHeader data={data as Category[]} /> | ||
</div> | ||
</MaxLayout> | ||
</header> | ||
); | ||
} | ||
|
||
export default MobileHeader; |
Oops, something went wrong.