forked from TEAM-BEAT/BEAT-Client
-
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.
feat: view 바텀 시트 만드는 중 폰트 오류 해결을 위한 commit
- Loading branch information
Showing
11 changed files
with
132 additions
and
23 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 was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/components/commons/bottomSheet/viewBottomSheet/ViewBottomSheet.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,22 @@ | ||
import React from "react"; | ||
|
||
import * as S from "./ViewBottomSheetStyle"; | ||
|
||
import BottomSheet from "../BottomSheet"; | ||
import ContextBox from "@components/commons/contextBox/ContextBox"; | ||
import Context from "@components/commons/contextBox/Context"; | ||
|
||
const ViewBottomSheet = () => { | ||
return ( | ||
<S.ViewBottomSheetWrapper> | ||
<BottomSheet title={"title"}> | ||
<ContextBox padding="2rem 1.6rem"> | ||
<Context subTitle="가격" text="100,000원 (2매)" /> | ||
<Context subTitle="가격" text="100,000원 (2매)" /> | ||
</ContextBox> | ||
</BottomSheet> | ||
</S.ViewBottomSheetWrapper> | ||
); | ||
}; | ||
|
||
export default ViewBottomSheet; |
5 changes: 5 additions & 0 deletions
5
src/components/commons/bottomSheet/viewBottomSheet/ViewBottomSheetStyle.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,5 @@ | ||
import styled from "styled-components"; | ||
|
||
export const ViewBottomSheetWrapper = styled.section` | ||
display: flex; | ||
`; |
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,17 @@ | ||
import * as S from "./ContextStyle"; | ||
|
||
export interface contextPropsTypes { | ||
subTitle: string; | ||
text: string; | ||
} | ||
|
||
const Context = ({ subTitle, text }: contextPropsTypes) => { | ||
return ( | ||
<S.ContextWrapper> | ||
<S.SubTitle>{subTitle}</S.SubTitle> | ||
<S.Text>{text}</S.Text> | ||
</S.ContextWrapper> | ||
); | ||
}; | ||
|
||
export default Context; |
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,14 @@ | ||
import React from "react"; | ||
|
||
import * as S from "./ContextBoxStyle"; | ||
import { contextBoxPropsTypes } from "../../../types/contextBoxPropsTypes"; | ||
|
||
const ContextBox = ({ className, padding, children, ...rest }: contextBoxPropsTypes) => { | ||
return ( | ||
<S.ContextBoxWrapper> | ||
<S.ContextBoxLayout padding={padding}>{children}</S.ContextBoxLayout> | ||
</S.ContextBoxWrapper> | ||
); | ||
}; | ||
|
||
export default ContextBox; |
13 changes: 8 additions & 5 deletions
13
...s/commons/bottomSheet/ContentBoxStyle.tsx → ...ts/commons/contextBox/ContextBoxStyle.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
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,28 @@ | ||
import styled from "styled-components"; | ||
|
||
import { subTitleStyle, textStyle } from "../../../types/contextBoxPropsTypes"; | ||
|
||
export const ContextWrapper = styled.section` | ||
display: flex; | ||
flex-direction: row; | ||
`; | ||
|
||
export const SubTitle = styled.div<subTitleStyle>` | ||
width: ${({ width = "5.4rem" }) => width}; | ||
margin-right: ${({ marginRight = "0.8rem" }) => marginRight}; | ||
color: ${({ theme }) => theme.colors.gray_400}; | ||
/* ${({ theme, customFont = "body1-normal-medi" }) => | ||
theme.fonts[customFont as keyof typeof theme.fonts]}; */ | ||
${({ theme }) => theme.fonts["body1-normal-medi"]} | ||
`; | ||
|
||
export const Text = styled.section<textStyle>` | ||
width: ${({ width = "auto" }) => width}; | ||
color: ${({ theme }) => theme.colors.white}; | ||
${({ theme }) => theme.fonts["body1-normal-medi"]} | ||
`; |
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