Browse Source

fonts are now locally stored

Lou 3 years ago
parent
commit
429570671d

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

1
 @use "../../scss/abstracts/colors" as *;
1
 @use "../../scss/abstracts/colors" as *;
2
-@use "../../scss/abstracts/fonts" as *;
2
+// @use "../../scss/abstracts/fonts" as *;
3
+
4
+@font-face {
5
+	font-family: CutiveMono;
6
+	src: url(../../fonts/CutiveMono-Regular.ttf);
7
+}
3
 
8
 
4
 header {
9
 header {
5
 	// width: 100vw;
10
 	// width: 100vw;
25
 		h1 {
30
 		h1 {
26
 			font-size: 2.5rem;
31
 			font-size: 2.5rem;
27
 			font-weight: 900;
32
 			font-weight: 900;
28
-			font-family: "Cutive Mono";
33
+			font-family: CutiveMono;
29
 			color: $dark;
34
 			color: $dark;
30
 		}
35
 		}
31
 
36
 

+ 20
- 14
src/components/navbar/index.scss View File

1
 @use "../../scss/abstracts/colors" as *;
1
 @use "../../scss/abstracts/colors" as *;
2
-@use "../../scss/abstracts/fonts" as *;
2
+// @use "../../scss/abstracts/fonts" as *;
3
+
4
+@font-face {
5
+	font-family: CutiveMono;
6
+	src: url(../../fonts/CutiveMono-Regular.ttf);
7
+}
3
 
8
 
4
 #navbar-container {
9
 #navbar-container {
5
 	clear: both;
10
 	clear: both;
32
 		}
37
 		}
33
 	}
38
 	}
34
 
39
 
35
-.title-and-menu {
36
-	margin: 0 auto;
40
+	.title-and-menu {
41
+		margin: 0 auto;
37
 
42
 
38
 		#navbar-title {
43
 		#navbar-title {
39
-			font-family: "Cutive Mono";
44
+			font-family: CutiveMono;
40
 			font-size: 2.5rem;
45
 			font-size: 2.5rem;
41
 			font-weight: bold;
46
 			font-weight: bold;
42
 			color: $dark;
47
 			color: $dark;
47
 				padding: 0;
52
 				padding: 0;
48
 			}
53
 			}
49
 		}
54
 		}
50
-	
51
-	.menu-toggle-container {
52
-		display: none;
55
+
56
+		.menu-toggle-container {
57
+			display: none;
58
+		}
53
 	}
59
 	}
54
-}
55
 	#contact-btn {
60
 	#contact-btn {
56
 		margin-right: 1.5rem;
61
 		margin-right: 1.5rem;
57
 		padding-left: 99px;
62
 		padding-left: 99px;
96
 		flex-direction: column-reverse;
101
 		flex-direction: column-reverse;
97
 		align-items: center;
102
 		align-items: center;
98
 	}
103
 	}
99
-	
100
-	
104
+
101
 	.details {
105
 	.details {
102
 		position: absolute;
106
 		position: absolute;
103
 		display: flex;
107
 		display: flex;
115
 		position: absolute;
119
 		position: absolute;
116
 		display: flex;
120
 		display: flex;
117
 		flex-direction: column;
121
 		flex-direction: column;
118
-		align-items:center;
122
+		align-items: center;
119
 		top: 4.5rem;
123
 		top: 4.5rem;
120
 		background-color: white;
124
 		background-color: white;
121
 		width: 100%;
125
 		width: 100%;
126
 			display: flex;
130
 			display: flex;
127
 			justify-content: center;
131
 			justify-content: center;
128
 
132
 
129
-			&:hover, &:focus{
133
+			&:hover,
134
+			&:focus {
130
 				background-color: $light;
135
 				background-color: $light;
131
 			}
136
 			}
132
 		}
137
 		}
133
 	}
138
 	}
134
 
139
 
135
 	.title-and-menu {
140
 	.title-and-menu {
136
-		margin-left: .5rem;
141
+		margin-left: 0.5rem;
137
 		display: flex;
142
 		display: flex;
138
 		width: 100%;
143
 		width: 100%;
139
 		z-index: 2;
144
 		z-index: 2;
150
 			border-radius: 0.25rem;
155
 			border-radius: 0.25rem;
151
 			transition: box-shadow 0.15s ease-in-out;
156
 			transition: box-shadow 0.15s ease-in-out;
152
 
157
 
153
-			&:hover, &:focus {
158
+			&:hover,
159
+			&:focus {
154
 				cursor: pointer;
160
 				cursor: pointer;
155
 				box-shadow: 0 0 1px 1px $dark;
161
 				box-shadow: 0 0 1px 1px $dark;
156
 			}
162
 			}

BIN
src/fonts/CutiveMono-Regular.ttf View File


BIN
src/fonts/Raleway-Regular.ttf View File


+ 0
- 2
src/scss/abstracts/_fonts.scss View File

1
-@import url("https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap");
2
-@import url("https://fonts.googleapis.com/css2?family=Raleway&display=swap");

+ 4
- 1
src/scss/index.scss View File

1
 @use "./abstracts/colors" as *;
1
 @use "./abstracts/colors" as *;
2
-@use "./abstracts/fonts" as *;
2
+// @use "./abstracts/fonts" as *;
3
+
4
+$CutiveMono: "CutiveMono";
5
+$Raleway: "Raleway";
3
 
6
 
4
 .index-made-by-us {
7
 .index-made-by-us {
5
 	.list-card {
8
 	.list-card {

+ 6
- 2
src/scss/main.scss View File

1
 @use "./abstracts/colors" as *;
1
 @use "./abstracts/colors" as *;
2
-@use "./abstracts/fonts" as *;
2
+
3
+@font-face {
4
+	font-family: Raleway;
5
+	src: url(../fonts/Raleway-Regular.ttf);
6
+}
3
 
7
 
4
 :root {
8
 :root {
5
 	background: white;
9
 	background: white;
6
 	color: $dark;
10
 	color: $dark;
7
 	font-size: 16px;
11
 	font-size: 16px;
8
-	font-family: "Raleway", "sans-serif";
12
+	font-family: Raleway;
9
 }
13
 }
10
 
14
 
11
 *::before {
15
 *::before {

Loading…
Cancel
Save