-
-
Notifications
You must be signed in to change notification settings - Fork 386
London | 26-ITP-Jan | Shuheda Begum | Sprint 1 | Wireframe #956
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
d46f7c2
bf9cdd6
1dfe9d3
1434834
14bc8aa
049a62f
1f3fe0a
f9bbfb5
3c85993
e6453b3
9fb20af
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 |
|---|---|---|
| @@ -1,33 +1,93 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Wireframe</title> | ||
| <link rel="stylesheet" href="style.css" /> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Wireframe</h1> | ||
| <p> | ||
| This is the default, provided code and no changes have been made yet. | ||
| </p> | ||
| </header> | ||
| <main> | ||
| <article> | ||
| <img src="placeholder.svg" alt="" /> | ||
| <h2>Title</h2> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Wireframe</title> | ||
| <link rel="stylesheet" href="style.css" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <!-- Page Header --> | ||
| <header class="page-header"> | ||
| <h1>Featured Articles</h1> | ||
| <p>Explore our most recent and highlighted articles in one place.</p> | ||
| </header> | ||
|
|
||
| <!-- Main Content --> | ||
| <main class="content"> | ||
| <!-- Featured Article --> | ||
| <article class="featured"> | ||
| <div class="image"> | ||
| <img src="ReadMeImages.png" | ||
| alt="Read me Article image" /> | ||
| </div> | ||
| <div class="text"> | ||
| <h2>What is the purpose of a README file?</h2> | ||
| <p> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, | ||
| voluptates. Quisquam, voluptates. | ||
| A README file serves as the main introduction to a project and helps users and developers quickly understand | ||
| what it is, what it does, and how to use it. It typically explains the project’s purpose and key features, | ||
| provides basic instructions for installation or usage, and offers important details such as dependencies or | ||
| setup requirements. A README may also include contribution guidelines, licensing information, and contact | ||
| details, making it easier for others to collaborate and maintain the project. Overall, the purpose of a README | ||
| file is to clearly communicate essential information so the project is easy to understand, use, and contribute | ||
| to. | ||
| </p> | ||
| <a href="">Read more</a> | ||
| <a href="https://datamanagement.hms.harvard.edu/collect-analyze/documentation-metadata/readme-files">Read | ||
| more</a> | ||
| </div> | ||
| </article> | ||
|
|
||
| <!-- Two-column Articles --> | ||
| <section class="grid"> | ||
| <article class="card"> | ||
| <div class="image"> | ||
| <img | ||
| src="WireframeImage.png" | ||
| alt="Wire Frame Article image" /> | ||
| </div> | ||
| <div class="text"> | ||
| <h3>What is the purpose of a wireframe?</h3> | ||
| <p> | ||
| The purpose of a wireframe is to provide a visual blueprint of a website or application before it is fully | ||
| designed or built. It outlines the layout, structure, and placement of elements such as headers, content | ||
| areas, images, and navigation without focusing on colors or detailed styling. Wireframes help designers, | ||
| developers, and stakeholders understand how content will be organized, identify usability issues early, and | ||
| plan functionality efficiently. By focusing on structure rather than appearance, wireframes save time, | ||
| reduce misunderstandings, and guide the development process. | ||
| </p> | ||
| <a href="https://www.geeksforgeeks.org/websites-apps/purpose-of-wireframing-in-web-design-process/">Read | ||
| more</a> | ||
| </div> | ||
| </article> | ||
| </main> | ||
| <footer> | ||
| <p> | ||
| This is the default, provided code and no changes have been made yet. | ||
| </p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
|
|
||
| <article class="card"> | ||
| <div class="image"> | ||
| <img | ||
| src="GitBranchesImage.png" | ||
| alt="Git Branches Article image" /> | ||
| </div> | ||
| <div class="text"> | ||
| <h3>What is a branch in Git?</h3> | ||
| <p> | ||
| A branch in Git is a separate line of development that allows you to work on changes without affecting the | ||
| main codebase. It lets you create and test new features, fix bugs, or experiment with ideas independently | ||
| from the main branch (often called main or master). Branches make it easy to manage multiple versions of a | ||
| project at the same time and safely merge completed work back into the main code when it is ready. | ||
| </p> | ||
| <a href="https://www.w3schools.com/git/git_branch.asp">Read more</a> | ||
| </div> | ||
| </article> | ||
| </section> | ||
| </main> | ||
|
|
||
| <!-- Footer --> | ||
| <footer class="footer"> | ||
| <p> | ||
| © 2026 Featured Articles. All rights reserved. | ||
| </p> | ||
| </footer> | ||
| </body> | ||
|
|
||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,74 +16,136 @@ As well as useful links to learn more */ | |
| 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 */ | ||
| /* Reset */ | ||
| * { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| font-family: Arial, sans-serif; | ||
| } | ||
|
|
||
| body { | ||
| background: var(--paper); | ||
| color: var(--ink); | ||
| font: var(--font); | ||
| background: #fff; | ||
| color: #000; | ||
| line-height: 1.5; | ||
| } | ||
| a { | ||
| padding: var(--space); | ||
| border: var(--line); | ||
| max-width: fit-content; | ||
|
|
||
| /* Header */ | ||
| .page-header { | ||
| text-align: center; | ||
| padding: 2rem 1rem; | ||
| } | ||
|
|
||
| .page-header h1 { | ||
| font-size: 2.5rem; | ||
| margin-bottom: 0.5rem; | ||
| } | ||
|
|
||
| .page-header p { | ||
| font-size: 1rem; | ||
| color: #555; | ||
| } | ||
| img, | ||
| svg { | ||
|
|
||
| /* Main content */ | ||
| .content { | ||
| max-width: 1100px; | ||
| margin: 0 auto; | ||
| padding: 1rem; | ||
| } | ||
|
|
||
| /* Featured article */ | ||
| .featured { | ||
| border: 2px solid #000; | ||
| margin-bottom: 2rem; | ||
| } | ||
|
|
||
| .featured .image { | ||
| height: 250px; | ||
| border-bottom: 2px solid #000; | ||
| } | ||
| .image img { | ||
| width: 100%; | ||
| object-fit: cover; | ||
| height: 100%; | ||
| object-fit: contain; | ||
| } | ||
|
|
||
| .featured .text { | ||
| padding: 1rem; | ||
| } | ||
|
|
||
| .featured h2 { | ||
| margin-bottom: 0.5rem; | ||
| } | ||
|
|
||
| /* Article grid */ | ||
| .grid { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| gap: 1.5rem; | ||
| } | ||
|
|
||
| /* Article cards */ | ||
| .card { | ||
| border: 2px solid #000; | ||
| } | ||
|
|
||
| .card .image { | ||
| height: 200px; /* Keep this or adjust as needed */ | ||
| width: 100%; /* Added to make the image fit the container */ | ||
| border-bottom: 2px solid #000; | ||
| } | ||
|
|
||
| .card .text { | ||
| padding: 1rem; | ||
| } | ||
|
|
||
| .card h3 { | ||
| margin-bottom: 0.5rem; | ||
| } | ||
|
|
||
| /* Buttons */ | ||
| button { | ||
| margin-top: 0.75rem; | ||
| padding: 0.4rem 0.8rem; | ||
| border: 2px solid #000; | ||
| background: #fff; | ||
| cursor: pointer; | ||
| } | ||
| /* ====== 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; | ||
|
|
||
| button:hover { | ||
| background: #000; | ||
| color: #fff; | ||
| } | ||
| footer { | ||
|
|
||
|
|
||
| /* Footer */ | ||
| .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. There are two footer classes defined. It's easier to maintain and avoid conflicts if only one footer class is defined. |
||
| position: fixed; | ||
| bottom: 0; | ||
| text-align: center; | ||
| width: 100%; | ||
| z-index: 1000; | ||
| } | ||
| /* ====== 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; | ||
| } | ||
|
|
||
| .footer { | ||
| margin-top: 1rem; | ||
| padding: 1rem; | ||
| text-align: center; | ||
| border-top: 1px solid white 000; | ||
|
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 review the border-top? I am not sure the value '000' is. |
||
| font-size: 0.9rem; | ||
| color: #161515; | ||
| } | ||
| /* ====== 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; | ||
|
|
||
| /* Responsive */ | ||
| @media (max-width: 768px) { | ||
| .grid { | ||
| grid-template-columns: 1fr; | ||
| } | ||
| > img { | ||
| grid-column: span 3; | ||
|
|
||
| .featured .image { | ||
| height: 220px; | ||
| } | ||
| } | ||
|
|
||
| a { | ||
| outline: 3px solid black !important; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
The
<img>filename is incorrect here. Can you review it? They are case-sensitive.