From 76e8cdf8ee98e4f51c88b0cdd6d2a8d361e921ad Mon Sep 17 00:00:00 2001 From: eyob-tech Date: Sun, 7 Jun 2026 22:02:28 +0100 Subject: [PATCH 1/3] add wireframe webpage with 3 articles --- Wireframe/index.html | 87 +++++++++++++++++--------- Wireframe/style.css | 145 ++++++++++++++++++++++++------------------- 2 files changed, 137 insertions(+), 95 deletions(-) diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..5cbf8d4e7 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,60 @@ - - - - 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 -
-
- - + + + + Web Development Basics + + + +
+

Understanding Web Development

+

Learn about the tools and concepts every developer needs to know

+
+ +
+
+ A README file displayed in a code editor +

What is the purpose of a README file?

+

When you open someone's project for the first time, + the README is the first thing you read. It tells you + what the project does, why it exists, how to install it, + and how to use it. Without a README, other developers + would have no idea where to start. Writing a clear README + is one of the most important habits a developer can build.

+ Read more +
+ +
+ A hand-drawn wireframe sketch of a webpage layout +

What is the purpose of a wireframe?

+

Before writing a single line of code, designers and + developers draw a wireframe. It is a simple sketch that + shows where each part of the page will go — the header, + the images, the text, the buttons. Think of it like the + blueprint of a house. You plan before you build. A + wireframe saves time and avoids confusion later.

+ Read more +
+ +
+ A diagram showing how Git branches split from the main branch +

What is a branch in Git?

+

A branch in Git is like a safe copy of your project + where you can make changes freely. While you work on + your branch, the main code stays untouched. When your + work is finished and tested, you merge your branch back + into main. This is how developers work together without + breaking each other's code.

+ Read more +
+
+ + + + + diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..7e01fa3f7 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,104 @@ -/* 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 ====== */ +/* ====== Design Palette ====== */ :root { --paper: oklch(7 0 0); - --ink: color-mix(in oklab, var(--color) 5%, black); + --ink: color-mix(in oklch, var(--color) 5%, black); --font: 100%/1.5 system-ui; - --space: clamp(6px, 6px + 2vw, 15px); + --space: clamp(6px, 2px + 2vw, 15px); --line: 1px solid; - --container: 1280px; + --container: 1200px; } -/* ====== Base Elements ====== - General rules for basic HTML elements in any context */ + +/* ====== Base Elements ====== */ body { - background: var(--paper); - color: var(--ink); font: var(--font); + color: var(--ink); + background: #f9f9f9; + margin: 0; + padding: 0; + padding-bottom: 80px; + font-family: system-ui, sans-serif; } + +h1, h2 { + margin: 0 0 8px 0; +} + a { - padding: var(--space); - border: var(--line); - max-width: fit-content; + display: inline-block; + padding: 8px 16px; + border: 1px solid #333; + color: #333; + text-decoration: none; + margin-top: 8px; +} + +a:hover { + background: #333; + color: white; } + +a:focus { + outline: 3px solid blue; +} + img, svg { width: 100%; + height: 200px; object-fit: cover; + display: block; } -/* ====== 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; -} -footer { - position: fixed; - bottom: 0; + +/* ====== Header ====== */ +header { text-align: center; + padding: 24px 16px; + border-bottom: 1px solid #ccc; + background: white; } -/* ====== 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/ -*/ + +/* ====== Site Layout ====== */ main { + max-width: 900px; + margin: 24px auto; + padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; - gap: var(--space); - > *:first-child { - grid-column: span 2; - } + gap: 24px; } -/* ====== 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. -*/ + +/* First article spans full width */ +main > article:first-child { + grid-column: span 2; +} + +/* ====== Article Layout ====== */ article { - border: var(--line); - padding-bottom: var(--space); + border: 1px solid #ccc; + padding: 16px; + background: white; text-align: left; - display: grid; - grid-template-columns: var(--space) 1fr var(--space); - > * { - grid-column: 2/3; - } - > img { - grid-column: span 3; - } +} + +article h2 { + font-size: 1.1rem; + margin: 12px 0 8px; +} + +article p { + font-size: 0.95rem; + line-height: 1.6; + margin-bottom: 12px; +} + +/* ====== Footer ====== */ +footer { + position: fixed; + bottom: 0; + width: 100%; + text-align: center; + padding: 16px; + background: #333; + color: white; + font-size: 0.9rem; } From b604bdf8a616148fcf5f38ecedd889efabd19b67 Mon Sep 17 00:00:00 2001 From: eyob-tech Date: Tue, 9 Jun 2026 01:44:12 +0100 Subject: [PATCH 2/3] Fix unique images for each article --- Wireframe/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wireframe/index.html b/Wireframe/index.html index 5cbf8d4e7..d957fc399 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -14,7 +14,7 @@

Understanding Web Development

- A README file displayed in a code editor + A README file displayed in a code editor

What is the purpose of a README file?

When you open someone's project for the first time, the README is the first thing you read. It tells you @@ -26,7 +26,7 @@

What is the purpose of a README file?

- A hand-drawn wireframe sketch of a webpage layout + A hand-drawn wireframe sketch of a webpage layout

What is the purpose of a wireframe?

Before writing a single line of code, designers and developers draw a wireframe. It is a simple sketch that @@ -38,7 +38,7 @@

What is the purpose of a wireframe?

- A diagram showing how Git branches split from the main branch + A diagram showing Git branches

What is a branch in Git?

A branch in Git is like a safe copy of your project where you can make changes freely. While you work on From 8cb1daf5cae75465a49f3702ba5260174a03395d Mon Sep 17 00:00:00 2001 From: eyob-tech Date: Tue, 9 Jun 2026 01:55:03 +0100 Subject: [PATCH 3/3] Add unique link to each article --- Wireframe/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wireframe/index.html b/Wireframe/index.html index d957fc399..c71f5ca9d 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -22,7 +22,7 @@

What is the purpose of a README file?

and how to use it. Without a README, other developers would have no idea where to start. Writing a clear README is one of the most important habits a developer can build.

- Read more + Read more
@@ -34,7 +34,7 @@

What is the purpose of a wireframe?

the images, the text, the buttons. Think of it like the blueprint of a house. You plan before you build. A wireframe saves time and avoids confusion later.

- Read more + Read more
@@ -46,7 +46,7 @@

What is a branch in Git?

work is finished and tested, you merge your branch back into main. This is how developers work together without breaking each other's code.

- Read more + Read more