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
Binary file added Wireframe/images/branch.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Wireframe/images/tech-setup.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Wireframe/images/visual.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 57 additions & 29 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,61 @@
<!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>
<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>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Development Essentials</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<header class="page-header">
<h1>Web Development Essentials</h1>
<p class="description">An informational overview of critical modern software engineering documentation, tools, and processes.</p>
</header>

<main class="content-container">

<article class="hero-article">
<div class="image-wrapper">
<img src="images/tech-setup.jpeg" alt="A clean workspace laptop simulating project planning documentation setup.">
</div>
<div class="article-details">
<h2>What is the purpose of a README file?</h2>
<p class="summary">A README file acts as the explicit architectural manual and introductory portal for a codebase. It equips incoming engineers with implementation steps, installation variables, testing assertions, and dependency maps required to evaluate the repository cleanly.</p>
<a href="https://programming.codeyourfuture.io/" class="read-more-btn">Read More</a>
</div>
</article>

<div class="articles-grid">

<article class="grid-article">
<div class="image-wrapper">
<img src="images/visual.jpeg" alt="A schematic visual wireframe outline grid sketch.">
</div>
<div class="article-details">
<h2>What is the purpose of a wireframe?</h2>
<p class="summary">A wireframe functions as a visual blueprint isolating structural placement schemas from aesthetic design choices. It validates content flow priority mappings across screens prior to writing code layers.</p>
<a href="https://www.productplan.com/glossary/wireframe/" class="read-more-btn">Read More</a>
</div>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
</footer>
</body>

<article class="grid-article">
<div class="image-wrapper">
<img src="images/branch.jpeg" alt="An abstract pathway network representing code branching versions.">
</div>
<div class="article-details">
<h2>What is a branch in Git?</h2>
<p class="summary">A Git branch establishes an isolated workspace path branching off the central source master stream. It enables developers to implement isolated changes smoothly without corrupting production environments.</p>
<a href="https://git-scm.com" class="read-more-btn">Read More</a>
</div>
</article>

</div>
</main>

<footer class="page-footer">
<p>&copy; 2023 Web Development Essentials. All rights reserved.</p>
</footer>

</body>
</html>
203 changes: 127 additions & 76 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
@@ -1,89 +1,140 @@
/* 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 Elements ======
General rules for basic HTML elements in any context */
* {
box-sizing: border-box;
}

body {
background: var(--paper);
color: var(--ink);
font: var(--font);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0;
padding: 0 0 80px 0;
background-color: #ffffff;
color: #000000;
min-height: 100vh;
display: flex;
flex-direction: column;
}

.page-header {
text-align: center;
padding: 40px 20px 20px 20px;
}

.page-header h1 {
font-size: 2.5rem;
margin: 0 0 10px 0;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.page-header .description {
font-style: italic;
font-size: 1.1rem;
margin: 0;
color: #4b5563;
}

.content-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
a {
padding: var(--space);
border: var(--line);
max-width: fit-content;

article {
border: 2px solid #000000;
background-color: #ffffff;
display: flex;
flex-direction: column;
margin-bottom: 30px;
}

.image-wrapper {
width: 100%;
border-bottom: 2px solid #000000;
overflow: hidden;
background-color: #f3f4f6;
aspect-ratio: 16 / 7;
}
img,
svg {

.image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* ====== 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;

.article-details {
padding: 20px;
}
footer {
position: fixed;
bottom: 0;
text-align: center;

.article-details h2 {
font-size: 1.4rem;
margin: 0 0 10px 0;
}

.article-details .summary {
font-size: 1rem;
line-height: 1.5;
margin: 0 0 20px 0;
color: #1f2937;
}

.read-more-btn {
display: inline-block;
border: 2px solid #000000;
padding: 8px 16px;
color: #000000;
text-decoration: none;
font-weight: bold;
text-transform: uppercase;
font-size: 0.85rem;
transition: background-color 0.2s;
}
/* ====== 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 {

.read-more-btn:hover {
background-color: #000000;
color: #ffffff;
}

.articles-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
> *:first-child {
grid-column: span 2;
}
gap: 30px;
margin-bottom: 30px;
}
/* ====== 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;

.articles-grid article {
margin-bottom: 0;
}

.articles-grid .image-wrapper {
aspect-ratio: 16 / 10;
}


@media (max-width: 768px) {
.articles-grid {
grid-template-columns: 1fr;
}
}

.page-footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
border-top: 2px solid #000000;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

.page-footer p {
margin: 0;
font-size: 0.9rem;
font-style: italic;
text-align: center;
padding: 0 20px;
}
Loading