diff --git a/Wireframe/git-branch.jpg b/Wireframe/git-branch.jpg new file mode 100644 index 000000000..61167138e Binary files /dev/null and b/Wireframe/git-branch.jpg differ diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..0f84238e7 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -3,30 +3,90 @@ - Wireframe + Web Development Essentials +
-

Wireframe

-

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

+

Web Development Essentials

+

Learn about README files, wireframes, and Git branches.

+
- -

Title

+ Example README file + +

What is a README File?

+ +

+ A README file introduces a project and explains its purpose. It often + includes installation instructions, usage information, and other + important details for developers and users. +

+ + + Read More + +
+ +
+ Website wireframe layout + +

What is a Wireframe?

+ +

+ A wireframe is a simple visual guide used to plan the layout of a web + page. It helps designers and developers understand the structure of a + site before building it. +

+ + + Read More + +
+ +
+ Git branching diagram + +

What is a Git Branch?

+

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. + A Git branch is an independent line of development. Branches allow + developers to work on new features or fixes without affecting the main + version of a project.

- Read more + + + Read More +
+ diff --git a/Wireframe/readme.jpg b/Wireframe/readme.jpg new file mode 100644 index 000000000..87178ec34 Binary files /dev/null and b/Wireframe/readme.jpg differ diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..81a196b6c 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,90 @@ -/* 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; + --space: 1rem; + --container: 1100px; + --border: 1px solid #000; +} + +* { + box-sizing: border-box; } -/* ====== Base Elements ====== - General rules for basic HTML elements in any context */ + body { - background: var(--paper); - color: var(--ink); - font: var(--font); + margin: 0; + padding-bottom: 80px; + font-family: Arial, Helvetica, sans-serif; } -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; + +header { + text-align: center; + padding: 2rem 1rem; } -img, -svg { - width: 100%; - object-fit: cover; + +header h1 { + margin-bottom: 0.5rem; } -/* ====== 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; + margin: 0 auto; + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1.5rem; + padding: 1rem; +} + +main article:first-child { + grid-column: 1 / 3; +} + +article { + border: var(--border); + display: grid; + grid-template-columns: 1rem 1fr 1rem; + padding-bottom: 1rem; +} + +article > * { + grid-column: 2; } + +article img { + grid-column: 1 / 4; + width: 100%; + height: 250px; + object-fit: cover; + border-bottom: var(--border); +} + +article h2 { + margin-top: 1rem; +} + +article a { + display: inline-block; + width: fit-content; + text-decoration: none; + color: black; + border: var(--border); + padding: 0.75rem 1rem; +} + footer { position: fixed; bottom: 0; + left: 0; + width: 100%; text-align: center; + border-top: var(--border); + background-color: white; + padding: 1rem; } -/* ====== 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; + +@media (max-width: 768px) { + main { + grid-template-columns: 1fr; } - > img { - grid-column: span 3; + + main article:first-child { + grid-column: auto; } } diff --git a/Wireframe/wireframe.jpg b/Wireframe/wireframe.jpg new file mode 100644 index 000000000..2161f4ede Binary files /dev/null and b/Wireframe/wireframe.jpg differ