From 7d6e5c0b6744507a4f7ceaf8478f5fd49b0af065 Mon Sep 17 00:00:00 2001 From: lord-bmg Date: Fri, 16 May 2025 21:26:24 +0100 Subject: [PATCH 1/2] Changes made to index.html and style.css --- Wireframe/index.html | 51 ++++++++++------- Wireframe/style.css | 132 +++++++++++++++++-------------------------- 2 files changed, 84 insertions(+), 99 deletions(-) diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e53..6901a5e2 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,44 @@ - - - Wireframe - + + + + Project Essentials: README, Wireframes, and Git Branches +
-

Wireframe

-

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

+

Project Essentials

+

Understand the importance of README files, wireframes, and Git branches in software development.

-
- -

Title

-

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

- Read more -
+
+
+

What is the purpose of a README file?

+

+ A README file provides documentation for your project, explaining its purpose, structure, and how to use it. It helps users and collaborators understand your project quickly. +

+ Learn more about README files +
+
+

What is the purpose of a wireframe?

+

+ A wireframe is a visual guide that represents the skeletal framework of a website or application. It helps teams plan layout and user experience before starting the design or development process. +

+ Learn more about wireframes +
+
+

What is a branch in Git?

+

+ A branch in Git is a separate line of development that allows you to work on new features or fixes without affecting the main codebase. Branches make collaboration and parallel development easier. +

+ Learn more about Git branches +
+
diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c..7de75489 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,63 @@ -/* 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 */ +body { + margin: 0; + font-family: Arial, sans-serif; + min-height: 100vh; + display: flex; + flex-direction: column; + background: #fff; + color: #222; +} -/* ====== 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; +header { + background: #f4f4f4; + padding: 1.5em 1em 1em 1em; + text-align: center; } -/* ====== Base Elements ====== - General rules for basic HTML elements in any context */ -body { - background: var(--paper); - color: var(--ink); - font: var(--font); + +main { + flex: 1; + padding: 1em; + background: #fff; } -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; + +section { + display: flex; + flex-direction: column; + gap: 2em; + max-width: 800px; + margin: 0 auto; } -img, -svg { - width: 100%; - object-fit: cover; + +article { + background: #e9ecef; + padding: 1em; + border-radius: 8px; + box-shadow: 0 1px 4px rgba(0,0,0,0.04); } -/* ====== 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; + +article h2 { + margin-top: 0; } + +article a { + color: #0056b3; + text-decoration: underline; + font-weight: bold; +} + +article a:focus, +article a:hover { + outline: 2px solid #0056b3; + background: #dbeafe; +} + footer { + background: #222; + color: #fff; + text-align: center; + padding: 1em 0; position: fixed; + width: 100%; bottom: 0; - 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; - } -} -/* ====== 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; - } + left: 0; } From 6e8cff51b8df7c72bafff41c2944ca9dae5725c0 Mon Sep 17 00:00:00 2001 From: lord-bmg Date: Sat, 17 May 2025 13:50:56 +0100 Subject: [PATCH 2/2] The index was updated acording the requirements --- Form-Controls/index.html | 75 +++++++++++++++++++++++++++++++++++----- 1 file changed, 67 insertions(+), 8 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cd..c4801df7 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -3,9 +3,22 @@ - My form exercise - + My form exercise - Sell a T-shirt + +
@@ -13,15 +26,61 @@

Product Pick

- - + + + + + +
+

T-shirt Selection Form

+

+ Required fields are marked with * +

+
+ Customer Information + + +

+ + +
+
+
+ Color Options * +
+ + + + + + +
+
+
+
+ Size * + + +
+
+ +