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
2 changes: 1 addition & 1 deletion Form-Controls/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 Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 109 additions & 12 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,130 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<title>Essential Developer Tools</title>
<link rel="stylesheet" href="style.css" />
</head>
<!--  

    Using the provided wireframe and resources, write a new webpage explaining:

      1. What is the purpose of a README file?

      2. What is the purpose of a wireframe?

      3. What is a branch in Git?

Modify the HTML and CSS files to meet the acceptance criteria.
You must check this criteria yourself before you submit your work.

## Acceptance Criteria

- [ ] Semantic HTML tags are used to structure the webpage.
- [ ] The page scores 100 for Accessibility in the Lighthouse audit.
- [ ] The page header includes a title and description.
- [ ] The articles section has three unique articles, each including an image, title, summary, and a link.
- [ ] The page footer is fixed to the bottom of the viewport.
- [ ] The webpage is styled using a linked .css file.
- [ ] The webpage is properly committed and pushed to a branch on GitHub.

    -->
<body>
<header>
<h1>Wireframe</h1>
<h1>Essential Documentation & Design Tools for Developers</h1>
<p>
This is the default, provided code and no changes have been made yet.
Master 3 essential tools every developer needs for documentation and
design before writing production code.
</p>
</header>
<main>
<!--
Article 1: README File
-->

<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<figure>
<img src="Article-Images/README-Article-Image.png" alt="" />

<figcaption>
README file illustration for the Purpose of README file article
</figcaption>
</figure>

<h2>README.md: Preventing "What Does This Button Do?" Since 1970</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
Think of a README file as the front door to your project. It is a
simple text document that tells other humans what your code does, how
to install it, and why it exists. Without a README, your project is
just a mysterious pile of files; with one, it's a professional tool.
</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"
aria-label="Read more about the purpose of README files"
>Read more</a
>
</article>

<!--
Article 2: Wireframe
-->

<article>
<figure>
<img src="Article-Images/Wireframe-Article-Image.png" alt="" />

<figcaption>
Wireframe illustration for the Purpose of Wireframe article
</figcaption>
</figure>
<h2>
Wireframes: Because Changing a Drawing is Cheaper Than Changing Code
</h2>
<p>
A wireframe is a two-dimensional, low-fidelity outline of your
interface. It focuses on functionality and hierarchy rather than
colors and fonts. By "gray-boxing" your ideas first, you can catch
logic flaws and user-flow issues before a single pixel is polished or
a single &lt;div&gt; is styled.
</p>
<a
href="https://www.productplan.com/glossary/wireframe/"
aria-label="Read more about the purpose of a wireframe"
>Read more</a
>
</article>

<!--
Article 3: Git Branch
-->

<article>
<figure>
<img src="Article-Images/Git-Branches-Article-Image.png" alt="" />

<figcaption>
Git Branch illustration for the Git Branch article
</figcaption>
</figure>
<h2>Git Branches: How to Experiment Without Blowing up the App!</h2>
<p>
In Git, a branch is a lightweight, moveable pointer to a specific
commit. Think of it as a parallel dimension where you can build a new
feature or fix a bug without touching the "Main" timeline of your
project. If the experiment works, you merge it back; if it fails, you
can delete that timeline and pretend it never happened. It is the
ultimate "undo" button for collaborative development.
</p>
<a
href="https://programming.codeyourfuture.io/onboarding/sprints/1/prep/#branching"
aria-label="Read more to understand what Git Branches are"
>Read more</a
>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p>WEBPAGE BY ALEX OKOREFE</p>
</footer>
</body>
</html>
66 changes: 59 additions & 7 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ As well as useful links to learn more */
https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
:root {
--paper: oklch(7 0 0);
--paper: #f4f4f9;
--ink: color-mix(in oklab, var(--color) 5%, black);
--font: 100%/1.5 system-ui;
--accent: #0056b3;
--font: 100%/1.6 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--space: clamp(6px, 6px + 2vw, 15px);
--line: 1px solid;
--container: 1280px;
Expand All @@ -31,14 +32,24 @@ body {
color: var(--ink);
font: var(--font);
}
a {
padding: var(--space);
border: var(--line);
max-width: fit-content;

header {
text-align: center;
padding: 10px;
background-color: white; /* distinct header area */
margin-bottom: 20px;
border-bottom: 1px solid #eee;
}

header h1 {
margin-bottom: 0.5rem;
color: var(--accent); /* Brand color for title */
}

img,
svg {
width: 100%;
height: 400px;
object-fit: cover;
}
/* ====== Site Layout ======
Expand All @@ -47,12 +58,18 @@ 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 calc(var(--space) * 10) auto;
}
footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%; /* Ensures it spans the full width */
background-color: #222; /* Dark footer */
color: white; /* White text */
padding: 10px 0;
text-align: center;
z-index: 100; /* Ensures it sits on top of other content */
}
/* ====== Articles Grid Layout ====
Setting the rules for how articles are placed in the main element.
Expand All @@ -75,6 +92,7 @@ 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 {
background: white;
border: var(--line);
padding-bottom: var(--space);
text-align: left;
Expand All @@ -87,3 +105,37 @@ article {
grid-column: span 3;
}
}

/* Reset figure margins so the image touches the edges */
figure {
margin: 0;
grid-column: span 3; /* Ensure figure spans full width of card */
}

article > * {
grid-column: 2/3;
}
article > figure {
grid-column: 1 / -1; /* Spans full width */
}

a {
display: inline-block;
text-decoration: none;
background-color: var(--accent);
color: white;
padding: 10px 20px;
border-radius: 50px; /* Pill shape */
font-weight: bold;
transition:
transform 0.2s,
background-color 0.3s;
margin-top: auto;
padding: var(--space);
border: var(--line);
max-width: fit-content;
}

a:hover {
background-color: #003d82; /* Darker blue on hover */
}