Browse Source

fixed several design, added new logo, added smooth scrolling

Lou 3 years ago
parent
commit
46819d73ba

+ 8
- 2
src/components/footer/index.jsx View File

@@ -3,7 +3,7 @@ import { Link } from "gatsby";
3 3
 
4 4
 import "./index.scss";
5 5
 import BtnContact from "../btnContact";
6
-import Logo from "../../images/favicon.svg";
6
+import Logo from "../../images/logo-cli.svg";
7 7
 
8 8
 const Footer = () => {
9 9
 	return (
@@ -12,7 +12,13 @@ const Footer = () => {
12 12
 				<li>
13 13
 					<div className="footer-about">
14 14
 						<div className="footer-about-header">
15
-							<img src={Logo} alt="Logo de la CLI" height="40px" width="40px" />
15
+							<img
16
+								src={Logo}
17
+								alt="Logo de l'association"
18
+								className="footer-logo"
19
+								height="40px"
20
+								width="40px"
21
+							/>
16 22
 							<h4>CLI</h4>
17 23
 						</div>
18 24
 						<p>

+ 15
- 1
src/components/footer/index.scss View File

@@ -1,5 +1,9 @@
1 1
 @use "../../scss/abstracts/colors" as *;
2
-@use "../../scss/abstracts/fonts" as *;
2
+
3
+@font-face {
4
+	font-family: CutiveMono;
5
+	src: url(../../fonts/CutiveMono-Regular.ttf);
6
+}
3 7
 
4 8
 #footer {
5 9
 	background: $light;
@@ -42,6 +46,16 @@
42 46
 			align-items: center;
43 47
 			justify-content: center;
44 48
 
49
+			.footer-logo {
50
+				width: 3rem;
51
+				height: 3rem;
52
+			}
53
+
54
+			h4 {
55
+				font-family: CutiveMono;
56
+				font-size: 2.5rem;
57
+			}
58
+
45 59
 			& > * {
46 60
 				margin: 0 0.3rem;
47 61
 			}

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

@@ -28,7 +28,7 @@ const Header = () => {
28 28
 					<h1>Coopérative Libre Informatique</h1>
29 29
 					<div className="hero-box">
30 30
 						<div className="hero-text">
31
-							<p className="hero-paragraph">Travailler autrement ensemble.</p>
31
+							<p className="hero-paragraph">Travailler ensemble autrement.</p>
32 32
 						</div>
33 33
 						<BtnContact>Écrivez-nous !</BtnContact>
34 34
 					</div>

+ 2
- 2
src/components/header/index.scss View File

@@ -67,7 +67,7 @@ header {
67 67
 	}
68 68
 }
69 69
 
70
-@media (min-width: 800px) {
70
+@media (min-width: 1000px) {
71 71
 	header {
72 72
 		.hero {
73 73
 			.hero-container {
@@ -75,7 +75,7 @@ header {
75 75
 				flex-direction: column;
76 76
 				align-items: center;
77 77
 
78
-				margin-top: 12%;
78
+				margin-top: 12rem;
79 79
 				margin-left: 10%;
80 80
 			}
81 81
 		}

+ 2
- 3
src/components/navbar/index.scss View File

@@ -12,10 +12,9 @@
12 12
 }
13 13
 
14 14
 nav {
15
-	// position: fixed;
16 15
 	z-index: 10;
17 16
 	margin: 0;
18
-	width: 100vw;
17
+	width: 100%;
19 18
 	padding: 0;
20 19
 	height: 4.5rem;
21 20
 	display: flex;
@@ -93,7 +92,7 @@ nav {
93 92
 		width: 100%;
94 93
 		padding-right: var(--bs-gutter-x, 0.75rem);
95 94
 		padding-left: var(--bs-gutter-x, 0.75rem);
96
-		margin: 4rem auto 0 auto;
95
+		margin: 0 auto 0 auto;
97 96
 		display: flex;
98 97
 		flex-direction: column-reverse;
99 98
 		align-items: center;

+ 6
- 7
src/scss/index.scss View File

@@ -14,7 +14,7 @@
14 14
 	align-items: center;
15 15
 	background-color: transparent;
16 16
 	height: auto;
17
-	max-width: 85vw;
17
+	width: 100%;
18 18
 }
19 19
 
20 20
 .parallax-ethic,
@@ -132,11 +132,15 @@
132 132
 	}
133 133
 }
134 134
 
135
+.team {
136
+	position: relative;
137
+}
138
+
135 139
 .team:before {
136 140
 	content: "";
137 141
 	display: block;
138 142
 	position: absolute;
139
-	left: 0;
143
+	right: 0;
140 144
 	top: 0;
141 145
 	width: 100%;
142 146
 	height: 100%;
@@ -222,8 +226,3 @@
222 226
 	padding-top: 150px;
223 227
 	padding-bottom: 100px;
224 228
 }
225
-
226
-.contact {
227
-	.parallax-contact {
228
-	}
229
-}

+ 12
- 1
src/scss/main.scss View File

@@ -25,6 +25,10 @@ a {
25 25
 	color: $primary;
26 26
 }
27 27
 
28
+html {
29
+	scroll-behavior: smooth;
30
+}
31
+
28 32
 body {
29 33
 	margin: 0;
30 34
 }
@@ -59,7 +63,14 @@ main {
59 63
 .page-container {
60 64
 	position: relative;
61 65
 	// margin-bottom: 2rem;
62
-	width: 85vw;
66
+	width: 100%;
67
+}
68
+
69
+@media (min-width: 1150px) {
70
+	.page-container {
71
+		position: relative;
72
+		width: 85vw;
73
+	}
63 74
 }
64 75
 
65 76
 .page-title {

Loading…
Cancel
Save