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
81 changes: 67 additions & 14 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wireframe</title>
<link rel="stylesheet" href="style.css" />
<meta
name="description"
content="A simple wireframe layout with a header, three articles, and a footer."
>
<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.
<h1 class="main-title">Wireframe</h1>
<p class="subtitle">
A wireframe is a simple visual guide that shows the structure of a webpage
before it is built. It helps plan layout and design.
</p>
</header>

<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<img
src="images/readme-links.webp"
alt="Illustration showing README documentation links"
>
<h2>About Readme File</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
README files introduce a project, explain how to install it, and help
others understand how to use or contribute to it.
</p>
<a href="">Read more</a>
<a
href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes"
target="_blank"
rel="noopener noreferrer"
>
Read more
</a>
</article>

<article>
<img
src="images/4c8605ad998d69b03a6eefb850cce5e23a0a96dc-2880x1440.avif"
alt="Yellow wireframe layout illustration for webpage planning"
>
<h2>About Wireframe</h2>
<p>
A wireframe is a simple visual guide that shows the structure of a
webpage before it is built. It helps plan layout and design.
</p>
<a
href="https://www.figma.com/resource-library/what-is-wireframing/"
target="_blank"
rel="noopener noreferrer"
>
Read more
</a>
</article>

<article>
<img
src="images/pr-retargeting-diagram1.webp"
alt="Diagram showing Git branches and pull requests"
>
<h2>About the branch</h2>
<p>
A branch in Git is a separate line of development that lets you work on
new features without changing the main codebase.
</p>
<a
href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches"
target="_blank"
rel="noopener noreferrer"
>
Read more
</a>
</article>
</main>

<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p><strong>Created by Khalid</strong></p>
</footer>
</body>
</html>
61 changes: 40 additions & 21 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ As well as useful links to learn more */
https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
:root {
-color:#000;
--paper: oklch(7 0 0);
--ink: color-mix(in oklab, var(--color) 5%, black);
--font: 100%/1.5 system-ui;
Expand All @@ -27,63 +28,81 @@ As well as useful links to learn more */
/* ====== Base Elements ======
General rules for basic HTML elements in any context */
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
display: flex;
flex-direction: column;
min-height: 100vh;
}
a {
padding: var(--space);
border: var(--line);
max-width: fit-content;
text-decoration: none;
color: inherit;
}
img,
svg {
width: 100%;
object-fit: cover;
}
header{
text-align: center;
color: rgb(18, 87, 114);
background-color: beige;
font-size: larger;
padding: 2rem;
}
/* ====== Site Layout ======
Setting the overall rules for page regions
https://www.w3.org/WAI/tutorials/page-structure/regions/
*/
main {
max-width: var(--container);
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
padding-bottom: 4rem;
}
main > *:first-child{
grid-column: span 2;
}
footer {
position: fixed;
bottom: 0;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background-color: beige;
text-align: center;
}
padding: 1rem;
z-index: 1000;
}
.main-title{
font-family: cursive;
font-style: italic
}
/* ====== 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);
> * {
/* ====== 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.
*/

grid-column: 2/3;
}
> img {
grid-column: span 3;
grid-column: span 3
}
}
Loading