-
-
Notifications
You must be signed in to change notification settings - Fork 457
West Midlands | Jan-2026 | Arunkumar Akilan | Sprint 1 | Wireframe to Web Code #995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
d2d8387
b64dc63
b5bc4d1
32d8416
f1416d5
27b3408
b2681d2
0cbf4b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ body { | |
| background: var(--paper); | ||
| color: var(--ink); | ||
| font: var(--font); | ||
| padding: 80px; | ||
| } | ||
| a { | ||
| padding: var(--space); | ||
|
|
@@ -48,12 +49,34 @@ https://www.w3.org/WAI/tutorials/page-structure/regions/ | |
| main { | ||
| max-width: var(--container); | ||
| margin: 0 auto calc(var(--space) * 4) auto; | ||
| padding-bottom: 80px; | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are two There are also a few selectors that are related to |
||
| footer { | ||
| position: fixed; | ||
| left: 0; | ||
| right: 0; | ||
| bottom: 0; | ||
| z-index: 10; | ||
| padding: 4px 0; | ||
| background: white; | ||
| text-align: center; | ||
| } | ||
| footer nav{ | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| gap: var(--space); | ||
| flex-direction: row; | ||
| flex-wrap: wrap; | ||
| } | ||
| footer nav a{ | ||
| padding: 4px 8px; | ||
| border: none; | ||
| max-width: fit-content; | ||
| text-decoration: none; | ||
| color: #222; | ||
| font-size: 0.9rem; | ||
| } | ||
| /* ====== Articles Grid Layout ==== | ||
| Setting the rules for how articles are placed in the main element. | ||
| Inspect this in Devtools and click the "grid" button in the Elements view | ||
|
|
@@ -87,3 +110,11 @@ article { | |
| grid-column: span 3; | ||
| } | ||
| } | ||
| main>section{ | ||
| display:grid; | ||
| grid-template-columns: 1fr 1fr; | ||
| gap: 16px; | ||
| } | ||
| main>section article:first-child { | ||
| grid-column: 1 / -1; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.