Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Wireframe/git-branch-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 45 additions & 11 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand All @@ -8,26 +8,60 @@
</head>
<body>
<header>
<h1>Wireframe</h1>
<h1>The Utility of Definitions</h1>
<p>
This is the default, provided code and no changes have been made yet.
And its pedagogical implications for the teaching of web development.
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<img src="readme-image.png" alt="Illustration of a README document" />
<h2>What is a README file?</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
A README file explains what a project is, how to use it, and any
important setup instructions.
</p>
<a href="">Read more</a>
<a
href="https://www.freecodecamp.org/news/how-to-write-a-good-readme-file/"
>
Read more
</a>
</article>

<article>
<img
src="wireframe-image.png"
alt="Illustration of a website wireframe"
/>
<h2>What is a wireframe?</h2>
<p>
A wireframe is a simple plan for a webpage. It shows where the main
content, images, and sections should go before the final design is
added.
</p>
<a href="https://www.productplan.com/glossary/wireframe/">
Read more
</a>
</article>

<article>
<img
src="git-branch-image.png"
alt="Illustration of a Git branch diagram"
/>
<h2>What is a branch in Git?</h2>
<p>
A branch is a separate version of a project where developers can make
changes without affecting the main version straight away.
</p>
<a href="https://www.w3schools.com/git/git_branch.asp?remote=github">
Read more
</a>
</article>
</main>

<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p>Martim Lou 2026.</p>
</footer>
</body>
</html>
Binary file added Wireframe/readme-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 109 additions & 15 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,97 @@ As well as useful links to learn more */
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;
--paper: white;
--ink: black;
--muted: #555555;
--font: 100%/1.5 Arial, Helvetica, sans-serif;
--space: clamp(10px, 10px + 2vw, 18px);
--line: 2px solid black;
--container: 1000px;
}

/* ====== Base Elements ======
General rules for basic HTML elements in any context */
* {
box-sizing: border-box;
}

body {
margin: 0;
padding-bottom: 90px;
background: var(--paper);
color: var(--ink);
font: var(--font);
}

a {
padding: var(--space);
display: inline-block;
padding: 10px 16px;
border: var(--line);
color: var(--ink);
font-weight: bold;
text-decoration: none;
max-width: fit-content;
}

a:hover {
background: var(--ink);
color: var(--paper);
}

img,
svg {
display: block;
width: 100%;
height: 240px;
object-fit: cover;
border-bottom: var(--line);
}

/* ====== Site Layout ======
Setting the overall rules for page regions
https://www.w3.org/WAI/tutorials/page-structure/regions/
*/
header {
max-width: var(--container);
margin: 40px auto 32px auto;
padding: 0 var(--space);
text-align: center;
}

header h1 {
margin: 0 0 8px;
font-size: 2.5rem;
}

header p {
margin: 0;
color: var(--muted);
font-weight: bold;
}

main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
padding: 0 var(--space);
}

footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
padding: 20px var(--space);
border-top: var(--line);
background: var(--paper);
text-align: center;
}

footer p {
margin: 0;
color: var(--muted);
}

/* ====== 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
Expand All @@ -65,25 +119,65 @@ main {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
> *:first-child {
grid-column: span 2;
}
}

main > *:first-child {
grid-column: span 2;
}

main > *:first-child img {
height: 320px;
}

/* ====== 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;
}

article > * {
grid-column: 2 / 3;
}

article > img {
grid-column: span 3;
}

article h2 {
margin: var(--space) 0 8px;
}

article p {
margin: 0 0 var(--space);
color: var(--muted);
}

article a {
margin-bottom: var(--space);
}

@media (max-width: 700px) {
main {
grid-template-columns: 1fr;
}
> img {
grid-column: span 3;

main > *:first-child {
grid-column: auto;
}

img,
svg,
main > *:first-child img {
height: 220px;
}

header h1 {
font-size: 2rem;
}
}
Binary file added Wireframe/wireframe-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading