-
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
1 parent
2a34c9a
commit fb73804
Showing
4 changed files
with
55 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const Group = styled.div` | ||
type GroupProps = { | ||
justifyContent?: "center" | "space-between" | ||
maxHeight?: number; | ||
} | ||
|
||
export const Group = styled.div<GroupProps>` | ||
display: flex; | ||
justify-content: center; | ||
justify-content: ${props => (props.justifyContent ?? "center")}; | ||
max-height: ${props => props.maxHeight ? `${props.maxHeight}px` : undefined}; | ||
` |
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,17 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
type TextProps = { | ||
size: "xl" | "l" | "s"; | ||
margin?: number | ||
} | ||
|
||
export const Text = styled.p<TextProps>` | ||
font-size: ${(props) => { | ||
switch (props.size) { | ||
case "xl": return "20px"; | ||
case "l": return "10px"; | ||
case "s": return "18px"; | ||
} | ||
}}; | ||
margin: ${props => props.margin ? `${props.margin}px` : 0}; | ||
` |
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