From fb1b2567c4f48a1f7f034ce0cfb9f8975e19137d Mon Sep 17 00:00:00 2001 From: FarancisGH Date: Tue, 20 Jan 2026 21:13:50 +0000 Subject: [PATCH 1/2] My Wireframe Project --- Form-Controls/index.html | 84 +++++++++++++++++++++---------- Wireframe/index.html | 38 ++++++++------ Wireframe/style.css | 104 +++++++++------------------------------ 3 files changed, 107 insertions(+), 119 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cdb..2c251a862 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,27 +1,61 @@ - - - - My form exercise - - - - -
-

Product Pick

-
-
-
- - -
-
- - - + + + + + My Form exercise + + +
+
+ + +
+ + + +
+ + +
+
+ Gender +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+ Favourite Fruit +
+
+ + +
+
+ + +
+ + +
+
+ + + + + \ No newline at end of file diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..ea6aa89d0 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -7,27 +7,37 @@ +
-

Wireframe

+

ReadMe, Wireframe and Branches.

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

+ Below we will be discussing on what the purpose of a Readme file is, the purpose of a wireframe and what a branch is and what a branch in git is. But first, lets look at this image. +

- -

Title

+

ReadMe

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. + A ReadMe file is a document that provides essential information about a project, software, or repository. It serves as a guide for users and developers, offering details such as installation instructions, usage guidelines, features, and licensing information. The primary purpose of a ReadMe file is to help users understand what the project is about, how to use it effectively, and how to contribute if applicable. It often includes sections like an overview, prerequisites, installation steps, usage examples, and contact information for support.

- Read more + Image + Click to learn more. +
+

Wireframe

+

+ A wireframe is a visual representation or blueprint of a website, application, or user interface. It outlines the basic structure, layout, and functionality of a design without focusing on detailed aesthetics. Wireframes are typically created in the early stages of the design process to help designers, developers, and stakeholders visualize the overall structure and flow of a project. They often include placeholders for content, navigation elements, and interactive features, allowing for easy communication and collaboration among team members before moving on to more detailed design and development phases. +

+ Image of a wireframe + Click to learn more. +
+

Branches

+

+ In version control systems like Git, a branch is a separate line of development that allows multiple developers to work on different features or fixes simultaneously without affecting the main codebase. Branches enable teams to isolate changes, experiment with new ideas, and collaborate more effectively. When a feature or fix is complete, the changes made in the branch can be merged back into the main branch (often called "main" or "master"). This process helps maintain a clean and stable codebase while allowing for parallel development efforts. +

+ Image of git branches + Click to learn more.
-
-

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

-
- +
+ diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..f8163e8cc 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,33 @@ -/* 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 */ body { - background: var(--paper); - color: var(--ink); - font: var(--font); + margin: 0; + padding: 0; + font-family: Arial, sans-serif; } -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; +main { + max-width: 900px; + margin: 0 auto; + padding: 20px; } -img, -svg { - width: 100%; - object-fit: cover; +article { + margin-bottom: 40px; + text-align: center; } -/* ====== 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; +img { + display: block; + max-width: 100%; + height: auto; + margin: 20px auto; } -footer { - position: fixed; - bottom: 0; +h1, h2 { text-align: center; } -/* ====== 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/ -*/ -main { - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--space); - > *:first-child { - grid-column: span 2; - } +a { + display: inline-block; + margin-top: 10px; + color: #0066cc; + text-decoration: none; } -/* ====== 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; - } - > img { - grid-column: span 3; - } + +a:hover { + text-decoration: underline; } From 9b822f323be7ce4ccf10085fb52db1dee52a43a2 Mon Sep 17 00:00:00 2001 From: FarancisGH Date: Tue, 20 Jan 2026 21:58:35 +0000 Subject: [PATCH 2/2] Wireframe --- Form-Controls/README.md | 51 --------------------------------- Form-Controls/index.html | 61 ---------------------------------------- 2 files changed, 112 deletions(-) delete mode 100644 Form-Controls/README.md delete mode 100644 Form-Controls/index.html diff --git a/Form-Controls/README.md b/Form-Controls/README.md deleted file mode 100644 index bfcdf6c0b..000000000 --- a/Form-Controls/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# Form Controls - -## Learning Objectives - - - -- [ ] Interpret requirements and check against a list of criteria -- [ ] Write a valid form -- [ ] Test with Devtools -- [ ] Refactor using Devtools - - -## Task - -We are selling t-shirts. Write a form to collect the following data: - -Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size. - -Writing that out as a series of questions to ask yourself: - -1. What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something. -2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern. -3. What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours? -4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL - -All fields are required. -Do not write a form action for this project. - -## Developers must test their work. - -Let's write out our testable criteria. Check each one off as you complete it. - -- [ ] I have used HTML only. -- [x] I have not used any CSS or JavaScript. - -### HTML - -- [ ] My form is semantic html. -- [ ] All inputs have associated labels. -- [ ] My Lighthouse Accessibility score is 100. -- [ ] I require a valid name. I have defined a valid name as a text string of two characters or more. -- [ ] I require a valid email. -- [ ] I require one colour from a defined set of 3 colours. -- [ ] I require one size from a defined set of 6 sizes. - -## Resources - -- [MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms) -- [MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation) -- [Lighthouse](https://developers.google.com/web/tools/lighthouse) -- [Lighthouse Guide](https://programming.codeyourfuture.io/guides/testing/lighthouse) diff --git a/Form-Controls/index.html b/Form-Controls/index.html deleted file mode 100644 index 2c251a862..000000000 --- a/Form-Controls/index.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - My Form exercise - - -
-
- - -
- - -
-
- - -
-
- Gender -
- - -
-
- - -
-
- - -
-
- - -
- - -
- Favourite Fruit -
-
- - -
-
- - -
- - -
-
- - - - - \ No newline at end of file