Skip to content

Commit 8670992

Browse files
committed
Update homepage
1 parent 13a0657 commit 8670992

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

src/front/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
</a>
2424
</li>
2525
<li>
26-
<a href="https://thanks.typicode.com">
27-
<i class="far fa-laugh"></i>Supporters
26+
<a href="https://my-json-server.typicode.com">
27+
<i class="fas fa-burn"></i>My JSON Server
2828
</a>
2929
</li>
3030
<li>
31-
<a href="https://my-json-server.typicode.com">
32-
<i class="fas fa-burn"></i>My JSON Server
31+
<a href="https://thanks.typicode.com">
32+
<i class="far fa-laugh"></i>Supporters
3333
</a>
3434
</li>
3535
</ul>
@@ -48,8 +48,9 @@ <h1>Congrats!</h1>
4848
<div id="resources"></div>
4949

5050
<p>
51-
To access and modify resources, you can use any HTTP method
52-
<br />
51+
To access and modify resources, you can use any HTTP method:
52+
</p>
53+
<p>
5354
<code>GET</code>
5455
<code>POST</code>
5556
<code>PUT</code>
@@ -63,7 +64,7 @@ <h1>Congrats!</h1>
6364
<h1>Documentation</h1>
6465
<p>
6566
<a href="https://github.com/typicode/json-server">
66-
<i class="fab fa-github-alt"></i>README
67+
README
6768
</a>
6869
</p>
6970
</div>

src/front/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function CustomRoutesBlock({ customRoutes }) {
5959
rule =>
6060
`<tr>
6161
<td>${rule}</td>
62-
<td> ${customRoutes[rule]}</td>
62+
<td><code>⇢</code> ${customRoutes[rule]}</td>
6363
</tr>`
6464
)
6565
.join('')}

src/front/style.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body {
66
flex-direction: column;
77
padding: 0;
88
margin: 0;
9-
color: #333;
9+
color: #3b4252;
1010
letter-spacing: 0;
1111
}
1212

@@ -20,11 +20,15 @@ header {
2020
border-bottom: 1px solid #eee;
2121
}
2222

23-
header a,
24-
header a:hover {
23+
header a {
24+
color: inherit;
2525
text-decoration: none;
2626
}
2727

28+
header a:hover {
29+
text-decoration: underline;
30+
}
31+
2832
nav ul {
2933
display: flex;
3034
flex-wrap: nowrap;
@@ -35,11 +39,15 @@ nav li.title {
3539
flex-grow: 5;
3640
text-align: left;
3741
font-weight: bold;
42+
font-size: 1.4rem;
43+
color: #3b4252;
3844
}
3945

4046
nav li {
4147
flex-grow: 1;
48+
align-self: center;
4249
text-align: right;
50+
color: #4c566a;
4351
}
4452

4553
main {
@@ -61,11 +69,11 @@ i {
6169
}
6270

6371
a {
64-
color: #0275d8;
72+
color: #5e81ac;
6573
}
6674

6775
a:hover {
68-
color: #014c8c;
76+
color: #81a1c1;
6977
text-decoration: underline;
7078
}
7179

@@ -97,5 +105,5 @@ code {
97105
padding: 0.2rem;
98106
margin: 0rem 0.2rem;
99107
border-radius: 0.2rem;
100-
background: #eee;
108+
background: #e5e9f0;
101109
}

0 commit comments

Comments
 (0)