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 {
|
@import url('https://fonts.googleapis.com/css?family=Nunito');
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.App-logo {
|
.app {
|
||||||
animation: App-logo-spin infinite 20s linear;
|
font-family: 'Nunito', sans-serif;
|
||||||
height: 40vmin;
|
color: #45474b;
|
||||||
pointer-events: none;
|
max-width: 1000px;
|
||||||
}
|
margin: auto;
|
||||||
|
margin-top: 100px;
|
||||||
.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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
35
src/App.js
35
src/App.js
@ -1,24 +1,27 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import logo from './logo.svg';
|
|
||||||
import './App.css';
|
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() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="app">
|
||||||
<header className="App-header">
|
<Router>
|
||||||
<img src={logo} className="App-logo" alt="logo" />
|
<NavBar />
|
||||||
<p>
|
<Switch>
|
||||||
Edit <code>src/App.js</code> and save to reload.
|
<Route path="/" exact component={Home} />
|
||||||
</p>
|
<Route path="/open" component={OpenTicket} />
|
||||||
<a
|
<Route path="/ticket/:ticketId" component={ViewRequest} />
|
||||||
className="App-link"
|
<Route path="/ticket/" exact component={ () => <Redirect to="/" /> } />
|
||||||
href="https://reactjs.org"
|
<Route component={NotFound} />
|
||||||
target="_blank"
|
</Switch>
|
||||||
rel="noopener noreferrer"
|
</Router>
|
||||||
>
|
|
||||||
Learn React
|
|
||||||
</a>
|
|
||||||
</header>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user