- This is the default, provided code and no changes have been made yet.
-
-
-
-
-
-
Title
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
- voluptates. Quisquam, voluptates.
-
- Read more
-
-
-
-
+
+
+
+ Web Development Basics
+
+
+
+
+
Understanding Web Development
+
Learn about the tools and concepts every developer needs to know
+
+
+
+
+
+
What is the purpose of a README file?
+
When you open someone's project for the first time,
+ the README is the first thing you read. It tells you
+ what the project does, why it exists, how to install it,
+ and how to use it. Without a README, other developers
+ would have no idea where to start. Writing a clear README
+ is one of the most important habits a developer can build.
Before writing a single line of code, designers and
+ developers draw a wireframe. It is a simple sketch that
+ shows where each part of the page will go — the header,
+ the images, the text, the buttons. Think of it like the
+ blueprint of a house. You plan before you build. A
+ wireframe saves time and avoids confusion later.
A branch in Git is like a safe copy of your project
+ where you can make changes freely. While you work on
+ your branch, the main code stays untouched. When your
+ work is finished and tested, you merge your branch back
+ into main. This is how developers work together without
+ breaking each other's code.
+ Read more
+
+
+
+
+
+
+
diff --git a/Wireframe/style.css b/Wireframe/style.css
index be835b6c7..7e01fa3f7 100644
--- a/Wireframe/style.css
+++ b/Wireframe/style.css
@@ -1,89 +1,104 @@
-/* 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 ====== */
+/* ====== Design Palette ====== */
:root {
--paper: oklch(7 0 0);
- --ink: color-mix(in oklab, var(--color) 5%, black);
+ --ink: color-mix(in oklch, var(--color) 5%, black);
--font: 100%/1.5 system-ui;
- --space: clamp(6px, 6px + 2vw, 15px);
+ --space: clamp(6px, 2px + 2vw, 15px);
--line: 1px solid;
- --container: 1280px;
+ --container: 1200px;
}
-/* ====== Base Elements ======
- General rules for basic HTML elements in any context */
+
+/* ====== Base Elements ====== */
body {
- background: var(--paper);
- color: var(--ink);
font: var(--font);
+ color: var(--ink);
+ background: #f9f9f9;
+ margin: 0;
+ padding: 0;
+ padding-bottom: 80px;
+ font-family: system-ui, sans-serif;
}
+
+h1, h2 {
+ margin: 0 0 8px 0;
+}
+
a {
- padding: var(--space);
- border: var(--line);
- max-width: fit-content;
+ display: inline-block;
+ padding: 8px 16px;
+ border: 1px solid #333;
+ color: #333;
+ text-decoration: none;
+ margin-top: 8px;
+}
+
+a:hover {
+ background: #333;
+ color: white;
}
+
+a:focus {
+ outline: 3px solid blue;
+}
+
img,
svg {
width: 100%;
+ height: 200px;
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;
-}
-footer {
- position: fixed;
- bottom: 0;
+
+/* ====== Header ====== */
+header {
text-align: center;
+ padding: 24px 16px;
+ border-bottom: 1px solid #ccc;
+ background: white;
}
-/* ====== 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/
-*/
+
+/* ====== Site Layout ====== */
main {
+ max-width: 900px;
+ margin: 24px auto;
+ padding: 0 16px;
display: grid;
grid-template-columns: 1fr 1fr;
- gap: var(--space);
- > *:first-child {
- grid-column: span 2;
- }
+ gap: 24px;
}
-/* ====== 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.
-*/
+
+/* First article spans full width */
+main > article:first-child {
+ grid-column: span 2;
+}
+
+/* ====== Article Layout ====== */
article {
- border: var(--line);
- padding-bottom: var(--space);
+ border: 1px solid #ccc;
+ padding: 16px;
+ background: white;
text-align: left;
- display: grid;
- grid-template-columns: var(--space) 1fr var(--space);
- > * {
- grid-column: 2/3;
- }
- > img {
- grid-column: span 3;
- }
+}
+
+article h2 {
+ font-size: 1.1rem;
+ margin: 12px 0 8px;
+}
+
+article p {
+ font-size: 0.95rem;
+ line-height: 1.6;
+ margin-bottom: 12px;
+}
+
+/* ====== Footer ====== */
+footer {
+ position: fixed;
+ bottom: 0;
+ width: 100%;
+ text-align: center;
+ padding: 16px;
+ background: #333;
+ color: white;
+ font-size: 0.9rem;
}