Skip to content

Commit d91b2ab

Browse files
Add Css layout
1 parent fb05240 commit d91b2ab

2 files changed

Lines changed: 34 additions & 9 deletions

File tree

Wireframe/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>Essential Developer Concepts</h1>
1919
<article>
2020

2121
<img src="https://cdn.bulldogjob.com/system/photos/files/000/003/440/original/readme.webp"
22-
alt="README_file Image" />
22+
alt="Example of a project README file" />
2323

2424
<h2> What is a README File?</h2>
2525
<p>
@@ -29,7 +29,7 @@ <h2> What is a README File?</h2>
2929
</p>
3030

3131
<a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes"
32-
target="_blank">Read
32+
target="_blank" rel="noopener noreferrer">Read
3333
more</a>
3434

3535
</article>
@@ -40,7 +40,7 @@ <h2> What is a README File?</h2>
4040

4141
<img
4242
src="https://cdn-images.visual-paradigm.com/handbooks/agile-handbook/wireframe/01-youtube-wireframe-example.png"
43-
alt="Wireframe_image">
43+
alt="Wireframe layout example">
4444

4545
<h2>What is a Wireframe?</h2>
4646
<p>
@@ -49,21 +49,21 @@ <h2>What is a Wireframe?</h2>
4949
It helps designers and developers organize content and user experience.
5050
</p>
5151

52-
<a href="https://www.productplan.com/glossary/wireframe/" target="_blank">Read more</a>
52+
<a href="https://www.productplan.com/glossary/wireframe/" target="_blank" rel="noopener noreferrer">Read more</a>
5353

5454
</article>
5555

5656
<article>
5757
<img src="https://miro.medium.com/v2/resize:fit:1200/format:webp/1*e6EkEBIDZcOmlwPqCnsJKg.jpeg"
58-
alt="Git_Branch Image">
58+
alt="Image showing Git branches">
5959

6060
<h2>What is a Git Branch?</h2>
6161

6262
<p>A Git branch allows developers to work on new features and fixes without affecting the main version of a
6363
project. It
6464
helps teams collaborate safely and manage changes more effectively.</p>
6565

66-
<a href="https://www.atlassian.com/git/tutorials/using-branches" target="_blank">Read more</a>
66+
<a href="https://www.atlassian.com/git/tutorials/using-branches" target="_blank" rel="noopener noreferrer">Read more</a>
6767

6868
</article>
6969

Wireframe/style.css

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,27 @@ As well as useful links to learn more */
2424
--line: 1px solid;
2525
--container: 1280px;
2626
}
27+
2728
/* ====== Base Elements ======
2829
General rules for basic HTML elements in any context */
2930
body {
3031
background: var(--paper);
3132
color: var(--ink);
3233
font: var(--font);
3334
}
35+
3436
a {
3537
padding: var(--space);
3638
border: var(--line);
3739
max-width: fit-content;
3840
}
41+
3942
img,
4043
svg {
4144
width: 100%;
4245
object-fit: cover;
4346
}
47+
4448
/* ====== Site Layout ======
4549
Setting the overall rules for page regions
4650
https://www.w3.org/WAI/tutorials/page-structure/regions/
@@ -49,11 +53,14 @@ main {
4953
max-width: var(--container);
5054
margin: 0 auto calc(var(--space) * 4) auto;
5155
}
56+
5257
footer {
5358
position: fixed;
5459
bottom: 0;
5560
text-align: center;
61+
width: 100%;
5662
}
63+
5764
/* ====== Articles Grid Layout ====
5865
Setting the rules for how articles are placed in the main element.
5966
Inspect this in Devtools and click the "grid" button in the Elements view
@@ -65,10 +72,12 @@ main {
6572
display: grid;
6673
grid-template-columns: 1fr 1fr;
6774
gap: var(--space);
68-
> *:first-child {
75+
76+
>*:first-child {
6977
grid-column: span 2;
7078
}
7179
}
80+
7281
/* ====== Article Layout ======
7382
Setting the rules for how elements are placed in the article.
7483
Now laying out just the INSIDE of the repeated card/article design.
@@ -80,10 +89,26 @@ article {
8089
text-align: left;
8190
display: grid;
8291
grid-template-columns: var(--space) 1fr var(--space);
83-
> * {
92+
93+
>* {
8494
grid-column: 2/3;
8595
}
86-
> img {
96+
97+
>img {
8798
grid-column: span 3;
99+
width: 100%;
100+
height: 250px;
101+
object-fit: cover;
88102
}
89103
}
104+
105+
section {
106+
display: grid;
107+
grid-template-columns: 1fr 1fr;
108+
gap: 10px;
109+
}
110+
111+
header {
112+
text-align: center;
113+
padding: 20px;
114+
}

0 commit comments

Comments
 (0)