Переглянути джерело

index: removed useless style and use svg instead of linear-gradient to remove aliasing

Lou 2 роки тому
джерело
коміт
ace25539db

+ 8
- 8
gatsby-config.js Переглянути файл

@@ -1,5 +1,5 @@
1 1
 require("dotenv").config({
2
-	path: `.env.${process.env.NODE_ENV}`
2
+	path: `.env.${process.env.NODE_ENV}`,
3 3
 });
4 4
 
5 5
 module.exports = {
@@ -7,7 +7,7 @@ module.exports = {
7 7
 		siteUrl: `https://www.yourdomain.tld`,
8 8
 		title: "CLI",
9 9
 		description:
10
-			"Coopérative de travailleuses et travailleurs du numérique basée à Strasbourg."
10
+			"Coopérative de travailleuses et travailleurs du numérique basée à Strasbourg.",
11 11
 	},
12 12
 	plugins: [
13 13
 		"gatsby-plugin-sass",
@@ -17,9 +17,9 @@ module.exports = {
17 17
 			resolve: "gatsby-source-filesystem",
18 18
 			options: {
19 19
 				name: "pages",
20
-				path: "./src/pages/"
20
+				path: "./src/pages/",
21 21
 			},
22
-			__key: "pages"
22
+			__key: "pages",
23 23
 		},
24 24
 		{
25 25
 			resolve: `gatsby-plugin-manifest`,
@@ -30,8 +30,8 @@ module.exports = {
30 30
 				background_color: "#f7f0eb",
31 31
 				theme_color: "#a2466c",
32 32
 				display: "standalone",
33
-				icon: "src/images/favicon.png"
34
-			}
35
-		}
36
-	]
33
+				icon: "src/images/logo-cli.png",
34
+			},
35
+		},
36
+	],
37 37
 };

+ 9
- 5
src/components/header/index.jsx Переглянути файл

@@ -4,6 +4,7 @@ import { useInView } from "react-intersection-observer";
4 4
 import "./index.scss";
5 5
 import BtnContact from "../btnContact";
6 6
 import HeaderContext from "../../context/headerContext";
7
+import Logo from "../../images/logo-cli.svg";
7 8
 
8 9
 const Header = () => {
9 10
 	const navbarContext = useContext(HeaderContext);
@@ -22,12 +23,15 @@ const Header = () => {
22 23
 	return (
23 24
 		<header ref={ref}>
24 25
 			<div className="hero">
25
-				<h1>Coopérative Libre Informatique</h1>
26
-				<div className="hero-box">
27
-					<div className="hero-text">
28
-						<p className="hero-paragraph">Travailler autrement ensemble.</p>
26
+				<div className="hero-container">
27
+					<img src={Logo} alt="" className="hero-logo" />
28
+					<h1>Coopérative Libre Informatique</h1>
29
+					<div className="hero-box">
30
+						<div className="hero-text">
31
+							<p className="hero-paragraph">Travailler autrement ensemble.</p>
32
+						</div>
33
+						<BtnContact>Écrivez-nous !</BtnContact>
29 34
 					</div>
30
-					<BtnContact>Écrivez-nous !</BtnContact>
31 35
 				</div>
32 36
 			</div>
33 37
 		</header>

+ 42
- 44
src/components/header/index.scss Переглянути файл

@@ -8,77 +8,75 @@
8 8
 
9 9
 header {
10 10
 	// width: 100vw;
11
-	width: calc(100vw - 12px); // HOW TO HANDLE THIS ANOTHER WAY ?
11
+	width: calc(100vw - 16px); // HOW TO HANDLE THIS ANOTHER WAY ?
12 12
 	height: 100vh;
13 13
 	display: flex;
14
-	background-image: linear-gradient(
15
-		60deg,
16
-		rgba(100, 44, 135, 0.5) 35%,
17
-		rgba(255, 255, 255, 0) 0%
18
-	);
19
-	overflow-y: auto;
20 14
 	background-position: center;
21 15
 	background-size: cover;
22
-	color: $light;
23 16
 
24 17
 	.hero {
25 18
 		display: flex;
26 19
 		flex-direction: column;
27 20
 		justify-content: center;
28
-		align-items: flex-start;
21
+		align-items: center;
29 22
 		padding-bottom: 10rem;
30 23
 		width: 100%;
31
-		position: relative;
32 24
 		text-align: center;
33 25
 
34
-		h1 {
35
-			font-size: 2.5rem;
36
-			font-weight: 900;
37
-			font-family: CutiveMono;
38
-			color: $dark;
39
-			margin-left: 10%;
40
-		}
26
+		.hero-container {
27
+			margin: 13rem auto auto auto;
41 28
 
42
-		.hero-box {
43
-			display: flex;
44
-			flex-direction: column;
45
-			color: $dark;
46
-			min-width: fit-content;
47
-			margin-left: 10%;
29
+			.hero-logo {
30
+				height: 8rem;
31
+				width: 8rem;
32
+			}
48 33
 
49
-			.hero-text {
34
+			h1 {
35
+				width: 30rem;
36
+				font-size: 2.5rem;
37
+				font-weight: 900;
38
+				font-family: CutiveMono;
39
+				color: $dark;
40
+			}
41
+
42
+			.hero-box {
50 43
 				display: flex;
51 44
 				flex-direction: column;
52
-				align-items: center;
53
-				font-size: 1.3rem;
54
-				padding: 0 1.5rem;
45
+				color: $dark;
46
+				min-width: fit-content;
55 47
 
56
-				.hero-paragraph {
57
-					line-height: 1.7rem;
58
-					text-align: center;
59
-					width: fit-content;
60
-				}
61
-				.hero-highlight {
62
-					color: $primary-darker;
63
-					font-weight: bold;
48
+				.hero-text {
49
+					display: flex;
50
+					flex-direction: column;
51
+					align-items: center;
52
+					font-size: 1.3rem;
53
+					padding: 0 1.5rem;
54
+
55
+					.hero-paragraph {
56
+						line-height: 1.7rem;
57
+						text-align: center;
58
+						width: fit-content;
59
+					}
60
+					.hero-highlight {
61
+						color: $primary-darker;
62
+						font-weight: bold;
63
+					}
64 64
 				}
65 65
 			}
66 66
 		}
67 67
 	}
68 68
 }
69 69
 
70
-@media screen and (max-width: 800px) {
70
+@media (min-width: 800px) {
71 71
 	header {
72
-		margin-top: 0rem;
73
-		height: 100vh;
74
-
75 72
 		.hero {
76
-			h1 {
77
-				font-size: 2rem;
78
-			}
73
+			.hero-container {
74
+				display: flex;
75
+				flex-direction: column;
76
+				align-items: center;
79 77
 
80
-			.hero-box > .hero-text {
81
-				font-size: 1.1rem;
78
+				margin-top: 12%;
79
+				margin-left: 10%;
82 80
 			}
83 81
 		}
84 82
 	}

+ 10
- 0
src/images/background-index.svg Переглянути файл

@@ -0,0 +1,10 @@
1
+<svg viewBox="0 0 2175 1291" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+<g clip-path="url(#clip0_136:7)">
3
+<path d="M296 0L1336 1291H0V0H296Z" fill="#642C87"/>
4
+</g>
5
+<defs>
6
+<clipPath id="clip0_136:7">
7
+<rect width="2175" height="1291" fill="white"/>
8
+</clipPath>
9
+</defs>
10
+</svg>

BIN
src/images/favicon.png Переглянути файл


BIN
src/images/logo-cli.png Переглянути файл


+ 13
- 0
src/images/logo-cli.svg Переглянути файл

@@ -0,0 +1,13 @@
1
+<svg viewBox="0 0 2000 2000" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+<g clip-path="url(#clip0_125:2)">
3
+<rect width="2000" height="2000" rx="50" fill="none"/>
4
+<path d="M1551.04 1551.01C1246.73 1855.33 753.331 1855.33 449.014 1551.01C144.697 1246.7 144.697 753.303 449.014 448.986C753.331 144.669 1246.73 144.669 1551.04 448.986" stroke="#642C87" stroke-width="120"/>
5
+<path d="M1217.46 1474.29C936.159 1605.47 605.789 1492.36 479.559 1221.66C353.329 950.957 479.042 625.174 760.345 494" stroke="#642C87" stroke-width="120"/>
6
+<path d="M1583.5 708C1583.5 1030.53 1322.26 1292 1000 1292" stroke="#642C87" stroke-width="120"/>
7
+</g>
8
+<defs>
9
+<clipPath id="clip0_125:2">
10
+<rect width="2000" height="2000" rx="50" fill="none"/>
11
+</clipPath>
12
+</defs>
13
+</svg>

+ 2
- 0
src/pages/index.jsx Переглянути файл

@@ -109,6 +109,7 @@ const IndexPage = () => {
109 109
 						</div>
110 110
 					</div>
111 111
 				</section>
112
+
112 113
 				<section className="realisation index-section">
113 114
 					<div className="parallax-realisation">
114 115
 						<i className="parallax-object-3">
@@ -201,6 +202,7 @@ const IndexPage = () => {
201 202
 						/>
202 203
 					</div>
203 204
 				</section>
205
+
204 206
 				<section className="contact index-section" id="contact">
205 207
 					<div className="parallax-contact">
206 208
 						<i className="parallax-object-4">

+ 46
- 2
src/pages/services.jsx Переглянути файл

@@ -11,8 +11,52 @@ const VosBesoins = () => {
11 11
 			<div className="page-content">
12 12
 				<h2 className="page-title">Nos services</h2>
13 13
 				<section className="page-section">
14
-					<h3 className="section-title" id="web-dev"></h3>
15
-					<p className="section-paragraph"></p>
14
+					<h3 className="section-title" id="dev">
15
+						Développement et accompagnement
16
+					</h3>
17
+					<p className="section-paragraph">
18
+						Vous êtes une personne, une association, une entreprise et vous souhaitez
19
+						une présence sur internet sans trop savoir comment vous y prendre ? Un
20
+						projet en tête mais aucune idée du bout par lequel commencer ? Nous
21
+						répondons présent·es pour vous accompagner dans la mise en place de votre
22
+						projet de site web, quel qu'il soit, et nous occupons de tout, du
23
+						développement à la mise en ligne.
24
+					</p>
25
+					<p className="section-paragraph">
26
+						Nous développons aussi des logiciels pour votre entreprise [...]
27
+					</p>
28
+					<div className="process">
29
+						<p>
30
+							Afin de vous garantir satisfaction, et les meilleurs résultats nous
31
+							avons pour habitude de travailler de la manière suivante
32
+						</p>
33
+						<ul>
34
+							<li>
35
+								Une première version au plus vite avec les fonctionnalités minimales
36
+							</li>
37
+							<li>
38
+								Développement par itération : nous faisons évolution le produit
39
+								ensemble d'après votre avis
40
+							</li>
41
+							<li>Maintenance sur le moyen/long terme</li>
42
+						</ul>
43
+					</div>
44
+				</section>
45
+				<section className="page-section">
46
+					<h3 className="section-title" id="maintenance">
47
+						Maintenance informatique
48
+					</h3>
49
+					<p className="section-paragraph">
50
+						Un problème avec votre ordinateur, ou votre réseau ? Nous y jetons un oeil
51
+						pour trouver l'origine de la panne et la résoudre.
52
+					</p>
53
+					<p className="section-paragraph">
54
+						Votre site internet ou un de vos logiciels présente des problèmes de
55
+						fonctionnement ? Après diagnostique, nous pouvons nous charger de les
56
+						réparer. En outre, garder à jour un site internet ou un logiciel permet de
57
+						se prémunir d'une majorité de problèmes : pertes de données, bugs, piratage
58
+						...
59
+					</p>
16 60
 				</section>
17 61
 			</div>
18 62
 		</Layout>

+ 1
- 1
src/scss/abstracts/_colors.scss Переглянути файл

@@ -1,5 +1,5 @@
1 1
 $primary: #ad73d2;
2
-$primary-darker: hsl(277, 51%, 35%);
2
+$primary-darker: #642c87;
3 3
 $secondary: #a6d0d9;
4 4
 $light: #f0f6f9;
5 5
 $dark: #2f2e44;

+ 43
- 17
src/scss/index.scss Переглянути файл

@@ -39,7 +39,7 @@
39 39
 	min-width: 18rem;
40 40
 }
41 41
 
42
-@media (min-width: 630px) {
42
+@media (min-width: 800px) {
43 43
 	.parallax-ethic {
44 44
 		position: absolute;
45 45
 		left: 30%;
@@ -48,25 +48,31 @@
48 48
 
49 49
 	.parallax-team {
50 50
 		position: absolute;
51
-		left: 70%;
51
+		left: 30%;
52 52
 		transform: translateX(-50%);
53 53
 	}
54 54
 
55 55
 	.parallax-realisation {
56 56
 		position: absolute;
57
-		left: 40%;
57
+		left: 70%;
58 58
 		transform: translateX(-50%);
59 59
 	}
60 60
 
61 61
 	.parallax-ethic,
62 62
 	.parallax-team,
63
-	.parallax-realisation,
64
-	.parallax-contact {
63
+	.parallax-realisation {
65 64
 		top: 50px;
66 65
 		z-index: -2;
67 66
 		opacity: 0.5;
68 67
 		width: 28.5rem;
69 68
 	}
69
+
70
+	.parallax-contact {
71
+		top: 70px;
72
+		z-index: -2;
73
+		opacity: 0.5;
74
+		width: 28.5rem;
75
+	}
70 76
 }
71 77
 
72 78
 .ethic {
@@ -126,12 +132,20 @@
126 132
 	}
127 133
 }
128 134
 
129
-.team {
130
-	background-image: linear-gradient(
131
-		100deg,
132
-		rgba(100, 44, 135, 0.5) 40%,
133
-		rgba(255, 255, 255, 0) 0%
134
-	);
135
+.team:before {
136
+	content: "";
137
+	display: block;
138
+	position: absolute;
139
+	left: 0;
140
+	top: 0;
141
+	width: 100%;
142
+	height: 100%;
143
+	background-image: url(../images/background-index.svg);
144
+	background-position: 50% 0;
145
+	background-size: cover;
146
+	opacity: 40%;
147
+	transform: rotate(0.5turn);
148
+	z-index: -10;
135 149
 }
136 150
 
137 151
 .team-card-group {
@@ -184,12 +198,19 @@
184 198
 	}
185 199
 }
186 200
 
187
-.realisation {
188
-	background-image: linear-gradient(
189
-		-100deg,
190
-		rgba(100, 44, 135, 0.5) 40%,
191
-		rgba(255, 255, 255, 0) 0%
192
-	);
201
+.realisation:before {
202
+	content: "";
203
+	display: block;
204
+	position: absolute;
205
+	left: 0;
206
+	top: 0;
207
+	width: 100%;
208
+	height: 100%;
209
+	background-image: url(../images/background-index.svg);
210
+	background-position: 50% 0;
211
+	background-size: cover;
212
+	opacity: 40%;
213
+	z-index: -10;
193 214
 }
194 215
 
195 216
 .realisation-card-group {
@@ -201,3 +222,8 @@
201 222
 	padding-top: 150px;
202 223
 	padding-bottom: 100px;
203 224
 }
225
+
226
+.contact {
227
+	.parallax-contact {
228
+	}
229
+}

+ 1
- 1
src/scss/main.scss Переглянути файл

@@ -71,7 +71,7 @@ main {
71 71
 	display: flex;
72 72
 	flex-direction: column;
73 73
 	align-items: center;
74
-	max-width: 85vw;
74
+	width: 85vw;
75 75
 	background-color: transparent;
76 76
 }
77 77
 

Loading…
Відмінити
Зберегти