-
-
Notifications
You must be signed in to change notification settings - Fork 374
Birmingham | ITP-Jan | Ahmad Roman Sanaye | Sprint 1 | Wireframe #940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,26 +8,47 @@ | |
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Wireframe</h1> | ||
| <h1>Wireframe Coursework</h1> | ||
| <p> | ||
| This is the default, provided code and no changes have been made yet. | ||
| Explaining README files, wireframes, and Git branches using a simple | ||
| webpage layout. | ||
| </p> | ||
| </header> | ||
|
|
||
| <main> | ||
| <article> | ||
| <img src="placeholder.svg" alt="" /> | ||
| <h2>Title</h2> | ||
| <img src="placeholder.svg" alt="README file illustration" /> | ||
| <h2>README File</h2> | ||
| <p> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, | ||
| voluptates. Quisquam, voluptates. | ||
| A README file explains what a project is about, how to install it, and | ||
| how to use it. It is usually the first file users read. | ||
| </p> | ||
| <a href="">Read more</a> | ||
| <a href="#">Read more</a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| </article> | ||
|
|
||
| <article> | ||
| <img src="placeholder.svg" alt="Wireframe layout example" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please change the placeholder image for an image related to the article? |
||
| <h2>Wireframe</h2> | ||
| <p> | ||
| A wireframe shows the basic structure of a webpage before design and | ||
| development begin. It focuses on layout and content placement. | ||
| </p> | ||
| <a href="#">Read more</a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| </article> | ||
|
|
||
| <article> | ||
| <img src="placeholder.svg" alt="Git branch diagram" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please change the placeholder image for an image related to the article? |
||
| <h2>Git Branch</h2> | ||
| <p> | ||
| A Git branch allows developers to work on new features separately | ||
| without affecting the main project code. | ||
| </p> | ||
| <a href="#">Read more</a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| </article> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <p> | ||
| This is the default, provided code and no changes have been made yet. | ||
| </p> | ||
| <p>CYF Wireframe Project</p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 oklab, black 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 */ | ||
|
|
||
| /* ====== Base Elements ====== */ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| width: 90%; | ||
| margin: 10px auto; | ||
| background: var(--paper); | ||
| color: var(--ink); | ||
| font: var(--font); | ||
| padding-bottom: 40px; | ||
| } | ||
|
|
||
| a { | ||
| display: inline-block; | ||
| padding: var(--space); | ||
| border: var(--line); | ||
| max-width: fit-content; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| 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; | ||
| } | ||
| footer { | ||
| position: fixed; | ||
| bottom: 0; | ||
|
|
||
| header { | ||
| text-align: center; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
| header h1 { | ||
| margin-bottom: var(--space); | ||
| } | ||
| /* ====== 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/ | ||
| */ | ||
|
|
||
| header p { | ||
| margin-bottom: calc(var(--space) * 2); | ||
| } | ||
|
|
||
| main { | ||
| max-width: var(--container); | ||
| margin: 0 auto calc(var(--space) * 4) auto; | ||
| padding: 10px; | ||
| display: grid; | ||
| grid-template-columns: 1fr 1fr; | ||
| gap: var(--space); | ||
| > *: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. | ||
| Keeping things orderly and separate is the key to good, simple CSS. | ||
| */ | ||
| } | ||
|
|
||
| main > *:first-child { | ||
| grid-column: span 2; | ||
| } | ||
|
|
||
| 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; | ||
| } | ||
| } | ||
|
|
||
| article > * { | ||
| grid-column: 2 / 3; | ||
| } | ||
|
|
||
| article > img { | ||
| grid-column: span 3; | ||
| margin-bottom: var(--space); | ||
| } | ||
|
|
||
| article a { | ||
| margin-top: var(--space); | ||
| } | ||
|
|
||
| footer { | ||
| position: fixed; | ||
| bottom: 0; | ||
| left: 0; | ||
| width: 100%; | ||
| height: 30px; | ||
| border-top: var(--line); | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| background: var(--paper); | ||
| } | ||
|
|
||
| footer p { | ||
| margin: 0; | ||
| text-align: center; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please change the placeholder image for an image related to the article?