diff --git a/Wireframe/README.md b/Wireframe/README.md index 0ae0216d1..8243b7101 100644 --- a/Wireframe/README.md +++ b/Wireframe/README.md @@ -14,22 +14,22 @@ There are some provided HTML and CSS files you can use to get started. You can u -- [ ] Use semantic HTML tags to structure the webpage -- [ ] Create three articles, each including a title, summary, and a link -- [ ] Check a webpage against a wireframe layout -- [ ] Test web code using [Lighthouse](https://programming.codeyourfuture.io/guides/testing/lighthouse) -- [ ] Use version control by committing often and pushing regularly to GitHub +- [x] Use semantic HTML tags to structure the webpage +- [x] Create three articles, each including a title, summary, and a link +- [x] Check a webpage against a wireframe layout +- [x] Test web code using [Lighthouse](https://programming.codeyourfuture.io/guides/testing/lighthouse) +- [x] Use version control by committing often and pushing regularly to GitHub ## Acceptance Criteria -- [ ] Semantic HTML tags are used to structure the webpage. -- [ ] The page scores 100 for Accessibility in the Lighthouse audit. -- [ ] The page header includes a title and description. -- [ ] The articles section has three unique articles, each including a title, summary, and a link. -- [ ] The page footer is fixed to the bottom of the viewport. -- [ ] The webpage is styled using a linked .css file. -- [ ] The webpage is properly committed and pushed to a branch on GitHub. +- [x] Semantic HTML tags are used to structure the webpage. +- [x] The page scores 100 for Accessibility in the Lighthouse audit. +- [x] The page header includes a title and description. +- [x] The articles section has three unique articles, each including a title, summary, and a link. +- [x] The page footer is fixed to the bottom of the viewport. +- [x] The webpage is styled using a linked .css file. +- [x] The webpage is properly committed and pushed to a branch on GitHub. ## Resources diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..b4a0b19f6 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,62 @@ - + - - - - Wireframe - - - -
-

Wireframe

-

- This is the default, provided code and no changes have been made yet. -

-
-
-
- -

Title

+ + + + Wireframe | Process + + + + + + +
+

STARTING SIMPLE

+

Breaking down the development process

+
+ +
+
+ A sample README file structure +
+

README.md

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. + The purpose of a README is to explain what the project is about. It + provides a summary of the project, the technology stack used, and + instructions for any required dependencies.

- Read more -
-
-
-

- This is the default, provided code and no changes have been made yet. -

-
- - + Read more + +
+ +
+ A simple website wireframe +
+

Wireframe

+

+ A wireframe is like a draft for your project. It shows where things + will go and how they work before you add colors, images, or final + design details. +

+ Read more +
+
+ +
+ Diagram of a Git branch +
+

A Branch in Git

+

+ A Git branch is a separate line of development within a repository. + It lets you work on features independently without affecting the main code. +

+ Read more +
+
+
+ + + + \ No newline at end of file diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..1d2abdb7d 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,114 @@ -/* Here are some starter styles -You can edit these or replace them entirely -It's showing you a common way to organise CSS -And includes solutions to common problems -As well as useful links to learn more */ - -/* ====== Design Palette ====== - This is our "design palette". - It sets out the colours, fonts, styles etc to be used in this design - At work, a designer will give these to you based on the corporate brand, but while you are learning - You can design it yourself if you like - Inspect the starter design with Devtools - Click on the colour swatches to see what is happening - I've put some useful CSS you won't have learned yet - For you to explore and play with if you are interested - https://web.dev/articles/min-max-clamp - https://scrimba.com/learn-css-variables-c026 -====== Design Palette ====== */ :root { - --paper: oklch(7 0 0); - --ink: color-mix(in oklab, var(--color) 5%, black); - --font: 100%/1.5 system-ui; - --space: clamp(6px, 6px + 2vw, 15px); - --line: 1px solid; - --container: 1280px; -} -/* ====== Base Elements ====== - General rules for basic HTML elements in any context */ + --text-main: rgb(9, 9, 9); + --border-color: rgb(7, 7, 7); + --bg-body: rgb(245, 245, 245); + --bg-card: whitesmoke; + --bg-footer: rgb(238, 236, 233); +} + +* { + padding: 0; + margin: 0; + box-sizing: border-box; +} + body { - background: var(--paper); - color: var(--ink); - font: var(--font); + background: var(--bg-body); + color: var(--text-main); + font-family: "Roboto", Helvetica, sans-serif; } -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; + +header { + text-align: center; + padding: 2rem 1rem; } -img, -svg { - width: 100%; - object-fit: cover; + +h1 { + font-size: 3rem; + font-weight: 900; + margin-bottom: 0.5rem; } -/* ====== Site Layout ====== -Setting the overall rules for page regions -https://www.w3.org/WAI/tutorials/page-structure/regions/ -*/ -main { - max-width: var(--container); - margin: 0 auto calc(var(--space) * 4) auto; + +h2 { + font-size: 1.7rem; + font-weight: 600; } -footer { - position: fixed; - bottom: 0; + +p { + line-height: 1.5; +} + +a { + display: inline-block; + width: 140px; + text-decoration: none; + color: var(--text-main); + border: 1px solid var(--border-color); + padding: 10px 15px; + margin-top: 1.5rem; text-align: center; + transition: all 0.2s ease; } -/* ====== 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 -Play with the options that come up. -https://developer.chrome.com/docs/devtools/css/grid -https://gridbyexample.com/learn/ -*/ + +a:hover, a:focus { + text-decoration: underline; + background-color: var(--text-main); + color: white; + outline: none; +} + main { display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--space); - > *:first-child { - grid-column: span 2; - } + grid-template-columns: repeat(2, 1fr); + gap: 1.5rem; + max-width: 1200px; + margin: 0 auto 4rem; + padding: 0 1rem; +} + +main > article:first-child { + grid-column: 1 / -1; } -/* ====== Article Layout ====== -Setting the rules for how elements are placed in the article. -Now laying out just the INSIDE of the repeated card/article design. -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; + display: flex; + flex-direction: column; + background: var(--bg-card); + border: 1px solid var(--border-color); +} + +article img { + display: block; + object-fit: cover; + width: 100%; + height: 250px; + border-bottom: 1px solid var(--border-color); +} + +article .content { + display: flex; + flex-direction: column; + padding: 1.5rem; + flex-grow: 1; +} + +article .content a { + margin-top: auto; +} + +footer { + text-align: center; + padding: 2rem; + background-color: var(--bg-footer); + border-top: 1px solid #ddd; +} + +@media (max-width: 768px) { + main { + grid-template-columns: 1fr; } - > img { - grid-column: span 3; + + h1 { + font-size: 2.2rem; } -} +} \ No newline at end of file