Skip to content

Commit 88a34d0

Browse files
arjavibahetydalisc
authored andcommitted
New Layout (#1)
1 parent 80d2731 commit 88a34d0

25 files changed

+2256
-1294
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@ This section has moved here: https://facebook.github.io/create-react-app/docs/de
6666
### `npm run build` fails to minify
6767

6868
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
69-
# base_station

package-lock.json

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

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
2-
"name": "oppy-base-station",
2+
"name": "basestation",
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"react": "^16.11.0",
7-
"react-dom": "^16.11.0",
8-
"react-scripts": "3.2.0"
6+
"@testing-library/jest-dom": "^4.2.4",
7+
"@testing-library/react": "^9.4.0",
8+
"@testing-library/user-event": "^7.2.1",
9+
"react": "^16.12.0",
10+
"react-dom": "^16.12.0",
11+
"react-scripts": "3.3.0"
912
},
1013
"scripts": {
1114
"start": "react-scripts start",

public/favicon.ico

-18.1 KB
Binary file not shown.

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name="description"
1010
content="Web site created using create-react-app"
1111
/>
12-
<link rel="apple-touch-icon" href="logo192.png" />
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1313
<!--
1414
manifest.json provides metadata used when your web app is installed on a
1515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

public/logo192.png

-3.16 KB
Loading

public/logo512.png

-12.9 KB
Loading

src/App.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
.App-logo {
66
height: 40vmin;
7+
pointer-events: none;
8+
}
9+
10+
@media (prefers-reduced-motion: no-preference) {
11+
.App-logo {
12+
animation: App-logo-spin infinite 20s linear;
13+
}
714
}
815

916
.App-header {
@@ -18,5 +25,14 @@
1825
}
1926

2027
.App-link {
21-
color: #09d3ac;
28+
color: #61dafb;
29+
}
30+
31+
@keyframes App-logo-spin {
32+
from {
33+
transform: rotate(0deg);
34+
}
35+
to {
36+
transform: rotate(360deg);
37+
}
2238
}

src/App.js

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
import React from 'react';
2-
import logo from './logo.svg';
3-
import './App.css';
1+
import React, { Component } from "react";
2+
import "./App.css";
3+
import "./styles.css";
4+
import Home from "./Home";
45

5-
function App() {
6-
return (
7-
<div className="App">
8-
<header className="App-header">
9-
<img src={logo} className="App-logo" alt="logo" />
10-
<p>
11-
Edit <code>src/App.js</code> and save to reload.
12-
</p>
13-
<a
14-
className="App-link"
15-
href="https://reactjs.org"
16-
target="_blank"
17-
rel="noopener noreferrer"
18-
>
19-
Learn React
20-
</a>
21-
</header>
22-
</div>
23-
);
6+
class App extends Component {
7+
render() {
8+
return (
9+
<React.Fragment>
10+
<main className="content">
11+
<Home />
12+
</main>
13+
</React.Fragment>
14+
);
15+
}
2416
}
2517

2618
export default App;

src/App.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { render } from '@testing-library/react';
33
import App from './App';
44

5-
it('renders without crashing', () => {
6-
const div = document.createElement('div');
7-
ReactDOM.render(<App />, div);
8-
ReactDOM.unmountComponentAtNode(div);
5+
test('renders learn react link', () => {
6+
const { getByText } = render(<App />);
7+
const linkElement = getByText(/learn react/i);
8+
expect(linkElement).toBeInTheDocument();
99
});

0 commit comments

Comments
 (0)