Added header & footer

This commit is contained in:
Brian Huang 2021-11-07 19:49:00 -05:00
parent 2c2f6741a1
commit 457f244135
11 changed files with 16555 additions and 0 deletions

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
.vscode
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

16325
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

41
package.json Normal file
View File

@ -0,0 +1,41 @@
{
"name": "oem-automation-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"bootstrap": "^5.1.3",
"react": "^17.0.2",
"react-bootstrap": "^2.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.0.1",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

43
public/index.html Normal file
View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/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="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>

9
src/App.css Normal file
View File

@ -0,0 +1,9 @@
.page-container{
display: flex;
flex-direction: column;
min-height: 100vh;
}
.content-wrap{
flex:1;
}

19
src/App.js Normal file
View File

@ -0,0 +1,19 @@
import './App.css';
import Nav from './components/Nav';
import Footer from './components/Footer';
function App() {
return (
<div className="page-container">
<div className="content-wrap">
<Nav />
{/* Not sure what to put for body content yet */}
</div>
<Footer />
</div>
);
}
export default App;

View File

@ -0,0 +1,9 @@
.main-footer{
color: white;
background-color: black;
padding-top: 3em;
position: relative;
bottom: 0;
width: 100%;
text-align: center;
}

45
src/components/Footer.js Normal file
View File

@ -0,0 +1,45 @@
import React from "react";
import "./Footer.css";
const Footer = () => {
return (
<div className="main-footer">
<div className="container">
<div className="row">
<div className="col">
<h4>OEM Automation</h4>
<ul className="list-unstyled">
<li>(123)-456-7890</li>
<li>Address</li>
<li>New Jersey, US</li>
</ul>
</div>
<div className="col">
<h4>Placeholder</h4>
<ul className="list-unstyled">
<li>blah blah</li>
<li>blah</li>
<li>blahh</li>
</ul>
</div>
<div className="col">
<h4>Placeholder</h4>
<ul className="list-unstyled">
<li>blah blah</li>
<li>blah</li>
<li>blahh</li>
</ul>
</div>
</div>
<hr />
<div className="row" >
<p className="col-sm">
&copy; OEM Automation
</p>
</div>
</div>
</div>
);
}
export default Footer;

15
src/components/Nav.js Normal file
View File

@ -0,0 +1,15 @@
import { Navbar, Container } from 'react-bootstrap';
const Nav = () => {
return (
<Navbar bg="dark" variant="dark">
<Container>
<Navbar.Brand>
OEM Automation
</Navbar.Brand>
</Container>
</Navbar>
);
}
export default Nav;

13
src/index.css Normal file
View File

@ -0,0 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

12
src/index.js Normal file
View File

@ -0,0 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import 'bootstrap/dist/css/bootstrap.min.css';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);