diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..91cb30348 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,68 @@ - + Wireframe + + +
-

Wireframe

-

- This is the default, provided code and no changes have been made yet. -

+

STARTING SIMPLE

+

Breaking down the development process

- -

Title

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. -

- Read more + placeholder +
+

README.md

+

+ The purpose of a README is to explain what the project is about. It + provides a summary of the project, the technology stack used, and + instructions for any required dependencies. +

+ Read more +
+
+
+ placeholder +
+

Wireframe

+

+ A wireframe is like a draft for your project. It shows where things + will go and how they work before you add colors, images, or final + design details to guide the design process. +

+ Read more +
+
+
+ placeholder +
+

A Branch in Git

+

+ A Git branch is a separate line of development within a repository. + It lets you work on new features or fixes independently without + affecting the main code until you are ready to merge. +

+ Read more +
diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..d54fab03d 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -1,89 +1,85 @@ -/* 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 */ +* { + padding: 0; + margin: 0; + box-sizing: border-box; +} body { - background: var(--paper); - color: var(--ink); - font: var(--font); + background: rgb(245, 245, 245); + color: rgb(9, 9, 9); + font-family: "Roboto", Helvetica, sans-serif; } -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; +header { + text-align: center; } -img, -svg { - width: 100%; - object-fit: cover; +h1, +h2 { + margin: 1rem 0; } -/* ====== 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; +h1 { + font-size: 3rem; + font-weight: 900; } -footer { - position: fixed; - bottom: 0; - text-align: center; +h2 { + font-size: 1.7rem; + font-weight: 600; +} +p { + line-height: 1.2; +} +a { + display: inline-block; + width: 140px; + text-decoration: none; + color: rgb(9, 9, 9); + border: 1px solid rgb(7, 7, 7); + padding: 10px 15px; + margin-top: 1rem; + margin-bottom: 1rem; +} +a:hover { + text-decoration: underline; } -/* ====== 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; - } + grid-template-columns: repeat(2, 1fr); + column-gap: 1rem; + row-gap: 1.5rem; + max-width: 1280px; + margin: 0 auto 4rem; + padding: 0 1rem; + height: auto; +} +main > article:first-child { + grid-column: 1/-1; } -/* ====== 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; + display: flex; + flex-direction: column; + background: whitesmoke; + max-height: 520px; + border: 1px solid rgb(7, 7, 7); +} +article img { + display: block; + object-fit: cover; + width: 100%; + max-height: 300px; + border: 1px solid rgb(7, 7, 7); +} +article .content { + display: flex; + flex-direction: column; + padding: 1rem; +} +footer { + text-align: center; + padding: 1rem; + background-color: rgb(238, 236, 233); + position: relative; +} + +@media (max-width: 768px) { + main { + grid-template-columns: 1fr; } }