-
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
47 changed files
with
625 additions
and
793 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
@use './scss/reset'; | ||
|
||
@import './scss/media'; | ||
|
||
html, | ||
body { | ||
font-family: Lato, 'Noto Sans TC', sans-serif; | ||
|
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,18 @@ | ||
import styles from './styles.module.scss'; | ||
|
||
const Title = ({ title, subtitle, titleColor, titleClassName, size }) => { | ||
let titleSize = styles.title_L; | ||
if (size === 'm') titleSize = styles.title_M; | ||
if (size === 's') titleSize = styles.title_S; | ||
|
||
return ( | ||
<div className={`${styles.title_container} ${titleClassName}`}> | ||
<h1 className={titleSize} style={{ color: titleColor }}> | ||
{title} | ||
</h1> | ||
{subtitle && <p className={styles.subtitle}>{subtitle}</p>} | ||
</div> | ||
); | ||
}; | ||
|
||
export { Title }; |
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,44 @@ | ||
@use '../../scss/space' as space; | ||
@use '../../scss/font' as font; | ||
|
||
.title_container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: space.$space_1; | ||
|
||
width: 100%; | ||
|
||
text-align: center; | ||
} | ||
|
||
.title { | ||
&_L { | ||
font-size: font.$h1; | ||
font-weight: 900; | ||
line-height: 160%; | ||
} | ||
|
||
&_M { | ||
font-size: font.$h2; | ||
font-weight: 700; | ||
line-height: 140%; | ||
} | ||
|
||
&_S { | ||
font-size: font.$h3; | ||
font-weight: 700; | ||
line-height: 120%; | ||
} | ||
} | ||
|
||
.subtitle { | ||
font-size: font.$h4; | ||
font-weight: 500; | ||
line-height: 100%; | ||
color: #747b88; | ||
|
||
& a { | ||
color: #747b88; | ||
text-decoration: underline; | ||
} | ||
} |
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,12 @@ | ||
import { Image } from '@/Components'; | ||
import styles from './styles.module.scss'; | ||
|
||
export const LayoutCol1 = ({ baseClassName, children, bgImages, layout }) => { | ||
const layoutClass = layout === 'full' ? styles.layout_full : styles.layout_center_col; | ||
return ( | ||
<section className={`${styles.base} ${baseClassName}`}> | ||
{bgImages && <Image images={bgImages} className={styles.bg} />} | ||
<div className={layoutClass}>{children}</div> | ||
</section> | ||
); | ||
}; |
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,45 @@ | ||
@use '../../scss/space' as space; | ||
|
||
.base { | ||
position: relative; | ||
overflow-x: hidden; | ||
overflow-y: scroll; | ||
height: 100vh; | ||
|
||
&::-webkit-scrollbar { | ||
display: none; | ||
} | ||
} | ||
|
||
.bg { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
%base_layout { | ||
position: relative; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
gap: space.$space_3; | ||
align-items: center; | ||
|
||
width: 100%; | ||
padding: space.$space_3; | ||
} | ||
|
||
.layout_full { | ||
@extend %base_layout; | ||
|
||
justify-content: center; | ||
height: 100%; | ||
} | ||
|
||
.layout_center_col { | ||
@extend %base_layout; | ||
|
||
max-width: 800px; | ||
margin: 0 auto space.$space_3; | ||
} |
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 @@ | ||
export { LayoutCol1 } from './LayoutCol1'; |
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
Oops, something went wrong.