generated from microverseinc/readme-template
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 #7 from Yothu/feature/create-full-website
Create full website
- Loading branch information
Showing
16 changed files
with
271 additions
and
44 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,13 +1,13 @@ | ||
{ | ||
"files": { | ||
"main.css": "/static/css/main.3d1847f8.css", | ||
"main.js": "/static/js/main.c5271a03.js", | ||
"main.js": "/static/js/main.7e7c9609.js", | ||
"index.html": "/index.html", | ||
"main.3d1847f8.css.map": "/static/css/main.3d1847f8.css.map", | ||
"main.c5271a03.js.map": "/static/js/main.c5271a03.js.map" | ||
"main.7e7c9609.js.map": "/static/js/main.7e7c9609.js.map" | ||
}, | ||
"entrypoints": [ | ||
"static/css/main.3d1847f8.css", | ||
"static/js/main.c5271a03.js" | ||
"static/js/main.7e7c9609.js" | ||
] | ||
} |
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 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.c5271a03.js"></script><link href="/static/css/main.3d1847f8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.7e7c9609.js"></script><link href="/static/css/main.3d1847f8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
function Header() { | ||
return ( | ||
<header className="container-fluid px-sm-5 p-3 border border-2 border-dark bg-sea-blue border-light-blue"> | ||
<nav className="d-flex justify-content-between"> | ||
<h1 className="text-white m-0">Math Magicians</h1> | ||
<div className="d-flex justify-content-center align-items-center"> | ||
<Link className="route-text px-2 py-1 text-decoration-none text-white" to="/">Home</Link> | ||
<Link className="route-text px-2 py-1 text-decoration-none text-white" to="/calculator">Calculator</Link> | ||
<Link className="route-text px-2 py-1 text-decoration-none text-white" to="/quote">Quote</Link> | ||
</div> | ||
</nav> | ||
</header> | ||
); | ||
} | ||
|
||
export default Header; |
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,42 @@ | ||
import React from 'react'; | ||
import Header from './Header'; | ||
import './Style.css'; | ||
|
||
function Home() { | ||
return ( | ||
<div className="whole-page"> | ||
<Header /> | ||
<section id="home-section" className="whole-section container-fluid px-sm-5 p-3 bg-light-blue"> | ||
<h2 className="text-white py-3">Welcome to Math!</h2> | ||
<div className="home-text-container bg-sea-blue p-3"> | ||
<p className="text-white py-3"> | ||
{' '} | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur elementum vitae lacus eget dapibus. Aliquam volutpat, turpis | ||
interdum dapibus placerat, est neque imperdiet nisl, quis placerat | ||
tortor diam non erat. Suspendisse ultrices bibendum orci, eget varius | ||
eros gravida ac. Donec quis risus quis nulla semper ullamcorper. Mauris | ||
tristique mi dolor, ac aliquet nisi tristique sed. Ut bibendum, magna | ||
at consequat accumsan, nibh quam egestas lorem, rhoncus varius est augue | ||
nec nibh. Nulla facilisi. | ||
{' '} | ||
</p> | ||
<p className="text-white py-3"> | ||
{' '} | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur elementum vitae lacus eget dapibus. Aliquam volutpat, turpis | ||
interdum dapibus placerat, est neque imperdiet nisl, quis placerat | ||
tortor diam non erat. Suspendisse ultrices bibendum orci, eget varius | ||
eros gravida ac. Donec quis risus quis nulla semper ullamcorper. Mauris | ||
tristique mi dolor, ac aliquet nisi tristique sed. Ut bibendum, magna | ||
at consequat accumsan, nibh quam egestas lorem, rhoncus varius est augue | ||
nec nibh. Nulla facilisi. | ||
{' '} | ||
</p> | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
} | ||
|
||
export default Home; |
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 Header from './Header'; | ||
import './Style.css'; | ||
|
||
function Quote() { | ||
return ( | ||
<div className="whole-page"> | ||
<Header /> | ||
<section id="quote-section" className="whole-section bg-light-blue container-fluid d-flex py-auto justify-content-center align-items-center px-sm-5 p-3"> | ||
<p className="quote m-3 p-3 text-white bg-sea-blue"> | ||
Without mathematics, theres nothing you can do. | ||
Everything around you is mathematics. Everything around you is | ||
numbers. - Shakuntala Devi | ||
</p> | ||
</section> | ||
</div> | ||
); | ||
} | ||
|
||
export default Quote; |
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,47 @@ | ||
:root { | ||
--color1: #7395ae; | ||
--color2: #557a95; | ||
--color3: #5d5c61; | ||
} | ||
|
||
.bg-sea-blue { | ||
background-color: var(--color2) !important; | ||
} | ||
|
||
.bg-light-blue { | ||
background-color: var(--color1) !important; | ||
} | ||
|
||
.whole-page { | ||
min-height: 100vh; | ||
} | ||
|
||
.route-text { | ||
font-size: 1.5rem; | ||
background-color: var(--color1); | ||
border-radius: 8px; | ||
margin: 3px 0.5rem; | ||
} | ||
|
||
.route-text:hover { | ||
border: 2px solid white; | ||
margin: 1px 0.5rem; | ||
} | ||
|
||
.whole-section { | ||
min-height: calc(100vh - 85px); | ||
} | ||
|
||
.home-text-container { | ||
border-radius: 8px; | ||
font-size: 1.2rem; | ||
} | ||
|
||
.calculator-text { | ||
font-size: 2rem; | ||
} | ||
|
||
.quote { | ||
font-size: 1.8rem; | ||
border-radius: 10px; | ||
} |
Oops, something went wrong.