-
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 #17 from kohta9521/develop
add new template child compoennts
- Loading branch information
Showing
22 changed files
with
454 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 React from 'react' | ||
|
||
|
||
// scss import | ||
import styles from './styles/SubPageSecTitle.module.scss' | ||
|
||
// type | ||
export type SubPageSecTitleProps = { | ||
id: number | ||
text: string | ||
color?: 'white' | 'black' | 'red' | ||
} | ||
|
||
|
||
const SubPageSecTitle = ({ | ||
id, | ||
text, | ||
color = 'red' | ||
}: SubPageSecTitleProps ) => { | ||
return ( | ||
<div className={styles.titleBox}> | ||
<span className={`${styles.circle} ${styles[color]}`}></span> | ||
<p className={styles.text}>{text}</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default SubPageSecTitle |
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,54 @@ | ||
.titleBox { | ||
display: flex; | ||
margin: 0 0 60px 0; | ||
padding-top: 80px; | ||
align-items: center; | ||
.circle { | ||
content: " "; | ||
display: block; | ||
width: 14px; | ||
height: 14px; | ||
border-radius: 50%; | ||
background: #ff0211; | ||
margin-right: 16px; | ||
flex-shrink: 0; | ||
} | ||
.text { | ||
font-size: 16px; | ||
font-weight: 600; | ||
} | ||
} | ||
|
||
// props | ||
.white { | ||
background-color: var(--main-white-color); | ||
} | ||
.black { | ||
background-color: var(--main-black-color); | ||
} | ||
.red { | ||
background-color: var(--main-red-color); | ||
} | ||
|
||
@media screen and (max-width: 1024px) { | ||
.titleBox { | ||
display: flex; | ||
margin: 0; | ||
padding-top: 50px; | ||
align-items: center; | ||
.circle { | ||
content: " "; | ||
display: block; | ||
width: 14px; | ||
height: 14px; | ||
border-radius: 50%; | ||
background: #ff0211; | ||
margin-right: 16px; | ||
flex-shrink: 0; | ||
} | ||
.text { | ||
font-size: 16px; | ||
font-weight: 600; | ||
} | ||
} | ||
} |
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.