This commit is contained in:
Peter Hoppe
2022-12-07 14:35:32 +01:00
parent 0d8edfa5f5
commit 5e90c2556b
6 changed files with 17 additions and 60 deletions

View File

@ -1,40 +1,12 @@
.App { .App {
text-align: center; text-align: center;
width: 100%;
} }
.App-logo { .layout {
height: 40vmin; width: 100%;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex; display: flex;
flex-direction: column; gap: 5px;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
} }
/* @import url('https://fonts.googleapis.com/css2?family=Lato&display=swap'); */ /* @import url('https://fonts.googleapis.com/css2?family=Lato&display=swap'); */
@ -62,6 +34,7 @@
font-family: 'Lato', sans-serif; font-family: 'Lato', sans-serif;
} }
.home, .home,
.flights, .flights,
.seasons { .seasons {
@ -70,6 +43,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 3rem; font-size: 3rem;
width: 100%;
} }
@ -129,10 +103,6 @@ h1,h2,h4,p
{ {
text-align: center; text-align: center;
} }
.toindex
{
text-align: left;
}
.flexbox .flexbox
{ {
@ -150,20 +120,8 @@ h1,h2,h4,p
align-items: flex-end; align-items: flex-end;
} }
.header
{
border: 0px;
font-weight: 900;
font-size: 2em;
}
.pilot .header
{
font-weight: bold;
}
.link .link
{ {
font-size: 80%; font-size: 90%;
} }

View File

@ -11,7 +11,7 @@ import Seasons from './pages/Seasons';
export default function App() export default function App()
{ {
return( return(
<> <div className='layout'>
<Router> <Router>
<Navbar /> <Navbar />
<Routes> <Routes>
@ -20,6 +20,6 @@ export default function App()
<Route path='/seasons' element={<Seasons/>} /> <Route path='/seasons' element={<Seasons/>} />
</Routes> </Routes>
</Router> </Router>
</> </div>
); );
} }

View File

@ -7,7 +7,7 @@ function Link2Flight(u_key: string, key: string, row: any, data: string | null)
{ {
var val: JSX.Element = <></>; var val: JSX.Element = <></>;
const link: string = 'https://de.dhv-xc.de/flight/' + row['IDFlight']; const link: string = 'https://de.dhv-xc.de/flight/' + row['IDFlight'];
val = <td key={u_key}><a href={link} target="_blank" rel="noopener noreferrer" >{data}</a></td>; val = <td className='link' key={u_key}><a href={link} target="_blank" rel="noopener noreferrer" >{data}</a></td>;
return val; return val;
} }

View File

@ -1,15 +1,14 @@
.navbar { .navbar {
background-color: #ba3a07c2; background-color: #ba3a07c2;
height: 80px; height: 40px;
width: 100px; min-width: 50px;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
} }
.menu-bars { .menu-bars {
margin-left: 2rem; margin-left: 1rem;
font-size: 2rem;
background: none; background: none;
} }
@ -62,7 +61,7 @@
.navbar-toggle { .navbar-toggle {
background-color: #ba3a07c2; background-color: #ba3a07c2;
width: 100%; width: 100%;
height: 80px; height: 40px;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;

View File

@ -15,9 +15,9 @@ export default function Navbar()
return ( return (
<> <>
<IconContext.Provider value={{ color: '#fff' }}> <IconContext.Provider value={{ color: '#fff' }}>
<div className='navbar'> <div className='navbar' onClick={showSidebar}>
<Link to='#' className='menu-bars'> <Link to='#' className='menu-bars'>
<FaIcons.FaBars onClick={showSidebar} /> <FaIcons.FaBars />
</Link> </Link>
</div> </div>
<nav className={sidebar ? 'nav-menu active' : 'nav-menu'}> <nav className={sidebar ? 'nav-menu active' : 'nav-menu'}>

View File

@ -2,7 +2,7 @@ import React from 'react';
export default function Home() { export default function Home() {
return ( return (
<div> <div className='home'>
<h1>HOME</h1> <h1>HOME</h1>
</div> </div>
); );