This commit is contained in:
William Moore 2023-01-19 10:41:59 -06:00
parent f434627daa
commit 7e5c6b5db7
2 changed files with 14 additions and 22 deletions

View File

@ -1,5 +1,11 @@
.App { .App {
text-align: center; margin: .5em;
}
.rainfall-gauge {
border: .01em solid black;
padding: .6em;
width: 15em;
} }
.App-logo { .App-logo {
@ -13,15 +19,11 @@
} }
} }
.App-header { .header {
background-color: #282c34; background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white; color: white;
text-align: center;
border: .01em solid black;
} }
.App-link { .App-link {

View File

@ -1,24 +1,14 @@
import React from 'react'; import React from 'react';
import logo from './logo.svg'; import logo from './logo.svg';
import './App.css'; import './App.css';
import Rainfall from './components/rainfall';
function App() { function App() {
return ( return (
<div className="App"> <div className="App">
<header className="App-header"> <h1 className={'header'}>MooreForge Weather Station</h1>
<img src={logo} className="App-logo" alt="logo" /> <p>Welcome to the MooreForge Weather Station. While a work in progress, there are some functional sensors shown below.</p>
<p> <div className={'rainfall-gauge'}><Rainfall /></div>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div> </div>
); );
} }