Skip to content

Commit b70be67

Browse files
committed
Cabeçalho e rodapé, deixar flat e usando largura total da tela. Closes #3
1 parent c2a3222 commit b70be67

File tree

1 file changed

+31
-16
lines changed

1 file changed

+31
-16
lines changed

styles.css

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,25 @@ body {
1818
}
1919

2020
header {
21-
text-align: center;
22-
margin-bottom: 40px;
23-
background: linear-gradient(135deg, #ff7b00 0%, #8b4513 100%);
21+
position: relative;
22+
width: 100vw;
23+
left: calc(-50vw + 50%);
24+
text-align: left;
25+
background: linear-gradient(135deg, #ff8c00 0%, #ff6500 100%);
2426
color: white;
25-
padding: 30px;
26-
border-radius: 10px;
27-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
27+
padding: 20px;
28+
margin-bottom: 40px;
29+
margin-top: -20px;
30+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
2831
}
2932

3033
header h1 {
31-
font-size: 2.5rem;
32-
margin-bottom: 10px;
34+
font-size: 1.5rem;
35+
margin-bottom: 5px;
3336
}
3437

3538
header p {
36-
font-size: 1.1rem;
39+
font-size: 1rem;
3740
opacity: 0.9;
3841
}
3942

@@ -289,17 +292,29 @@ button:hover {
289292
}
290293

291294
footer {
295+
position: relative;
296+
width: 100vw;
297+
left: calc(-50vw + 50%);
292298
margin-top: 50px;
293-
padding: 30px;
294-
background: linear-gradient(135deg, #ff7b00 0%, #8b4513 100%);
299+
margin-bottom: -20px;
300+
padding: 15px 20px;
301+
background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
295302
color: white;
296-
border-radius: 10px;
297-
text-align: center;
303+
text-align: right;
304+
}
305+
306+
.footer-content {
307+
font-size: 0.85rem;
298308
}
299309

300310
.footer-content p {
301-
margin: 8px 0;
302-
font-size: 0.95rem;
311+
margin: 0;
312+
display: inline;
313+
}
314+
315+
.footer-content p:not(:last-child)::after {
316+
content: " | ";
317+
margin: 0 8px;
303318
}
304319

305320
.footer-content a {
@@ -330,7 +345,7 @@ footer {
330345
}
331346

332347
header h1 {
333-
font-size: 2rem;
348+
font-size: 1.3rem;
334349
}
335350

336351
.container {

0 commit comments

Comments
 (0)