centrage du btn postuler

This commit is contained in:
2019-06-24 16:13:23 +02:00
parent 973603fef0
commit e2ade8dc6f
4 changed files with 64 additions and 6 deletions
+7 -4
View File
@@ -1,6 +1,7 @@
import Link from 'next/link'
import { withStyles } from '@material-ui/core/styles'
import BottomToolbar from './BottomToolbar';
import { Fragment, Children } from 'react';
import { Button } from '@material-ui/core';
const styles = theme => ({
root: {
@@ -9,11 +10,13 @@ const styles = theme => ({
},
});
function Footer(props) {
function Footer(props) {
const { classes } = props;
return (
<BottomToolbar/>
<Fragment>
{props.children}
</Fragment>
);
}
+4 -1
View File
@@ -1,6 +1,7 @@
import Link from 'next/link'
import { withStyles } from '@material-ui/core/styles'
import BottomToolbar from '../organisms/BottomToolbar';
import { Fragment } from 'react';
const styles = theme => ({
root: {
@@ -12,7 +13,9 @@ const styles = theme => ({
function Footer(props) {
const { classes } = props;
return (
<BottomToolbar/>
<Fragment>
</Fragment>
);
@@ -0,0 +1,52 @@
import { withStyles } from '@material-ui/core/styles'
import Header from '../organisms/Header'
import { Button } from '@material-ui/core';
const styles = theme => ({
root: {
height: '100%'
},
foot: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
position: 'fixed',
[theme.breakpoints.up('sm')]: {
height: '64px'
},
},
content: {
height: 'calc(100vh - 56px)',
[theme.breakpoints.up('sm')]: {
height: 'calc(100vh - 64px)',
},
position: 'relative',
overflow: 'auto',
}
});
function Layout(props) {
const { classes } = props;
return (
<div className={classes.root}>
<div id="C" className={classes.content}>
{props.children}
</div>
<div id="F" className={classes.foot}>
{/* <div className={classes.inner}>
<div className={classes.grow} /> */}
<Button variant="outlined" color="secondary" >Postuler</Button>
{/* <div className={classes.grow} />
</div> */}
</div>
</div>
)
}
export default withStyles(styles)(Layout)
+1 -1
View File
@@ -10,7 +10,7 @@ import _ from "lodash/string";
import Ar from "lodash/array";
import api from "../data/api"
import Layout from "../components/templates/Layout";
import Layout from "../components/templates/LayoutOffre";
import { fetchAdRequest } from '../actions/ads'
import { AdSelector } from '../reducers/ad'