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.png
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/readme.png
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/wireframe-topic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 72 additions & 27 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,78 @@
<!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</title>
<link rel="stylesheet" href="style.css" />
</head>

<body>
<header>
<h1>Web Development Concepts</h1>
<p>Understanding README files, Wireframes and Git Branches</p>
</header>

<main>
<article>
<img src="images/readme.png" alt="README documentation example" />


<h2>What is a README File?</h2>

<p>
This is the default, provided code and no changes have been made yet.
A README file explains a project. It usually contains information
about the purpose of the project, installation instructions,
usage examples and important notes for developers.
</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>

<a
href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes">
Read More
</a>

</article>

<article>
<img src="images/wireframe-topic.png" alt="Website wireframe layout sketch" />

<h2>What is a Wireframe?</h2>

<p>
This is the default, provided code and no changes have been made yet.
A wireframe is a visual plan of a webpage. It helps designers
and developers organise content and layout before building
the final website.
</p>
</footer>
</body>
</html>

<a href="https://www.interaction-design.org/literature/topics/wireframing">
Read More
</a>

</article>

<article>
<img src="images/branch.png" alt="Git branching workflow diagram" />

<h2>What is a Git Branch?</h2>

<p>
A Git branch is an independent line of development.
It allows developers to work on new features without
affecting the main version of a project.
</p>

<a href="https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell">
Read More
</a>

</article>
</main>

<footer>
<p>Contact information and site details</p>
</footer>

</body>

</html>
46 changes: 40 additions & 6 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,40 @@ 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 {
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;
margin: 0 auto 120px auto;
}

footer {
position: fixed;
bottom: 0;
text-align: center;
}

/* ====== 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 @@ -65,10 +69,12 @@ main {
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.
Expand All @@ -80,10 +86,38 @@ article {
text-align: left;
display: grid;
grid-template-columns: var(--space) 1fr var(--space);
> * {

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

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

header {
text-align: center;
margin: 2rem 0;
}

header h1 {
margin-bottom: 0.5rem;
}

footer {
width: 100%;
background-color: white;
border-top: 1px solid black;
padding: 10px;
}

article img {
width: 100%;
height: 250px;
object-fit: contain;
}

main {
padding-bottom: 180px;
}
Loading