Skip to content

Commit 87cde94

Browse files
Add files via upload
1 parent a1171cd commit 87cde94

File tree

2 files changed

+54
-12
lines changed

2 files changed

+54
-12
lines changed

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ if (container) {
181181
for (let i = 0; i < 100; i++) {
182182
createStar();
183183
}
184-
}
184+
}

styles.css

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
--clr-bg:hsl(47, 43%, 96%);
55
--clr-bg-hover: hsl(33, 37%, 91%);
66
--clr-bg-dark: hsl(0, 0%, 18%);
7+
--clr-card-dark: hsl(0, 0%, 13%);
8+
--clr-card-light: hsl(0, 0%, 10%);
79
--clr-text: hsl(0, 0%, 24%);
810
--clr-text-light: hsl(0, 0%, 96%);
911
--clr-accent: hsl(31, 42%, 59%);
@@ -63,7 +65,7 @@ img {
6365
}
6466

6567
#contact {
66-
margin: 2rem;
68+
margin: 1rem;
6769
}
6870

6971
#loader {
@@ -115,8 +117,8 @@ header p {
115117
footer {
116118
text-align: center;
117119
font-size: 1rem;
118-
margin: 2rem;
119-
padding: 2rem 1rem;
120+
margin: 1rem;
121+
padding: 1rem;
120122
}
121123

122124
footer a {
@@ -212,13 +214,13 @@ footer a:hover {
212214

213215
.overlay-esg {
214216
position: absolute;
215-
bottom: 0;
217+
top: 0;
216218
left: 0;
217219
width: 100%;
218220
padding: 1rem;
219-
background: rgba(0, 0, 0, 0.6);
221+
background: rgba(0, 0, 0, 0.5);
220222
color: var(--clr-text-light);
221-
font-size: 0.95rem;
223+
font-size: 0.9rem;
222224
font-weight: 500;
223225
text-align: center;
224226
opacity: 0;
@@ -227,7 +229,7 @@ footer a:hover {
227229
font-style: italic;
228230
border-bottom-left-radius: var(--border-radius);
229231
border-bottom-right-radius: var(--border-radius);
230-
backdrop-filter: blur(4px);
232+
backdrop-filter: blur(3px);
231233
}
232234

233235
.card:hover .overlay-esg {
@@ -242,9 +244,10 @@ footer a:hover {
242244
}
243245

244246
.dark-mode .card {
245-
background-color: var(--clr-bg-dark);
247+
background-color: var(--clr-card-dark);
246248
color: var(--clr-text-light);
247-
box-shadow: 0 4px 20px var(--clr-shadow);
249+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
250+
border: 1px solid var(--clr-border);
248251
}
249252

250253
.dark-mode footer a,
@@ -266,6 +269,12 @@ footer a:hover {
266269
background-color: var(--clr-accent-hover);
267270
}
268271

272+
.dark-mode header h1,
273+
.dark-mode header h2,
274+
.dark-mode header p {
275+
color: var(--clr-text-light);
276+
}
277+
269278
/* Form styles */
270279

271280
form {
@@ -297,7 +306,6 @@ input.error {
297306
.form-message {
298307
margin-top: 0.5rem;
299308
font-size: 0.9rem;
300-
font-weight: bold;
301309
transition: opacity 0.3s ease-in-out;
302310
opacity: 0;
303311
}
@@ -536,10 +544,44 @@ blockquote {
536544
}
537545
}
538546

547+
@media (min-width: 801px) {
548+
#contact form {
549+
flex-direction: row;
550+
align-items: center;
551+
justify-content: center;
552+
gap: 1rem;
553+
}
554+
555+
#contact label {
556+
margin: 0;
557+
font-weight: bold;
558+
}
559+
560+
#user_email {
561+
flex: 1;
562+
min-width: 250px;
563+
}
564+
565+
#contact button {
566+
flex-shrink: 0;
567+
padding: 0.6rem 1.2rem;
568+
}
569+
570+
#form-message {
571+
width: 100%;
572+
text-align: center;
573+
margin-top: 0.5rem;
574+
}
575+
576+
#contact h2 {
577+
margin-bottom: 1rem;
578+
}
579+
}
580+
539581
button:focus-visible, input:focus-visible {
540582
outline: 3px solid var(--clr-accent);
541583
}
542584

543585
a:focus-visible {
544586
outline: 2px solid var(--clr-accent);
545-
}
587+
}

0 commit comments

Comments
 (0)