Browse Source

footer: travail en cours

Lou 3 years ago
parent
commit
0082180163

+ 31
- 0
src/components/footer/index.jsx View File

@@ -0,0 +1,31 @@
1
+import React from "react";
2
+import { Link } from "gatsby";
3
+
4
+import "./index.scss";
5
+
6
+const Footer = () => {
7
+	return (
8
+		<footer className="footer">
9
+			<ul className="footer-list">
10
+				<li>
11
+					<div className="footer-contact">
12
+						<Link to="/contact">Nous écrire</Link>
13
+						<p>notre@email.com</p>
14
+					</div>
15
+				</li>
16
+				<li>
17
+					<div className="footer-about">
18
+						<p>
19
+							CLI est une association à but non lucratif spécialisée dans le
20
+							numérique. <br /> Nous fournissons une large variété de
21
+							prestations numériques.
22
+						</p>
23
+					</div>
24
+				</li>
25
+				<li>Mentions légales</li>
26
+			</ul>
27
+		</footer>
28
+	);
29
+};
30
+
31
+export default Footer;

+ 51
- 0
src/components/footer/index.scss View File

@@ -0,0 +1,51 @@
1
+@import "../../scss/main.scss";
2
+
3
+.footer {
4
+	margin-top: 50px;
5
+	margin-left: auto;
6
+	margin-right: auto;
7
+	height: 70px;
8
+	max-width: 1200px;
9
+	color: grey;
10
+
11
+	a {
12
+		color: grey;
13
+	}
14
+
15
+	.footer-list {
16
+		list-style: none;
17
+		text-align: center;
18
+		display: flex;
19
+		flex-direction: row;
20
+		justify-content: space-evenly;
21
+
22
+		li {
23
+			padding-left: 15px;
24
+			padding-right: 15px;
25
+		}
26
+
27
+		.footer-contact > * {
28
+			display: flex;
29
+			flex-direction: column;
30
+			align-items: center;
31
+		}
32
+
33
+		.footer-about {
34
+			width: 40vw;
35
+		}
36
+	}
37
+}
38
+
39
+@media screen and (max-width: 992px) {
40
+	.footer-list {
41
+		display: flex;
42
+		flex-direction: column;
43
+	}
44
+}
45
+
46
+@media screen and (max-width: 600px) {
47
+	.footer-list {
48
+		display: flex;
49
+		flex-direction: column;
50
+	}
51
+}

+ 3
- 3
src/components/header/index.jsx View File

@@ -5,11 +5,11 @@ import "./index.scss";
5 5
 
6 6
 const Header = () => {
7 7
 	return (
8
-		<div className="headers">
9
-			<h1 className="headers-title">
8
+		<div className="header">
9
+			<h1 className="header-title">
10 10
 				<Link to="/">CLI</Link>
11 11
 			</h1>
12
-			<h2 className="headers-subtitle">
12
+			<h2 className="header-subtitle">
13 13
 				Coopérative Strasbourgeoise du numérique
14 14
 			</h2>
15 15
 			<div className="container">

+ 5
- 3
src/components/header/index.scss View File

@@ -1,4 +1,6 @@
1
-.headers {
1
+@import "../../scss/main.scss";
2
+
3
+.header {
2 4
 	display: flex;
3 5
 	flex-direction: column;
4 6
 	text-align: center;
@@ -6,13 +8,13 @@
6 8
 	margin-bottom: 30px;
7 9
 	font-family: "Cutive Mono";
8 10
 
9
-	.headers-title {
11
+	.header-title {
10 12
 		margin: 0;
11 13
 		font-size: 3rem;
12 14
 		font-weight: normal;
13 15
 	}
14 16
 
15
-	.headers-subtitle {
17
+	.header-subtitle {
16 18
 		margin-top: 15px;
17 19
 		margin-bottom: 70px;
18 20
 		font-size: 1.7rem;

+ 5
- 1
src/pages/contact.jsx View File

@@ -2,13 +2,17 @@ import * as React from "react";
2 2
 
3 3
 import Header from "../components/header";
4 4
 import ContactForm from "../components/contactForm";
5
+import Footer from "../components/footer";
5 6
 
6 7
 const Contact = () => {
7 8
 	return (
8 9
 		<main>
9 10
 			<title>Nous contacter</title>
10 11
 			<Header />
11
-			<ContactForm />
12
+			<div className="pages-content">
13
+				<ContactForm />
14
+			</div>
15
+			<Footer />
12 16
 		</main>
13 17
 	);
14 18
 };

+ 2
- 1
src/pages/index.jsx View File

@@ -3,8 +3,8 @@ import { Link } from "gatsby";
3 3
 
4 4
 import Header from "../components/header";
5 5
 import RealisationCard from "../components/realisationCard";
6
-
7 6
 import "../scss/index.scss";
7
+import Footer from "../components/footer";
8 8
 
9 9
 const IndexPage = () => {
10 10
 	return (
@@ -53,6 +53,7 @@ const IndexPage = () => {
53 53
 					</div>
54 54
 				</section>
55 55
 			</div>
56
+			<Footer />
56 57
 		</main>
57 58
 	);
58 59
 };

+ 4
- 2
src/pages/services.jsx View File

@@ -1,15 +1,17 @@
1 1
 import * as React from "react";
2 2
 
3 3
 import Header from "../components/header";
4
+import Footer from "../components/footer";
4 5
 
5 6
 const Service = () => {
6 7
 	return (
7 8
 		<main>
8 9
 			<title>Nos prestations</title>
9 10
 			<Header />
10
-			<div>
11
-				<p>Nos prestations</p>
11
+			<div className="pages-content">
12
+				<h3>Nos prestations</h3>
12 13
 			</div>
14
+			<Footer />
13 15
 		</main>
14 16
 	);
15 17
 };

+ 2
- 0
src/pages/status.jsx View File

@@ -1,6 +1,7 @@
1 1
 import * as React from "react";
2 2
 import "../scss/index.scss";
3 3
 import Header from "../components/header";
4
+import Footer from "../components/footer";
4 5
 
5 6
 const Status = () => {
6 7
 	return (
@@ -248,6 +249,7 @@ const Status = () => {
248 249
 					</p>
249 250
 				</section>
250 251
 			</div>
252
+			<Footer />
251 253
 		</main>
252 254
 	);
253 255
 };

+ 0
- 37
src/scss/index.scss View File

@@ -1,42 +1,5 @@
1 1
 @import "./main.scss";
2 2
 
3
-.pages-content {
4
-	padding-left: 40px;
5
-	padding-right: 40px;
6
-	> section {
7
-		margin-top: 40px;
8
-		width: 100%;
9
-		margin-left: auto;
10
-		margin-right: auto;
11
-
12
-		&:first-child {
13
-			margin-top: 0;
14
-		}
15
-	}
16
-}
17
-.pages-sections {
18
-	display: flex;
19
-	flex-direction: column;
20
-	align-items: center;
21
-	max-width: 1200px;
22
-
23
-	.section-title {
24
-		font-size: 1.5rem;
25
-		font-weight: bold;
26
-		text-align: center;
27
-	}
28
-
29
-	.sections-paragraphs {
30
-		line-height: 1.7rem;
31
-		text-align: center;
32
-
33
-		.paragraph-highlight {
34
-			color: $primary;
35
-			font-weight: bold;
36
-		}
37
-	}
38
-}
39
-
40 3
 .index-made-by-us {
41 4
 	.list-card {
42 5
 		display: flex;

+ 38
- 4
src/scss/main.scss View File

@@ -19,10 +19,6 @@ a {
19 19
 	box-sizing: border-box;
20 20
 }
21 21
 
22
-body {
23
-	margin: 0;
24
-}
25
-
26 22
 input:focus,
27 23
 textarea:focus,
28 24
 button:focus {
@@ -39,3 +35,41 @@ button:focus {
39 35
 		border: 1px solid darkgrey;
40 36
 	}
41 37
 }
38
+
39
+.pages-content {
40
+	padding-left: 40px;
41
+	padding-right: 40px;
42
+	> section {
43
+		margin-top: 40px;
44
+		width: 100%;
45
+		margin-left: auto;
46
+		margin-right: auto;
47
+
48
+		&:first-child {
49
+			margin-top: 0;
50
+		}
51
+	}
52
+}
53
+
54
+.pages-sections {
55
+	display: flex;
56
+	flex-direction: column;
57
+	align-items: center;
58
+	max-width: 1200px;
59
+
60
+	.section-title {
61
+		font-size: 1.5rem;
62
+		font-weight: bold;
63
+		text-align: center;
64
+	}
65
+
66
+	.sections-paragraphs {
67
+		line-height: 1.7rem;
68
+		text-align: center;
69
+
70
+		.paragraph-highlight {
71
+			color: $primary;
72
+			font-weight: bold;
73
+		}
74
+	}
75
+}

Loading…
Cancel
Save