-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,291 additions
and
1,250 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
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,70 +1,70 @@ | ||
import { Row } from "@/styles"; | ||
import styled, { css } from "styled-components"; | ||
|
||
export const ConfirmModalWrapper = styled.div<{ | ||
$shouldHavePaddingBottom?: boolean; | ||
$wasConfirmed?: boolean; | ||
}>` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
gap: 1rem; | ||
padding: 1rem; | ||
text-align: center; | ||
background-color: ${({ theme }) => theme.colors.green["25"]}; | ||
animation-name: modalConfirmTransition; | ||
animation-duration: 2s; | ||
${({ $wasConfirmed }) => | ||
$wasConfirmed && | ||
css` | ||
@keyframes modalConfirmTransition { | ||
from { | ||
background-color: ${({ theme }) => theme.colors.green["25"]}; | ||
} | ||
to { | ||
background-color: ${({ theme }) => theme.colors.green.default}; | ||
} | ||
} | ||
`} | ||
${({ $shouldHavePaddingBottom }) => | ||
$shouldHavePaddingBottom | ||
? css` | ||
padding-bottom: 3rem; | ||
` | ||
: css` | ||
p { | ||
margin-bottom: 0.6rem; | ||
} | ||
`}; | ||
`; | ||
|
||
export const ConfirmModalText = styled.p` | ||
font-size: 1.33rem; | ||
font-weight: 500; | ||
line-height: 1.4rem; | ||
color: ${({ theme }) => theme.colors.neutral.default}; | ||
@media (max-width: 374px) { | ||
font-size: 1.2rem; | ||
} | ||
`; | ||
|
||
export const ConfirmModalButtons = styled(Row)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
@media (max-width: 374px) { | ||
flex-direction: column; | ||
} | ||
div { | ||
height: 2rem; | ||
width: 10rem; | ||
} | ||
`; | ||
import { Row } from "@/styles"; | ||
import styled, { css } from "styled-components"; | ||
|
||
export const ConfirmModalWrapper = styled.div<{ | ||
$shouldHavePaddingBottom?: boolean; | ||
$wasConfirmed?: boolean; | ||
}>` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
gap: 1rem; | ||
padding: 1rem; | ||
text-align: center; | ||
background-color: ${({ theme }) => theme.colors.green["25"]}; | ||
animation-name: modalConfirmTransition; | ||
animation-duration: 2s; | ||
${({ $wasConfirmed }) => | ||
$wasConfirmed && | ||
css` | ||
@keyframes modalConfirmTransition { | ||
from { | ||
background-color: ${({ theme }) => theme.colors.green["25"]}; | ||
} | ||
to { | ||
background-color: ${({ theme }) => theme.colors.green.default}; | ||
} | ||
} | ||
`} | ||
${({ $shouldHavePaddingBottom }) => | ||
$shouldHavePaddingBottom | ||
? css` | ||
padding-bottom: 3rem; | ||
` | ||
: css` | ||
p { | ||
margin-bottom: 0.6rem; | ||
} | ||
`}; | ||
`; | ||
|
||
export const ConfirmModalText = styled.p` | ||
font-size: 1.33rem; | ||
font-weight: 500; | ||
line-height: 1.4rem; | ||
color: ${({ theme }) => theme.colors.neutral.default}; | ||
@media (max-width: 374px) { | ||
font-size: 1.2rem; | ||
} | ||
`; | ||
|
||
export const ConfirmModalButtons = styled(Row)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
@media (max-width: 374px) { | ||
flex-direction: column; | ||
} | ||
div { | ||
height: 2.5rem; | ||
width: 10rem; | ||
} | ||
`; |
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,33 +1,37 @@ | ||
import Image from "next/image"; | ||
import { IconArea, TextMenu } from "../styles"; | ||
import { OptionMenuProps } from "@/assets"; | ||
import { CustomLink } from "@/components"; | ||
|
||
const OptionMenu = ({ | ||
name, | ||
iconUnselect, | ||
iconSelect, | ||
path, | ||
alt, | ||
onClick, | ||
$isSelected, | ||
color, | ||
$highlightTextColor | ||
}: OptionMenuProps) => { | ||
return ( | ||
<button onClick={onClick}> | ||
<CustomLink $flexDirection="column" href={path}> | ||
<IconArea $backgroundColor={color} $isClicked={$isSelected}> | ||
<Image src={$isSelected ? iconSelect : iconUnselect} alt={alt} /> | ||
</IconArea> | ||
<TextMenu | ||
$highlightTextColor={$highlightTextColor} | ||
$isClicked={$isSelected}> | ||
{name} | ||
</TextMenu> | ||
</CustomLink> | ||
</button> | ||
); | ||
}; | ||
|
||
export default OptionMenu; | ||
import Image from "next/image"; | ||
import { IconArea, TextMenu } from "../styles"; | ||
import { OptionMenuProps } from "@/assets"; | ||
import { CustomLink } from "@/components"; | ||
|
||
const OptionMenu = ({ | ||
name, | ||
iconUnselect, | ||
iconSelect, | ||
path, | ||
alt, | ||
$isSelected, | ||
color, | ||
$highlightTextColor | ||
}: OptionMenuProps) => { | ||
return ( | ||
<CustomLink | ||
$flexDirection="column" | ||
href={path}> | ||
<IconArea | ||
$backgroundColor={color} | ||
$isClicked={$isSelected}> | ||
<Image | ||
src={$isSelected ? iconSelect : iconUnselect} | ||
alt={alt} | ||
/> | ||
</IconArea> | ||
<TextMenu | ||
$highlightTextColor={$highlightTextColor} | ||
$isClicked={$isSelected}> | ||
{name} | ||
</TextMenu> | ||
</CustomLink> | ||
); | ||
}; | ||
|
||
export default OptionMenu; |
Oops, something went wrong.