-
-
Notifications
You must be signed in to change notification settings - Fork 356
London | 25-ITP-September | Carlos Abreu | Sprint 1 | Wireframe #906
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
Changes from 10 commits
76d5ce9
ac5bf87
bd42d00
671a72c
c5489fb
d5c2285
63b9936
c7e007d
2a8fa3e
2eccf39
8e94a7e
0f1687c
8bdec68
5798088
74ee279
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,65 @@ | |
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Wireframe</h1> | ||
| <p> | ||
| This is the default, provided code and no changes have been made yet. | ||
| </p> | ||
| <h1>Fork of CodeYourFuture</h1> | ||
| <p>Wireframe Project</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> | ||
| <div class="top"> | ||
| <section class="article"> | ||
| <article> | ||
| <img src="readme-01.png" alt="Readme illustration" /> | ||
| <h2>What is the purpose of a README file?</h2> | ||
| <summary>Readme in a few words</summary> | ||
| <p> | ||
| The readme file is used to explain what are the files uploaded and how it can be installed or used. It allows the owner to upload and add images and videos to help the reader navigate through the project. A well-written readme file is helpful for a new user or developer to get a good understanding about the project, its structure and attract more participants to add new features. | ||
| </p> | ||
| <a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes" target="_blank">Read more</a> | ||
| </article> | ||
| </section> | ||
| </div> | ||
|
|
||
| <!-- ✅ Flex container for side-by-side layout --> | ||
| <div class="content-flex"> | ||
| <div class="grid"> | ||
| <section class="article"> | ||
| <article> | ||
| <img src="wireframe.png" alt="Wireframe illustration"> | ||
| <h2>What is the purpose of a wireframe?</h2> | ||
| <summary>Wireframe explanation in nutshell</summary> | ||
| <p> | ||
| A wireframe is a simple blueprint of a webpage or app. It focuses on structure and layout, showing where elements like images, text, and buttons will go before visual design begins. | ||
| <br><br> | ||
| The purpose of a wireframe in web design is to serve as a skeletal blueprint, mapping out a website's layout, structure, and core functionality before any visual design is applied, allowing designers to plan the user experience, test and refine the site architecture, and communicate the project's direction to stakeholders efficiently and cost-effectively. | ||
| </p> | ||
| <a href="https://www.digitalsilk.com/digital-trends/what-is-a-wireframe/" target="_blank">Read more</a> | ||
| </article> | ||
| </section> | ||
| </div> | ||
|
|
||
| <div class="branch"> | ||
| <section class="article"> | ||
| <article> | ||
| <img src="git-branch.png" alt="Git branch illustration"> | ||
| <h2>What is a branch in Git?</h2> | ||
| <summary>Git branch and what it means</summary> | ||
| <p> | ||
| A branch in Git allows developers to work on new features or fixes separately from the main codebase. This makes collaboration easier and ensures the main project stays stable while changes are tested. | ||
| </br> | ||
| In other words, it could be say a Git branch is an independent line of development that allows developers to work on new features, fixes, or experiments separately from the main codebase without affecting the stable version. | ||
| </br> | ||
| Branches enable collaboration, experimentation, and version control by letting multiple developers work simultaneously. | ||
| </p> | ||
|
||
| <a href="https://www.w3schools.com/git/git_branch.asp" target="_blank">Read more</a> | ||
| </article> | ||
| </section> | ||
| </div> | ||
| </div> | ||
| </main> | ||
|
|
||
| <footer> | ||
|
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 footer requirements state that it should be 'fixed'. This means that no matter where you scrolls on the page (up, down), the footer will always be visible. Can you make this change? |
||
| <p> | ||
| This is the default, provided code and no changes have been made yet. | ||
| </p> | ||
| <p>This is the footer of the wireframe project.</p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,89 +1,182 @@ | ||
| /* 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 */ | ||
| /* ---------- Global Styles ---------- */ | ||
| body { | ||
| background: var(--paper); | ||
| color: var(--ink); | ||
| font: var(--font); | ||
| font-family: Arial, sans-serif; | ||
| margin: 0; | ||
| padding: 0; | ||
| line-height: 1.6; | ||
| background-color: #fdfdfd; | ||
| display: flex; | ||
| flex-direction: column; | ||
| min-height: 100vh; | ||
| } | ||
| a { | ||
| padding: var(--space); | ||
| border: var(--line); | ||
| max-width: fit-content; | ||
|
|
||
| /* ---------- Header and Footer ---------- */ | ||
| header, | ||
| footer { | ||
| text-align: center; | ||
| padding: 2rem; | ||
| background-color: #f4f4f4; | ||
| margin-top: 2rem; | ||
| } | ||
|
|
||
| main { | ||
| flex: 1; | ||
| padding: 1rem; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; /* centers all containers horizontally */ | ||
| padding-bottom: 80px; /* extra space so content isn’t hidden */ | ||
| } | ||
|
|
||
| /* ---------- Shared Article Style ---------- */ | ||
| .article { | ||
| border: 1px solid #ddd; | ||
| padding: 1rem; | ||
| background: #fff; | ||
| height: 100%; | ||
| box-sizing: border-box; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: space-between; | ||
| } | ||
|
|
||
| .article h2 { | ||
| margin-top: 0.5rem; | ||
| } | ||
|
|
||
| .article a { | ||
| display: inline-block; | ||
| padding: 0.5rem 1rem; | ||
| background: #333; | ||
| color: #fff; | ||
| text-decoration: none; | ||
| align-self: flex-start; | ||
| } | ||
| img, | ||
| svg { | ||
|
|
||
| .article a:hover { | ||
| background: #555; | ||
| } | ||
|
|
||
| /* ---------- Consistent Image Size ---------- */ | ||
| .article img { | ||
| display: block; | ||
| width: 100%; | ||
| max-width: 350px; | ||
| height: 220px; | ||
| object-fit: cover; | ||
| margin: 0 auto 1rem auto; | ||
| border-radius: 6px; | ||
| } | ||
| /* ====== 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; | ||
|
|
||
| /* ---------- Equal Width Containers ---------- */ | ||
| .top | ||
| { | ||
| width: 100%; | ||
| max-width: 1100px; /* ✅ fixed same total width */ | ||
| background: #fafafa; | ||
| border: 1px solid #ddd; | ||
| border-radius: 8px; | ||
| padding: 20px; | ||
| box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); | ||
| box-sizing: border-box; | ||
| } | ||
| footer { | ||
| position: fixed; | ||
| bottom: 0; | ||
| text-align: center; | ||
|
|
||
| .content-flex { | ||
| width: 100%; | ||
| max-width: 1100px; /* ✅ fixed same total width */ | ||
| border: none; /* 1px solid #ddd;*/ | ||
| border-radius: 8px; | ||
| /* padding: 20px; */ | ||
| /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/ | ||
| box-sizing: border-box; | ||
|
|
||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: stretch; | ||
| gap: 20px; | ||
| flex-wrap: wrap; | ||
| } | ||
| /* ====== 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; | ||
| } | ||
|
|
||
|
|
||
| /* ---------- Layout for Top ---------- */ | ||
| .top { | ||
| margin-bottom: 30px; | ||
| } | ||
|
|
||
| /* ---------- Layout for Grid and Branch ---------- */ | ||
| /* .content-flex { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: stretch; | ||
| gap: 20px; | ||
| flex-wrap: wrap; | ||
| } | ||
| /* ====== 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; | ||
|
|
||
| /* ---------- Inner Containers ---------- */ | ||
| .grid, | ||
| .branch { | ||
| flex: 1; | ||
| background: #fafafa; | ||
| border: 1px solid #ddd; | ||
| border-radius: 8px; | ||
| padding: 15px; | ||
| box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); | ||
| box-sizing: border-box; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: space-between; | ||
| } | ||
|
|
||
| /* ---------- Equal Bottom Spacing Before Footer ---------- */ | ||
| main > .content-flex { | ||
| margin-bottom: 50px; | ||
| } | ||
|
|
||
| /* ---------- Responsive Adjustment ---------- */ | ||
| @media (max-width: 1024px) { | ||
| .content-flex { | ||
| flex-direction: column; | ||
| align-items: center; | ||
| max-width: 90%; | ||
| } | ||
| > img { | ||
| grid-column: span 3; | ||
|
|
||
| .top { | ||
| max-width: 90%; | ||
| } | ||
|
|
||
| .grid, | ||
| .branch { | ||
| width: 100%; | ||
| height: auto; | ||
| } | ||
|
|
||
| .article img { | ||
| max-width: 100%; | ||
| height: auto; | ||
| } | ||
| } | ||
|
|
||
| /* ---------- Link Styling ---------- */ | ||
| a { | ||
| color: #0066cc; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| a:hover { | ||
| text-decoration: underline; | ||
| } | ||
|
|
||
| footer { | ||
| position: fixed; /* Keeps the footer fixed in place */ | ||
| bottom: 0; /* Sticks it to the bottom of the viewport */ | ||
| left: 0; /* Aligns it to the left edge */ | ||
| width: 100%; /* Stretches across the full width */ | ||
| text-align: center; | ||
| padding: 1rem 2rem; | ||
| background-color: #f4f4f4; | ||
| border-top: 1px solid #ddd; | ||
| box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); | ||
| z-index: 1000; /* Ensures it stays above other elements */ | ||
| } | ||
|
|
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.
Lines 22-24 can be better formatted as:
To understand why, you can ask ChatGPT these questions:
VSCode's "Format Document" feature can help us format our code for better readability and consistency, including breaking a long line of text into shorter lines of text.
To use the feature, right-click inside the code editor and select the option.
Please note that if there are syntax errors in the code, the "Prettier" extension may not format HTML code properly.