Skip to content

Commit 20c8458

Browse files
committed
changed linkto readme wireframe
1 parent d5ef912 commit 20c8458

2 files changed

Lines changed: 53 additions & 29 deletions

File tree

Wireframe/index.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,45 @@ <h1>Wireframe Exercise</h1>
1515

1616
<main>
1717
<section class="articles">
18-
<!-- TOP LARGE ARTICLE -->
19-
<article class="article-large">
18+
<h2 class="visually-hidden">Articles</h2>
19+
20+
<!-- TOP ARTICLE -->
21+
<article>
2022
<img src="readme.png" alt="README file example" />
21-
<h2>What Is the Purpose of a README File?</h2>
23+
<h3>What Is the Purpose of a README File?</h3>
2224
<p>
2325
A README file explains what a project does, how to use it, and how
2426
others can contribute.
2527
</p>
26-
<a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes">
28+
<a
29+
href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes"
30+
>
2731
Read more
2832
</a>
2933
</article>
3034

31-
<!-- BOTTOM LEFT ARTICLE -->
35+
<!-- BOTTOM LEFT -->
3236
<article>
3337
<img src="wireframe.png" alt="Website wireframe example" />
34-
<h2>What Is the Purpose of a Wireframe?</h2>
38+
<h3>What Is the Purpose of a Wireframe?</h3>
3539
<p>
36-
A wireframe is a visual guide that represents the layout and
37-
structure of a webpage before design and development.
40+
A wireframe is a visual guide that represents the layout and structure
41+
of a webpage before design and development.
3842
</p>
39-
<a href="https://www.nngroup.com/articles/wireframes/">Read more</a>
43+
<a href="https://www.nngroup.com/articles/draw-wireframe-even-if-you-cant-draw/">Read more</a>
4044
</article>
4145

42-
<!-- BOTTOM RIGHT ARTICLE -->
46+
<!-- BOTTOM RIGHT -->
4347
<article>
4448
<img src="git_branch.png" alt="Git branching diagram" />
45-
<h2>What Is a Branch in Git?</h2>
49+
<h3>What Is a Branch in Git?</h3>
4650
<p>
47-
A Git branch lets developers work on features or fixes without
51+
A Git branch allows developers to work on features or fixes without
4852
affecting the main codebase.
4953
</p>
50-
<a href="https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell">
54+
<a
55+
href="https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell"
56+
>
5157
Read more
5258
</a>
5359
</article>

Wireframe/style.css

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/* ====== Design Palette ====== */
22
:root {
33
--paper: #ffffff;
4-
--background-color: #f5f5f5;
54
--ink: #000000;
65
--font: 100%/1.5 system-ui, sans-serif;
76
--space: clamp(8px, 2vw, 16px);
87
--line: 2px solid #000;
98
--container: 1000px;
109
}
1110

12-
/* ====== Base Elements ====== */
11+
/* ====== Base ====== */
1312
* {
1413
box-sizing: border-box;
1514
}
@@ -21,15 +20,6 @@ body {
2120
font: var(--font);
2221
}
2322

24-
a {
25-
padding: var(--space);
26-
border: var(--line);
27-
max-width: fit-content;
28-
text-decoration: none;
29-
color: inherit;
30-
display: inline-block;
31-
}
32-
3323
img {
3424
width: 100%;
3525
height: auto;
@@ -42,25 +32,26 @@ header {
4232
padding: calc(var(--space) * 2);
4333
}
4434

45-
/* ====== Site Layout ====== */
35+
/* ====== Main Layout ====== */
4636
main {
4737
max-width: var(--container);
4838
margin: 0 auto calc(var(--space) * 6) auto;
39+
padding: var(--space);
4940
}
5041

51-
/* ====== Articles Grid Layout ====== */
42+
/* ====== Articles Grid ====== */
5243
.articles {
5344
display: grid;
5445
grid-template-columns: 1fr 1fr;
5546
gap: calc(var(--space) * 2);
5647
}
5748

58-
/* first article spans full width */
59-
.articles > article:first-child {
49+
/* First article spans full width */
50+
.articles > article:first-of-type {
6051
grid-column: span 2;
6152
}
6253

63-
/* ====== Article Layout ====== */
54+
/* ====== Article Card ====== */
6455
article {
6556
border: var(--line);
6657
padding-bottom: var(--space);
@@ -77,6 +68,20 @@ article > img {
7768
border-bottom: var(--line);
7869
}
7970

71+
article h3 {
72+
margin-top: var(--space);
73+
}
74+
75+
a {
76+
display: inline-block;
77+
margin-top: var(--space);
78+
padding: var(--space);
79+
border: var(--line);
80+
text-decoration: none;
81+
color: inherit;
82+
max-width: fit-content;
83+
}
84+
8085
/* ====== Footer ====== */
8186
footer {
8287
position: fixed;
@@ -87,3 +92,16 @@ footer {
8792
background-color: #eee;
8893
border-top: var(--line);
8994
}
95+
96+
/* ====== Accessibility ====== */
97+
.visually-hidden {
98+
position: absolute;
99+
width: 1px;
100+
height: 1px;
101+
padding: 0;
102+
margin: -1px;
103+
overflow: hidden;
104+
clip: rect(0, 0, 0, 0);
105+
white-space: nowrap;
106+
border: 0;
107+
}

0 commit comments

Comments
 (0)