mirror of
https://github.com/franjsco/tick3t
synced 2025-04-24 22:58:40 +02:00
add App
This commit is contained in:
parent
08ad7254cd
commit
51b5203dba
38
src/App.css
38
src/App.css
@ -1,33 +1,9 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
@import url('https://fonts.googleapis.com/css?family=Nunito');
|
||||
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #282c34;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
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);
|
||||
}
|
||||
.app {
|
||||
font-family: 'Nunito', sans-serif;
|
||||
color: #45474b;
|
||||
max-width: 1000px;
|
||||
margin: auto;
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
35
src/App.js
35
src/App.js
@ -1,24 +1,27 @@
|
||||
import React from 'react';
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import NavBar from './containers/NavBar';
|
||||
import Home from './containers/Home/Home';
|
||||
import OpenTicket from './containers/OpenTicket/OpenTicket';
|
||||
import CardTest from './components/Card';
|
||||
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom';
|
||||
import NotFound from './containers/NotFound';
|
||||
import ViewRequest from './containers/ViewTicket/ViewTicket';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
<div className="app">
|
||||
<Router>
|
||||
<NavBar />
|
||||
<Switch>
|
||||
<Route path="/" exact component={Home} />
|
||||
<Route path="/open" component={OpenTicket} />
|
||||
<Route path="/ticket/:ticketId" component={ViewRequest} />
|
||||
<Route path="/ticket/" exact component={ () => <Redirect to="/" /> } />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</Router>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user