-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from Kernel360/edit-component-header
공통 컴포넌트: Header UI 변경
- Loading branch information
Showing
18 changed files
with
153 additions
and
95 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { colors } from '@styles/colorPalette'; | ||
|
||
interface HeartProps { | ||
width?: number | ||
height?:number | ||
onClick?:()=>void | ||
} | ||
|
||
function Heart({ | ||
width = 19, height = 16.5, onClick, | ||
}: HeartProps) { | ||
return ( | ||
<svg width={width} height={height} viewBox="0 0 20 17" fill="none" xmlns="http://www.w3.org/2000/svg" onClick={onClick}> | ||
<path d="M9.9999 16.75C9.78324 16.75 9.57074 16.7125 9.3624 16.6375C9.15407 16.5625 8.95824 16.4417 8.7749 16.275L7.2999 14.925C5.48324 13.3083 3.87907 11.7292 2.4874 10.1875C1.09574 8.64583 0.399902 6.96667 0.399902 5.15C0.399902 3.68333 0.899902 2.45833 1.8999 1.475C2.8999 0.491667 4.14157 0 5.6249 0C6.4749 0 7.27907 0.179167 8.0374 0.5375C8.79574 0.895833 9.4499 1.40833 9.9999 2.075C10.5832 1.40833 11.2457 0.895833 11.9874 0.5375C12.7291 0.179167 13.5249 0 14.3749 0C15.8582 0 17.0999 0.491667 18.0999 1.475C19.0999 2.45833 19.5999 3.68333 19.5999 5.15C19.5999 6.96667 18.9041 8.64583 17.5124 10.1875C16.1207 11.7292 14.5166 13.3083 12.6999 14.925L11.2249 16.275C11.0416 16.4417 10.8457 16.5625 10.6374 16.6375C10.4291 16.7125 10.2166 16.75 9.9999 16.75Z" fill={colors.pink} /> | ||
</svg> | ||
); | ||
} | ||
|
||
export default Heart; |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
import Link from 'next/link'; | ||
|
||
import BackArrow from '@components/icons/BackArrow'; | ||
import Logo from '@components/icons/Logo'; | ||
import Text from '@components/shared/text/Text'; | ||
|
||
interface LeftIconProps { | ||
className: string; | ||
} | ||
import { LeftIconProps } from '../types/headerType'; | ||
|
||
function LeftIcon({ className, children, isDisplayLogo }: LeftIconProps) { | ||
if (isDisplayLogo) { | ||
return ( | ||
<li className={className}> | ||
<Link href="/"> | ||
<Logo /> | ||
</Link> | ||
</li> | ||
); | ||
} | ||
|
||
function LeftIcon({ className }: LeftIconProps) { | ||
return ( | ||
<li className={className}> | ||
<BackArrow /> | ||
</li> | ||
<ul className={className}> | ||
<li> | ||
<BackArrow /> | ||
</li> | ||
{children && ( | ||
<li> | ||
<Text>{children}</Text> | ||
</li> | ||
)} | ||
</ul> | ||
); | ||
} | ||
export default LeftIcon; |
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.