Skip to content

Commit

Permalink
add contact and about pages
Browse files Browse the repository at this point in the history
  • Loading branch information
snahedis committed Mar 11, 2017
1 parent 110c866 commit cf6f41a
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pages/404.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
path: /404.html
id: notfound
---
# 404 NOT FOUND

Oops, voilà qui est étrange !
Oops, voilà qui est étrange !
7 changes: 7 additions & 0 deletions pages/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
path: /about
id: about
---
# Contact

Page à propos à ajouter
7 changes: 7 additions & 0 deletions pages/contact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
path: /contact
id: contact
---
# Contact

Formulaire de contact à ajouter
7 changes: 7 additions & 0 deletions styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ h3 {font-family: Montserrat, sans-serif;}

a:focus,
button:focus {outline: 0;}

#notfound {
margin-top: 40px;
text-align: center;

h1 {color: $blue;}
}
2 changes: 1 addition & 1 deletion templates/Menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
button {
background: #fff;
border: 1px solid $border;
color: $red;
color: $darkred;
font-size: 20px;
height: 42px;
position: absolute;
Expand Down
17 changes: 14 additions & 3 deletions templates/Outlinks.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
import React from 'react';
import { Container } from 'react-grid-system';
import { Link } from 'react-router';
import { Container, Row, Col } from 'react-grid-system';
import { prefixLink } from 'gatsby-helpers';

import './Outlinks.scss';

const Outlinks = () => (
<nav className="Outlinks">
<Container>
<a href="http://www.jlm2017.fr/">jlm2017.fr</a>
<a href="https://laec.fr">Consultez le programme en ligne</a>
<Row>
<Col xs={6}>
<Link to={prefixLink('/')}><i className="fa fa-home" aria-hidden="true"></i></Link>
<a href="https://jlm2017.fr" target="_blank">jlm2017.fr</a>
<a href="https://laec.fr" target="_blank">Consultez le programme en ligne</a>
</Col>
<Col className="right" xs={6}>
<Link to={prefixLink('/about/')}><i className="fa fa-question-circle" aria-hidden="true"></i> À propos</Link>
<Link to={prefixLink('/contact/')}><i className="fa fa-envelope" aria-hidden="true"></i> Contact</Link>
</Col>
</Row>
</Container>
</nav>
);
Expand Down
6 changes: 6 additions & 0 deletions templates/Outlinks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.Outlinks {
line-height: 35px;

.right {text-align: right;}

a {
color: $secondary;
margin: 0 10px;
Expand All @@ -14,4 +16,8 @@

&:hover {color: $main;}
}

i {padding-right: 4px;}

.fa-envelope {font-size: 15px;}
}
13 changes: 11 additions & 2 deletions wrappers/md.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import React from 'react';
import { Container, Row, Col } from 'react-grid-system';

const Markdown = ({ route }) => (
<Container>
<Row>
<Col>
<div id={route.page.data.id} dangerouslySetInnerHTML={{ __html: route.page.data.body }} />
</Col>
</Row>
</Container>
);

const Markdown = ({ route }) =>
<div dangerouslySetInnerHTML={{ __html: route.page.data.body }} />;

Markdown.propTypes = {
route: React.PropTypes.object
Expand Down

0 comments on commit cf6f41a

Please sign in to comment.