-
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.
- Loading branch information
1 parent
bc728c1
commit efde43c
Showing
10 changed files
with
166 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
import logo from './logo.svg'; | ||
import React from "react" | ||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom" | ||
import './App.css'; | ||
import Header from "./Header.js" | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<img src={logo} className="App-logo" alt="logo" /> | ||
<p> | ||
Edit <code>src/App.js</code> and save to reload. | ||
</p> | ||
<a | ||
className="App-link" | ||
href="https://reactjs.org" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Learn React | ||
</a> | ||
</header> | ||
</div> | ||
); | ||
import Home from "./pages/Home" | ||
import About from "./pages/About" | ||
import Members from "./pages/Members" | ||
import Resources from "./pages/Resources" | ||
|
||
const App = () => { | ||
return ( | ||
<Router> | ||
<Header /> | ||
<Routes> | ||
<Route path="/" element={ | ||
<Home /> | ||
} /> | ||
|
||
<Route path="/about" element={ | ||
<About /> | ||
} /> | ||
|
||
<Route path="/officers" element={ | ||
<Members /> | ||
} /> | ||
|
||
<Route path="/resources" element={ | ||
<Resources /> | ||
} /> | ||
</Routes> | ||
</Router> | ||
); | ||
} | ||
|
||
export default App; |
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,29 @@ | ||
import React from 'react'; | ||
import styled from "styled-components"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const Header = () => { | ||
return ( | ||
<StyledHeader> | ||
TJHSST Quantum Computing Club | ||
<Link to="/">Home</Link> | ||
<Link to="/about">About</Link> | ||
<Link to="/officers">Officers</Link> | ||
<Link to="/resources">Resources</Link> | ||
</StyledHeader> | ||
) | ||
} | ||
|
||
const StyledHeader = styled.div` | ||
font-size: 30px; | ||
font-weight: bold; | ||
text-align: center; | ||
margin-top: 40px; | ||
margin-left: 80px; | ||
margin-right: 80px; | ||
padding-top: 15px; | ||
padding-bottom: 15px; | ||
background: lightskyblue; | ||
` | ||
|
||
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
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,11 @@ | ||
import React from "react" | ||
|
||
const About = () => { | ||
return ( | ||
<div> | ||
About | ||
</div> | ||
) | ||
} | ||
|
||
export default About |
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,11 @@ | ||
import React from "react" | ||
|
||
const Home = () => { | ||
return ( | ||
<div> | ||
Home | ||
</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,11 @@ | ||
import React from "react" | ||
|
||
const Members = () => { | ||
return ( | ||
<div> | ||
Members | ||
</div> | ||
) | ||
} | ||
|
||
export default Members |
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,11 @@ | ||
import React from "react" | ||
|
||
const Resources = () => { | ||
return ( | ||
<div> | ||
Resources | ||
</div> | ||
) | ||
} | ||
|
||
export default Resources |