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
11 changes: 11 additions & 0 deletions Wireframe/branch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 62 additions & 28 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Wireframe</h1>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe Solution</title>
<link rel="stylesheet" href="style.css" />
</head>

<body>

<header>
<h1>Webpage Explanation for Key Concept Questions</h1>
<nav>
<ul>
<li><a href="#readme">What is the purpose of a README file?</a></li>
<li><a href="#wireframe">What is the purpose of a wireframe?</a></li>
<li><a href="#git-branch">What is a branch in Git?</a></li>
</ul>
</nav>
</header>

<main>
<article id="readme">
<img src="readme.svg" alt="Illustration of a README markdown document" />
<h2>What is the purpose of a README file?</h2>
<p>
This is the default, provided code and no changes have been made yet.
A README file is the foundational documentation for a software, dataset, or coding project. It serves as a
project's "front door," designed to help users quickly understand what the project does, how to install and use
it, and how to contribute.
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
</p>
<a href="">Read more</a>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
<a class="hyperlink"
href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes"
target="_blank" rel="noopener">Read more</a>
</article>

<article id="wireframe">
<img src="wireframe.svg" alt="Illustration of a website user interface wireframe" />
<h2>What is the purpose of a wireframe?</h2>
<p>Wireframes are the foundational blueprints of a website or app. Used early in the development process,
they help teams visualize structure, map user flows, and establish content hierarchy before committing to costly
colors, branding, or final UI design.
</p>
<a class="hyperlink" href="https://en.wikipedia.org/wiki/Website_wireframe" target="_blank" rel="noopener">Read
more</a>
</article>

<article id="git-branch">
<img src="branch.svg" alt="Diagram showing Git branches diverging from a main commit history" />
<h2>What is a branch in Git?</h2>
<p id="branch">A branch in Git is simply a lightweight movable pointer to one of these commits. The default branch
name
in Git is typically master or main.
</p>
</footer>
</body>
</html>
<a class="hyperlink" href="https://www.w3schools.com/GIT/git_branch.asp?remote=github" target="_blank"
rel="noopener">Read more</a>
</article>
</main>

<footer>
<p>By ChunyanWong | HOMEWORK FOR WIREFRAME SOLUTION</p>
</footer>

</body>

</html>
18 changes: 18 additions & 0 deletions Wireframe/readme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 47 additions & 10 deletions Wireframe/style.css
Comment thread
cywong-dev marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ As well as useful links to learn more */
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);
Expand All @@ -24,36 +26,42 @@ As well as useful links to learn more */
--line: 1px solid;
--container: 1280px;
}

/* ====== Base Elements ======
General rules for basic HTML elements in any context */
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
}
a {

.hyperlink {
padding: var(--space);
border: var(--line);
max-width: fit-content;
}

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;
text-align: center;
margin-bottom: calc(var(--space) * 2);
}

#branch {
margin-bottom: calc(var(--space) * 4);
}

/* ====== 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 @@ -62,28 +70,57 @@ https://developer.chrome.com/docs/devtools/css/grid
https://gridbyexample.com/learn/
*/
main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
> *:first-child {

>*: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.
*/
h1 {
text-align: center;
}

ul {
justify-content: center;
display: flex;
gap: var(--space)
}

article {
border: var(--line);
padding-bottom: var(--space);
text-align: left;
display: grid;
grid-template-columns: var(--space) 1fr var(--space);
> * {
margin-bottom: calc(var(--space) * 2);

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

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


h2 {
text-align: left;
vertical-align: top;
}

td {
padding: var(--space);
max-width: fit-content;
vertical-align: top;
}
}
18 changes: 18 additions & 0 deletions Wireframe/wireframe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading