Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

Commit 870e07f

Browse files
authored
Merge pull request #1 from CodeForBaltimore/C-Malecki/setup
Adding starting code
2 parents 55a3985 + e3420e6 commit 870e07f

File tree

20 files changed

+15644
-0
lines changed

20 files changed

+15644
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

package-lock.json

Lines changed: 15191 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "cfb-project",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^4.2.4",
7+
"@testing-library/react": "^9.5.0",
8+
"@testing-library/user-event": "^7.2.1",
9+
"bootstrap": "^4.4.1",
10+
"leaflet": "^1.6.0",
11+
"react": "^16.13.0",
12+
"react-bootstrap": "^1.0.0-beta.17",
13+
"react-dom": "^16.13.0",
14+
"react-leaflet": "^2.6.3",
15+
"react-router-dom": "^5.1.2",
16+
"react-scripts": "3.4.0"
17+
},
18+
"scripts": {
19+
"start": "react-scripts start",
20+
"build": "react-scripts build",
21+
"test": "react-scripts test",
22+
"eject": "react-scripts eject"
23+
},
24+
"eslintConfig": {
25+
"extends": "react-app"
26+
},
27+
"browserslist": {
28+
"production": [
29+
">0.2%",
30+
"not dead",
31+
"not op_mini all"
32+
],
33+
"development": [
34+
"last 1 chrome version",
35+
"last 1 firefox version",
36+
"last 1 safari version"
37+
]
38+
}
39+
}

public/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="theme-color" content="#000000" />
7+
<meta
8+
name="description"
9+
content="Web site created using create-react-app"
10+
/>
11+
12+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
13+
14+
<link
15+
rel="stylesheet"
16+
href="https://unpkg.com/[email protected]/dist/leaflet.css"
17+
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
18+
crossorigin=""
19+
/>
20+
21+
<title>React App</title>
22+
</head>
23+
<body>
24+
<noscript>You need to enable JavaScript to run this app.</noscript>
25+
<div id="root"></div>
26+
27+
</body>
28+
</html>

public/manifest.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"start_url": ".",
5+
"display": "standalone",
6+
"theme_color": "#000000",
7+
"background_color": "#ffffff"
8+
}

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

src/App.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.App {
2+
height: 100vh;
3+
}
4+
5+
/* Container for each page */
6+
.Content-Container {
7+
display: flex;
8+
justify-content: center;
9+
height: 100%;
10+
width: 100%;
11+
background-color: rgb(245, 243, 243);
12+
}
13+
14+
/* Bootstrap NavBar additional CSS */
15+
.nav-link {
16+
font-size: 22px;
17+
font-weight: bold;
18+
}
19+
20+
/* Necessary CSS for Leaflet Map Component */
21+
.leaflet-container {
22+
width: 100%;
23+
height: 100%;
24+
}
25+
26+
.Map-Container {
27+
width: 400px;
28+
height: 400px;
29+
}

src/App.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from 'react';
2+
import { BrowserRouter, Route } from 'react-router-dom';
3+
import './App.css';
4+
import NaviBar from './Components/NavBar';
5+
import Home from './Components/Home';
6+
import About from './Components/About';
7+
import Resources from './Components/Resources';
8+
import MapComponent from './Components/MapComponent';
9+
import SomePage from './Components/SomePage';
10+
import 'bootstrap/dist/css/bootstrap.min.css';
11+
12+
function App() {
13+
return (
14+
<BrowserRouter>
15+
<div className="App">
16+
<NaviBar />
17+
<Route exact path="/" component={Home} />
18+
<Route path="/about" component={About} />
19+
<Route path="/resources" component={Resources} />
20+
<Route path="/map" component={MapComponent} />
21+
<Route path="/somepage" component={SomePage} />
22+
</div>
23+
</BrowserRouter>
24+
);
25+
}
26+
27+
export default App;

src/App.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import { render } from '@testing-library/react';
3+
import App from './App';
4+
5+
test('renders learn react link', () => {
6+
const { getByText } = render(<App />);
7+
const linkElement = getByText(/learn react/i);
8+
expect(linkElement).toBeInTheDocument();
9+
});

src/Assets/CfB.png

20.1 KB
Loading

0 commit comments

Comments
 (0)