-
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.
Merge branch 'main' into chore/add-github-actions-deployment
- Loading branch information
Showing
15 changed files
with
238 additions
and
9 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
File renamed without changes.
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,37 @@ | ||
import styles from "./gap-section.module.scss"; | ||
import Grid from "../../common/grid/Grid"; | ||
import Card from "../../ui/card/Card"; | ||
|
||
type Props = {}; | ||
|
||
const GapSection = (props: Props) => { | ||
return ( | ||
<Grid className={`${styles.grid}`}> | ||
<Card content={<MarginBox spacingSize="2" />} details="extra small" /> | ||
<Card content={<MarginBox spacingSize="4" />} details="small" /> | ||
<Card content={<MarginBox spacingSize="6" />} details="medium" /> | ||
<Card content={<MarginBox spacingSize="8" />} details="large" /> | ||
<Card content={<MarginBox spacingSize="8" />} details="extra large" /> | ||
<Card content={<MarginBox spacingSize="16" />} details="2XL" /> | ||
</Grid> | ||
); | ||
}; | ||
|
||
type MarginBoxProps = { | ||
spacingSize: string; | ||
}; | ||
|
||
const MarginBox = ({ spacingSize }: MarginBoxProps) => { | ||
return ( | ||
<div className={`${styles.gap_wrapper}`}> | ||
<div>{spacingSize}</div> | ||
<div | ||
className={`${styles.gap_content}`} | ||
style={{ width: spacingSize + "px " }} | ||
></div> | ||
<p style={{ textTransform: "none" }}>px</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default GapSection; |
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,18 @@ | ||
@import "../../../styles/variables/colors"; | ||
@import "../../../styles/variables/border"; | ||
@import "../../../styles/variables/spacing"; | ||
|
||
.grid { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: $lg; | ||
} | ||
|
||
.gap_wrapper { | ||
display: flex; | ||
align-items: center; | ||
height: 100%; | ||
.gap_content { | ||
background-color: lightblue; | ||
height: 100%; | ||
} | ||
} |
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,34 @@ | ||
import Grid from "../../common/grid/Grid"; | ||
import Card from "../../ui/card/Card"; | ||
import styles from "./margin-section.module.scss"; | ||
|
||
type Props = {}; | ||
|
||
const MarginSection = (props: Props) => { | ||
return ( | ||
<Grid className={`${styles.grid}`}> | ||
<Card content={<MarginBox spacingSize="2px" />} details="extra small" /> | ||
<Card content={<MarginBox spacingSize="4px" />} details="small" /> | ||
<Card content={<MarginBox spacingSize="6px" />} details="medium" /> | ||
<Card content={<MarginBox spacingSize="8px" />} details="large" /> | ||
<Card content={<MarginBox spacingSize="8px" />} details="extra large" /> | ||
<Card content={<MarginBox spacingSize="16px" />} details="2XL" /> | ||
</Grid> | ||
); | ||
}; | ||
|
||
type MarginBoxProps = { | ||
spacingSize: string; | ||
}; | ||
|
||
const MarginBox = ({ spacingSize }: MarginBoxProps) => { | ||
return ( | ||
<div className={`${styles.margin_wrapper}`}> | ||
<div className={`${styles.margin_content}`} style={{ margin: spacingSize }}> | ||
{spacingSize} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MarginSection; |
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 "../../../styles/variables/colors"; | ||
@import "../../../styles/variables/border"; | ||
@import "../../../styles/variables/spacing"; | ||
|
||
.grid { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: $lg; | ||
} | ||
|
||
.margin_wrapper { | ||
background-color: orange; | ||
border-radius: $sm; | ||
.margin_content { | ||
text-align: center; | ||
text-transform: capitalize; | ||
border: $thin solid black; | ||
border-radius: $sm; | ||
} | ||
} |
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 Grid from "../../common/grid/Grid"; | ||
import Card from "../../ui/card/Card"; | ||
import styles from "./padding-section.module.scss"; | ||
|
||
const PaddingSection = () => { | ||
return ( | ||
<Grid className={`${styles.grid}`}> | ||
<Card content={<PaddingBox spacingSize="2px" />} details="extra small" /> | ||
<Card content={<PaddingBox spacingSize="4px" />} details="small" /> | ||
<Card content={<PaddingBox spacingSize="6px" />} details="medium" /> | ||
<Card content={<PaddingBox spacingSize="8px" />} details="large" /> | ||
<Card content={<PaddingBox spacingSize="8px" />} details="extra large" /> | ||
<Card content={<PaddingBox spacingSize="16px" />} details="2XL" /> | ||
</Grid> | ||
); | ||
}; | ||
|
||
type PaddingBoxProps = { | ||
spacingSize: string; | ||
}; | ||
|
||
const PaddingBox = ({ spacingSize }: PaddingBoxProps) => { | ||
return ( | ||
<div className={`${styles.padding_content}`} style={{ padding: spacingSize }}> | ||
{spacingSize} | ||
</div> | ||
); | ||
}; | ||
|
||
export default PaddingSection; |
16 changes: 16 additions & 0 deletions
16
src/components/sections/padding/padding-section.module.scss
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,16 @@ | ||
@import "../../../styles/variables/colors"; | ||
@import "../../../styles/variables//border"; | ||
@import '../../../styles/variables/spacing'; | ||
|
||
.grid { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: $lg; | ||
} | ||
|
||
.padding_content { | ||
background-color: rgb(154, 255, 114); | ||
text-align: center; | ||
text-transform: capitalize; | ||
border: $thin solid gray; | ||
border-radius: $sm; | ||
} |
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 styles from "./card.module.scss"; | ||
|
||
type CardProps = { | ||
content: React.ReactNode; | ||
details: string; | ||
}; | ||
|
||
const Card = ({ content, details }: CardProps) => { | ||
return ( | ||
<div className={`${styles.card}`}> | ||
{content} | ||
<p className="">{details}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Card; |
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,15 @@ | ||
@import "../../../styles/variables/colors"; | ||
@import '../../../styles/variables/border'; | ||
|
||
.card { | ||
max-width: 300px; | ||
min-width: 150px; | ||
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); | ||
padding: 8px 16px; | ||
// border: $regular solid rgb(121, 121, 121); | ||
border-radius: $sm; | ||
display: flex; | ||
align-items: center; | ||
column-gap: 8px; | ||
text-transform: capitalize; | ||
} |
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,13 @@ | ||
// thickness | ||
$none: 0px; | ||
$thin: 1px; | ||
$regular: 2px; | ||
$thick: 3px; | ||
|
||
// radius | ||
$none: 0px; | ||
$xs: 2px; | ||
$sm: 4px; | ||
$md: 6px; | ||
$lg: 8px; | ||
$xl: 16px; |
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,6 @@ | ||
$none: 0px; | ||
$xs: 2px; | ||
$sm: 4px; | ||
$md: 6px; | ||
$lg: 8px; | ||
$xl: 16px; |