From 2fad486eb33e18839c692d1f5129e4c4ca7abc8e Mon Sep 17 00:00:00 2001 From: RomanSanaye Date: Sat, 10 Jan 2026 14:40:01 +0000 Subject: [PATCH] HTML and CSS was Edited & Finalized --- Wireframe/index.html | 41 +++++++++++---- Wireframe/style.css | 123 ++++++++++++++++++++++++------------------- 2 files changed, 100 insertions(+), 64 deletions(-) diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..072bc5be8 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -8,26 +8,47 @@
-

Wireframe

+

Wireframe Coursework

- This is the default, provided code and no changes have been made yet. + Explaining README files, wireframes, and Git branches using a simple + webpage layout.

+
- -

Title

+ README file illustration +

README File

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. + A README file explains what a project is about, how to install it, and + how to use it. It is usually the first file users read.

- Read more + Read more +
+ +
+ Wireframe layout example +

Wireframe

+

+ A wireframe shows the basic structure of a webpage before design and + development begin. It focuses on layout and content placement. +

+ Read more +
+ +
+ Git branch diagram +

Git Branch

+

+ A Git branch allows developers to work on new features separately + without affecting the main project code. +

+ Read more
+ diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..21928c0ee 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 oklab, black 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 */ + +/* ====== Base Elements ====== */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + body { + width: 90%; + margin: 10px auto; background: var(--paper); color: var(--ink); font: var(--font); + padding-bottom: 40px; } + a { + display: inline-block; padding: var(--space); border: var(--line); max-width: fit-content; + text-decoration: none; } + 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; -} -footer { - position: fixed; - bottom: 0; + +header { text-align: center; + margin-top: 20px; +} + +header h1 { + margin-bottom: var(--space); } -/* ====== 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/ -*/ + +header p { + margin-bottom: calc(var(--space) * 2); +} + main { + max-width: var(--container); + margin: 0 auto calc(var(--space) * 4) auto; + padding: 10px; 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. -*/ +} + +main > *:first-child { + grid-column: span 2; +} + 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; - } +} + +article > * { + grid-column: 2 / 3; +} + +article > img { + grid-column: span 3; + margin-bottom: var(--space); +} + +article a { + margin-top: var(--space); +} + +footer { + position: fixed; + bottom: 0; + left: 0; + width: 100%; + height: 30px; + border-top: var(--line); + display: flex; + justify-content: center; + align-items: center; + background: var(--paper); +} + +footer p { + margin: 0; + text-align: center; }