diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..39e179e5e 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,57 @@ - - - - Wireframe - - - -
-

Wireframe

+ + + + + Wireframe + + + + +
+

Wireframe

+

+ A basic blueprint for webpage +

+
+
+
+ +

What is the purpose of readme files?

- This is the default, provided code and no changes have been made yet. + A README file usually serves as the primary, high-level documentation for a + software project, dataset, or repository, + designed to help users and developers understand, install, and use the project

-
-
-
- -

Title

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. -

- Read more -
-
- - - + Read + more + + + + + + + \ No newline at end of file diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..738683c1e 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -31,6 +31,11 @@ body { color: var(--ink); font: var(--font); } + +header { + text-align: center; +} + a { padding: var(--space); border: var(--line); @@ -41,6 +46,12 @@ svg { width: 100%; object-fit: cover; } + +/* Set fixed height for images in articles 2 and 3 */ +/* article:nth-child(2) img, +article:nth-child(3) img { + height: 200px; +} */ /* ====== Site Layout ====== Setting the overall rules for page regions https://www.w3.org/WAI/tutorials/page-structure/regions/ @@ -48,12 +59,26 @@ https://www.w3.org/WAI/tutorials/page-structure/regions/ main { max-width: var(--container); margin: 0 auto calc(var(--space) * 4) auto; + margin-bottom: 6rem; + padding-bottom: 2rem; } + footer { position: fixed; bottom: 0; - text-align: center; + left: 0; + right: 0; + background-color: white; } + +.footer-content { + display: flex; + justify-content: center; + align-items: center; + padding: var(--space); + min-height: 60px; +} + /* ====== 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 @@ -76,14 +101,31 @@ Keeping things orderly and separate is the key to good, simple CSS. */ article { border: var(--line); - padding-bottom: var(--space); text-align: left; - display: grid; - grid-template-columns: var(--space) 1fr var(--space); - > * { - grid-column: 2/3; - } - > img { - grid-column: span 3; - } + display: flex; + flex-direction: column; + height: 100%; +} + +article > img { + width: 100%; +} + +article > h2, +article > p { + padding: 0 var(--space); +} + +article > h2 { + margin: var(--space) 0; +} + +article > p { + flex-grow: 1; + margin: 0 0 var(--space) 0; +} + +article > a { + margin: var(--space); + align-self: flex-start; }