Skip to content

Commit efdc131

Browse files
committed
Update project layout and styles
1 parent 4135050 commit efdc131

File tree

1 file changed

+84
-4
lines changed

1 file changed

+84
-4
lines changed

projects/projects.css

Lines changed: 84 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ body {
8383
align-items: center;
8484
padding-top: 5em;
8585
margin: 0;
86+
width: 100%;
8687
}
8788

8889
/* Projects */
@@ -92,7 +93,7 @@ body {
9293
flex-direction: column;
9394
align-items: center;
9495
padding-bottom: 2em;
95-
width: 100%;
96+
width: 95%;
9697
}
9798

9899
#AltTitle {
@@ -105,7 +106,7 @@ body {
105106
border-radius: 0.625em;
106107
font-family: "Lato";
107108
font-size: 1em;
108-
width: calc(95% - 1.25em);
109+
width: calc(100% - 1.25em);
109110
margin: 0 0 1em 0;
110111
border: none;
111112
}
@@ -132,7 +133,7 @@ body {
132133
.project {
133134
display: flex;
134135
flex-direction: row;
135-
width: 95%;
136+
width: 100%;
136137
background-color: #204359;
137138
border-radius: 0.625em;
138139
overflow: hidden;
@@ -148,7 +149,42 @@ body {
148149
flex-direction: column;
149150
gap: 0.5em;
150151
width: 65%;
151-
padding: 0 1em;
152+
padding: 1em;
153+
}
154+
155+
.ProjectTitle {
156+
font: bold 1.5em "Lato";
157+
color: #d2d9d8;
158+
}
159+
160+
.ProjectDesc {
161+
font: 1em "Lato";
162+
color: #d2d9d8;
163+
}
164+
165+
.buttons {
166+
display: flex;
167+
gap: 0.5em;
168+
padding: 0.5em 0;
169+
justify-content: flex-end;
170+
}
171+
172+
.buttons a {
173+
padding: 0.25em 0.5em;
174+
border-radius: 0.625em;
175+
font: bold 1em "Lato";
176+
text-decoration: none;
177+
color: #204359;
178+
background-color: #d2d9d8;
179+
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out,
180+
transform 0.3s ease-in-out;
181+
}
182+
183+
.buttons a:hover,
184+
.buttons a:active {
185+
background-color: #a5d0e1;
186+
color: #080d0c;
187+
transform: scale(1.05);
152188
}
153189

154190
/* Footer */
@@ -247,4 +283,48 @@ footer textarea {
247283
.contactform {
248284
width: 80%;
249285
}
286+
.project {
287+
flex-direction: column;
288+
}
289+
.project-image {
290+
width: 100%;
291+
}
292+
.project-info {
293+
width: calc(100% - 1em);
294+
flex-wrap: wrap;
295+
padding: 0.5em;
296+
}
297+
.ProjectTitle {
298+
text-align: center;
299+
}
300+
.buttons {
301+
justify-content: center;
302+
}
303+
}
304+
305+
/* Tablet */
306+
@media only screen and (min-width: 426px) and (max-width: 768px) {
307+
.buttons {
308+
padding: 0;
309+
}
310+
}
311+
312+
/* Laptop Xl */
313+
314+
@media only screen and (min-width: 1025px) {
315+
#AltTitle {
316+
font-size: 3em;
317+
}
318+
#searchInput {
319+
font-size: 1.5em;
320+
}
321+
.ProjectTitle {
322+
font-size: 2em;
323+
}
324+
.ProjectDesc {
325+
font-size: 1.25em;
326+
}
327+
.buttons a {
328+
font-size: 1.25em;
329+
}
250330
}

0 commit comments

Comments
 (0)