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
67 changes: 40 additions & 27 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
<!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>
<p>
This is the default, provided code and no changes have been made yet.
</p>
</header>
<main>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="An educational page explaining README files, wireframes, and Git branches with semantic HTML structure.">
<title>Git & Web Development Basics</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Git & Web Development: <br> The Basics</h1>
<p>Here you can learn about the basics of README files, wireframes, and branches in Git, as well as access to further in-depth information. </p>
</header>

<main>
<section id="articles">
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
<h2>Understanding README Files</h2>
<p>A README file is a crucial part of any project, providing an overview, setup instructions, and important documentation for developers and users.
It tells others why your project is useful and how it can be used within your expectations and guidelines.</p>
<a href="https://www.example.com/readme-guide" role="button" target="_blank" rel="noopener">Learn more about README files</a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for your tags, there are ways to ensure they do not link to a page that does not exist., if you do not have a real webpage to link to you should look up preventing default behavior in anchor tags. this is a good place to start: https://stackoverflow.com/questions/265478/preventdefault-on-an-a-tag

this is beyond the scope of this assignment as you have not been asked to but it is something to note for future assignments. instead of navigating to a dummy link like www.example.com/*, you can use one of the suggestions in the link above.

</article>

<article>
<h2>The Purpose of Wireframes</h2>
<p>Wireframes are visual guides that outline the structure and layout of a webpage before coding begins, ensuring design clarity and usability.
It focuses on user flow and functionality rather than aesthetics.
</p>
<a href="">Read more</a>
<a href="https://www.example.com/wireframe-guide" role="button" target="_blank" rel="noopener">Learn more about Wireframes</a>
</article>

<article>
<h2>Branches in Git</h2>
<p>Branches allow developers to work on features or fixes independently from the main project, making version control safer and more organized.
Each repository has one default branch with multiple other branches which can be merged using a pull request.</p>
<a href="https://www.example.com/git-branches" role="button" target="_blank" rel="noopener">Learn more about Git branches</a>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
</footer>
</body>
</section>
</main>

<footer>
<p>&copy; 2025 Git & Web Dev Learning.</p>
</footer>
</body>
</html>
166 changes: 92 additions & 74 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
@@ -1,89 +1,107 @@
/* Here are some starter styles
You can edit these or replace them entirely
It's showing you a common way to organise CSS
And includes solutions to common problems
As well as useful links to learn more */

/* ====== Design Palette ======
This is our "design palette".
It sets out the colours, fonts, styles etc to be used in this design
At work, a designer will give these to you based on the corporate brand, but while you are learning
You can design it yourself if you like
Inspect the starter design with Devtools
Click on the colour swatches to see what is happening
I've put some useful CSS you won't have learned yet
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 ====== */
: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;
/* Base Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */

body {
background: var(--paper);
color: var(--ink);
font: var(--font);
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #070707;
color: #f2f2f2; /* Changed from #111111 for higher contrast */
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Header */
header {
background-color: #04525e; /* High contrast */
color: #ffffff;
padding: 30px;
text-align: center;
}
a {
padding: var(--space);
border: var(--line);
max-width: fit-content;

header h1 {
font-size: 2rem;
margin-bottom: 10px;
}
img,
svg {
width: 100%;
object-fit: cover;

header p {
font-size: 1rem;
}
/* ====== Site Layout ======
Setting the overall rules for page regions
https://www.w3.org/WAI/tutorials/page-structure/regions/
*/

/* Main Content */
main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
flex: 1;
padding: 20px;
text-align: center;
}

#articles {
display: flex;
flex-direction: column;
gap: 20px;
}

/* Articles */
article {
border: 2px solid #4CAF50;
border-radius: 8px;
padding: 15px;
background-color: #f9f9f9;
color: #111111; /* Dark text on light background for contrast */
}

article h2 {
font-size: 1.5rem;
margin-bottom: 10px;
}

article p {
font-size: 1rem;
margin-bottom: 10px;
}

/* Accessible Button Links */
article a {
display: inline-block;
background-color: #17608e;
color: #ffffff; /* White on blue = high contrast */
padding: 10px 15px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
}

article a:hover,
article a:focus {
background-color: #0d3c5a;
outline: 3px solid #fab940;
outline-offset: 2px;
}

/* Footer */
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: #17608e;
color: #ffffff;
text-align: center;
padding: 5px 0;
}
/* ====== 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;

/* Responsive Layout */
@media (min-width: 768px) {
#articles {
flex-direction: row;
justify-content: space-between;
}
> img {
grid-column: span 3;

article {
flex: 1;
margin: 0 10px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good css and good solution. well done!

}
}