diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cdb..017e9886a 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,27 +1,109 @@ - - - - My form exercise - - - - -
-

Product Pick

-
-
-
- - -
-
- - + + + Product Pick Form Controls + + + + +
+

Product Pick

+
+ +
+
+

All fields are required. Please fill out your details and choose your t-shirt colour and size.

+ +
+ Confirm Your Details + +

+
+ +

+ +

+
+ +

+
+ +
+ Choose a colour: + +

+ +

+ +

+ +

+ +

+ +

+
+ +

+
+ +

+ +

+ +

+
+
+ + + diff --git a/Wireframe/README.md b/Wireframe/README.md index 0ae0216d1..d691d5dcb 100644 --- a/Wireframe/README.md +++ b/Wireframe/README.md @@ -32,6 +32,7 @@ There are some provided HTML and CSS files you can use to get started. You can u - [ ] The webpage is properly committed and pushed to a branch on GitHub. ## Resources +## Checking - [Wireframe](https://www.productplan.com/glossary/wireframe/) - [Semantic HTML](https://www.w3schools.com/html/html5_semantic_elements.asp) diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..8738c03c8 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,63 @@ - - - - Wireframe - - - -
-

Wireframe

-

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

-
-
-
- -

Title

-

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

- Read more -
-
- - + + + + Wireframe + + + +
+

Learn about README files, wireframes, and Git branches

+

An introduction to important web development concepts

+
+ +
+
+ +

What is the purpose of a README file?

+

A README file introduces and explains a project. It provides important details such as how to install, run, and contribute to the project. It helps other developers understand the project’s structure and purpose.

+ Read more +
+ +
+ +

What is the purpose of a wireframe?

+

A wireframe is a visual guide that represents the layout of a webpage. It helps developers and designers plan the structure and user experience before adding real content or styling.

+ Read more +
+ +
+ +

What is a branch in Git?

+

A branch in Git is a separate line of development. It allows you to work on features without affecting the main project. Once your work is ready, you can merge the branch into the main codebase.

+ Read more +
+
+ + + diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..71cd4d9ce 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,96 @@ -/* 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); + --ink: color-mix(in oklab, white 5%, black); --font: 100%/1.5 system-ui; --space: clamp(6px, 6px + 2vw, 15px); - --line: 1px solid; + --line: 1px solid #ccc; --container: 1280px; } -/* ====== Base Elements ====== - General rules for basic HTML elements in any context */ + +/* Base styles */ body { background: var(--paper); color: var(--ink); font: var(--font); + margin: 0; } -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; -} -img, -svg { - width: 100%; - object-fit: cover; -} -/* ====== 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; + +/* Header + Footer */ +header, +footer { + text-align: center; + padding: 20px; + background: white; + border-bottom: var(--line); } + footer { position: fixed; + width: 100%; bottom: 0; - text-align: center; + border-top: var(--line); } -/* ====== 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/ -*/ + +/* Layout */ main { + max-width: var(--container); + margin: 0 auto calc(var(--space) * 4) auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); - > *:first-child { - grid-column: span 2; - } + padding: var(--space); +} + +/* First article spans two columns */ +main > article:first-child { + grid-column: span 2; } -/* ====== 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. -*/ + +/* Articles */ article { + background: white; 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; - } + padding-bottom: var(--space); +} + +article > * { + grid-column: 2; +} + +/* SVG Placeholder image */ +.placeholder svg { + width: 100%; + height: auto; + display: block; + grid-column: span 3; + object-fit: cover; +} + +/* Headings */ +article h2 { + margin-top: var(--space); + font-size: 1.25rem; +} + +/* Links */ +a { + margin-top: 10px; + padding: var(--space); + border: var(--line); + text-decoration: none; + color: #0077cc; + font-weight: bold; + max-width: fit-content; + display: inline-block; + border-radius: 4px; + transition: 0.3s ease; +} + +a:hover, +a:focus { + background: #0077cc; + color: white; + outline: none; }