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
65 changes: 52 additions & 13 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,70 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<title>Web Fundamentals</title>
<link rel="stylesheet" href="style.css" />
</head>

<body>
<header>
<h1>Wireframe</h1>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<h1>Web Fundamentals!!!</h1>
<p>Understanding README files, wireframes, and Git branches</p>
</header>

<main>
<!-- Featured article (top wide card) -->
<article class="featured">
<img
src="placeholder.svg"
alt="Document icon representing a README file"
/>
<h2>What is a README file?</h2>
<p>
A README file explains what a project is, how to install or run it,
and how others can use or contribute to it. It is usually the first
file someone reads in a repository.
</p>
<a
href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes"
>
Read more
</a>
</article>

<!-- Two smaller articles -->
<article>
<img
src="placeholder.svg"
alt="Wireframe sketch showing page layout"
/>
<h2>What is a wireframe?</h2>
<p>
A wireframe is a simple visual guide that shows the structure and
layout of a webpage before any code is written.
</p>
<a href="https://www.productplan.com/glossary/wireframe/">
Read more
</a>
</article>

<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<img
src="placeholder.svg"
alt="Diagram illustrating Git branches"
/>
<h2>What is a Git branch?</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
A Git branch allows developers to work on new features or fixes in
isolation without affecting the main codebase.
</p>
<a href="">Read more</a>
<a href="https://git-scm.com/docs/git-branch">
Read more
</a>
</article>
</main>

<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p>© 2026 Ziad Ahmed</p>
</footer>
</body>
</html>
104 changes: 55 additions & 49 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,64 +26,70 @@ As well as useful links to learn more */
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */
* {
box-sizing: border-box;
}

body {
background: var(--paper);
color: var(--ink);
font: var(--font);
margin: 0;
font-family: system-ui, sans-serif;
min-height: 100vh;
padding-bottom: 4rem;
}
a {
padding: var(--space);
border: var(--line);
max-width: fit-content;

header {
text-align: center;
padding: 2rem 1rem;
}

header h1 {
margin-bottom: 0.5rem;
}

main {
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
img,
svg {

.featured {
grid-column: span 2;
}

article {
border: 1px solid #000;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

article img {
width: 100%;
height: 200px;
object-fit: cover;
border: 1px solid #000;
}
/* ====== 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;

a {
display: inline-block;
padding: 0.5rem 1rem;
border: 1px solid #000;
text-decoration: none;
color: inherit;
width: fit-content;
}

footer {
position: fixed;
bottom: 0;
width: 100%;
border-top: 1px solid #000;
background: #fff;
text-align: center;
padding: 0.75rem;
}
/* ====== 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;
}
}

Loading