-
Notifications
You must be signed in to change notification settings - Fork 1
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 #92 from prgrms-web-devcourse-final-project/91-des…
…ign/register-dog-page-ui 🎨 Design: 반려견등록 첫 페이지 ui
- Loading branch information
Showing
6 changed files
with
109 additions
and
2 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.
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 * as S from './styles' | ||
import { useModalStore } from '~stores/modalStore' | ||
import { Typo20 } from '~components/Typo' | ||
import { ReactNode } from 'react' | ||
|
||
interface SelectSectionButtonProps { | ||
title: string | ||
description: string | ||
src: string | ||
modal: ReactNode | ||
} | ||
|
||
export default function SelectSectionButton({ title, description, src, modal }: SelectSectionButtonProps) { | ||
const { pushModal } = useModalStore() | ||
|
||
return ( | ||
<S.SelectSectionButton onClick={() => pushModal(modal)}> | ||
<S.TypoWrapper> | ||
<Typo20 weight='700'>{title}</Typo20> | ||
</S.TypoWrapper> | ||
<S.Desc>{description}</S.Desc> | ||
<S.ImageWrapper> | ||
<img src={src} alt='반려견 등록' /> | ||
</S.ImageWrapper> | ||
</S.SelectSectionButton> | ||
) | ||
} |
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,30 @@ | ||
import styled from 'styled-components' | ||
|
||
export const SelectSectionButton = styled.button` | ||
width: 100%; | ||
height: 160px; | ||
padding: 20px 24px; | ||
border: solid 2px ${({ theme }) => theme.colors.grayscale.gc_1}; | ||
border-radius: 12px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
cursor: pointer; | ||
` | ||
|
||
export const TypoWrapper = styled.div` | ||
text-align: start; | ||
max-width: 114px; | ||
` | ||
|
||
export const Desc = styled.div` | ||
color: ${({ theme }) => theme.colors.grayscale.font_3}; | ||
color: gray; | ||
font-size: 13px; | ||
` | ||
|
||
export const ImageWrapper = styled.div` | ||
margin-left: auto; | ||
margin-top: auto; | ||
` |
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,3 +1,21 @@ | ||
import { styled } from 'styled-components' | ||
|
||
export const RegisterDogPage = styled.div`` | ||
export const RegisterDogPage = styled.div` | ||
padding: 120px 20px 24px 20px; | ||
background-color: ${({ theme }) => theme.colors.grayscale.gc_4}; | ||
height: 100dvh; | ||
@media (max-height: 700px) { | ||
padding: 100px 20px 24px 20px; | ||
} | ||
` | ||
|
||
export const TypoWrapper = styled.div` | ||
text-align: start; | ||
margin-bottom: 40px; | ||
` | ||
|
||
export const ButtonWrapper = styled.div` | ||
display: grid; | ||
gap: 12px; | ||
` |