- This is the default, provided code and no changes have been made yet.
+ Building high quality web applications requires more than just writing
+ code. This guide explores three foundational pillars of professional
+ software development: mapping user experiences with wireframes, managing
+ code safely using Git branches, and creating clear project documentation
+ with README files.
-
-
Title
+
+
The purpose of a README file
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
- voluptates. Quisquam, voluptates.
+ README files are the first thing developers see when introduced to a
+ project. They are placed in the main directory of a project and helps
+ understand what the project does, how to install it, and how others
+ can use or contribute to it.
+ A wireframe is a low-fidelity visual guide that outlines a webpage's
+ structural framework, focusing on content layout and user interface
+ functionality before design begins.
+
+ Git branches are a powerful feature that allows developers to work on
+ different versions of a project simultaneously without affecting the
+ main codebase.
+
+ Read more
diff --git a/Wireframe/style.css b/Wireframe/style.css
index be835b6c7..eb2dc3b25 100644
--- a/Wireframe/style.css
+++ b/Wireframe/style.css
@@ -1,89 +1,118 @@
-/* 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);
+ --paper: #ffffff;
+ --ink: #111111;
--font: 100%/1.5 system-ui;
- --space: clamp(6px, 6px + 2vw, 15px);
- --line: 1px solid;
- --container: 1280px;
+ --space: clamp(10px, 6px + 2vw, 20px);
+ --line: 2px solid #111111;
+ --container: 1200px;
}
-/* ====== Base Elements ======
- General rules for basic HTML elements in any context */
+
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
+ margin: 0;
+ padding: 0;
+
+ padding-bottom: 120px;
}
+
a {
- padding: var(--space);
+ display: inline-block;
+ color: var(--ink);
+ text-decoration: none;
+ padding: 8px 16px;
border: var(--line);
max-width: fit-content;
+ font-weight: bold;
+ text-transform: uppercase;
+ font-size: 0.9rem;
+ margin-top: auto;
+ max-width: fit-content;
}
-img,
-svg {
- width: 100%;
+
+a:hover {
+ background: var(--ink);
+ color: var(--paper);
+}
+
+img {
+ height: 300px;
object-fit: cover;
+ border-bottom: var(--line);
+ margin-top: calc(var(--space) * -1);
+ margin-left: calc(var(--space) * -1);
+ width: calc(100% + var(--space) * 2);
}
-/* ====== Site Layout ======
-Setting the overall rules for page regions
-https://www.w3.org/WAI/tutorials/page-structure/regions/
-*/
+
+header {
+ text-align: center;
+ max-width: 800px;
+ margin: 40px auto;
+ padding: 0 var(--space);
+}
+
+header h1 {
+ text-transform: uppercase;
+ margin-bottom: 10px;
+}
+
main {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: calc(var(--space) * 2);
max-width: var(--container);
- margin: 0 auto calc(var(--space) * 4) auto;
+ margin: 0 auto;
+ padding: 0 var(--space);
}
+
+main > article:first-child {
+ grid-column: span 2;
+}
+
+main > article:first-child img {
+ height: 400px;
+}
+
+@media (max-width: 768px) {
+ main {
+ grid-template-columns: 1fr;
+ }
+ main > article:first-child {
+ grid-column: span 1;
+ }
+}
+
footer {
position: fixed;
bottom: 0;
+ left: 0;
+ width: 100%;
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
-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;
+ background-color: var(--paper);
+ border-top: var(--line);
+ padding: 15px 0;
+ z-index: 1000;
+ display: flex;
+ justify-content: center;
gap: var(--space);
- > *:first-child {
- grid-column: span 2;
- }
+ align-items: center;
+}
+
+footer p, footer address {
+ margin: 5px 0;
+ font-size: 0.9rem;
}
-/* ====== 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;
- }
+ padding: var(--space);
+ display: flex;
+ flex-direction: column;
+ gap: 15px;
+}
+
+article h2 {
+ margin: 0;
}