Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,41 @@
<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>
<p>Basic layout blueprint</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>
<img src="https://miro.medium.com/v2/resize:fit:4800/format:webp/1*f7P5NKuCph6FDclPBUQX3Q.png"
alt="README file illustration" width="600" height="300" />
<h2>README File</h2>
<p>A README file is a document that explains what a project is, how it works, and how to set it up or use it. On platforms like GitHub, it is usually the first thing people read to understand the project.</p>
<a href="#">Read more</a>
</article>

<article>
<img src="https://zeve.au/sitecentre/uploads/2022/10/mobile-tablet-desktop-wireframing.jpg"
alt="Wireframe layout sketch" width="600" height="300" />
<h2>Wireframe</h2>
<p>A wireframe is a simple visual layout of a website or app that shows where elements like buttons, text, and images will be placed without using colors or detailed design. It helps plan the structure and user experience before development begins.</p>
<a href="#">Read more</a>
</article>

<article>
<img src="https://miro.medium.com/v2/1*K9scAx1Ezd-KJFabaYseCw.jpeg"
alt="Git branches diagram" width="600" height="300" />
<h2>Git Branch</h2>
<p>LGit branches are separate versions of a project that allow developers to work on new features or fixes without changing the main code. In Git, changes can later be merged back into the main branch once they are ready.</p>
<a href="#">Read more</a>
</article>
</main>

<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p>Made by Alina Sofragiu</p>
</footer>
</body>
</html>
77 changes: 44 additions & 33 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,66 +24,77 @@ As well as useful links to learn more */
--line: 1px solid;
--container: 1280px;
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */

body {
background: var(--paper);
color: var(--ink);
font: var(--font);
margin: 0;
}

a {
padding: var(--space);
border: var(--line);
max-width: fit-content;
display: inline-block;
margin-top: var(--space);
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/
*/

header {
text-align: center;
padding: var(--space);
border-bottom: var(--line);
}

main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
margin: 0 auto 100px auto;
padding: var(--space);
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
}

main > *:first-child {
grid-column: span 2;
}

footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background: white;
border-top: var(--line);
padding: 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/
*/
main {
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.
*/

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;
}
background: #f9f9f9;
}

article > * {
grid-column: 2/3;
}

article > img {
grid-column: span 3;
}

article h2,
article p,
article a {
margin: var(--space);
}
Loading