fix home layout (vertical center)

pull/4/head
Clement G 5 years ago committed by guhur
parent 4f245e70e6
commit 29bb42a838

@ -1,4 +1 @@
.App {
background-color:#2943a0;
}

@ -8,7 +8,7 @@ import Result from "./components/views/Result";
import UnknownView from "./components/views/UnknownView";
function Routes() {
return (<main>
return (<main className="d-flex flex-column justify-content-center" >
<Switch>
<Route exact path="/" component={Home} />
<Route path="/create-ballot" component={CreateBallot} />

@ -13,9 +13,9 @@ class Home extends Component {
render(){
return(
<Container>
<Container className="" >
<Row>
<Col className="text-center"><h3>Simple, gratuit : organisez un vote à l'aide du Jugement Majoritaire.</h3></Col>
<Col className="text-center"><h3>Simple et gratuit : organisez un vote à l'aide du Jugement Majoritaire.</h3></Col>
</Row>
<Row className="mt-2">
<Col xs="12" md="9" xl="6" className="offset-xl-2">

@ -9,10 +9,15 @@
display:block;
letter-spacing: 0.09em;
}
html, body, #root, #root > div{
height:100%;
}
main{
padding:80px 0;
min-height:500px;
min-height: calc(100% - 106px);
overflow: auto;
padding-top:72px;
padding-bottom:36px;
}
header{

Loading…
Cancel
Save