-
Notifications
You must be signed in to change notification settings - Fork 98
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
af70b7d
commit 495f708
Showing
5 changed files
with
121 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import styles from "../Conclusions/Conclusion.module.css"; | ||
import ConclusionBox from "./ConclusionBox/ConclusionBox"; | ||
|
||
function Conclusion({ handleOnClick, conclusionbox, getEpNum }) { | ||
|
||
return ( | ||
<> | ||
<button className={styles.button} onClick={handleOnClick}>Conclusion</button> | ||
{conclusionbox ? <ConclusionBox epNum={getEpNum()} /> : ""} | ||
</> | ||
); | ||
} | ||
|
||
export default Conclusion; |
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 @@ | ||
.button { | ||
background-color: rgb(255, 221, 0); | ||
color: black; | ||
height: 50px; | ||
width: 300px; | ||
margin-left: 39%; | ||
margin-top: 10px; | ||
border: 2px solid black; | ||
border-radius: 10px; | ||
font-size: 1.3rem; | ||
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; | ||
} |
14 changes: 14 additions & 0 deletions
14
src/components/Conclusions/ConclusionBox/ConclusionBox.jsx
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 styles from "../ConclusionBox/ConclusionBox.module.css"; | ||
import quotes from "../../../components/Quotes/quotes.json"; | ||
|
||
function ConclusionBox({ epNum }) { | ||
return( | ||
<> | ||
<div className={styles.box}> | ||
{quotes[epNum-1].quote} | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default ConclusionBox; |
12 changes: 12 additions & 0 deletions
12
src/components/Conclusions/ConclusionBox/ConclusionBox.module.css
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 @@ | ||
.box { | ||
background-color: rgb(38, 110, 86); | ||
color: white; | ||
height: 95px; | ||
width: 800px; | ||
border: 2px solid black; | ||
border-radius: 10px; | ||
margin-left: 22%; | ||
margin-top: 5px; | ||
padding: 10px 20px; | ||
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; | ||
} |