Skip to content

Commit

Permalink
Update homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed May 21, 2019
1 parent 13a0657 commit 8670992
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
15 changes: 8 additions & 7 deletions src/front/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
</a>
</li>
<li>
<a href="https://thanks.typicode.com">
<i class="far fa-laugh"></i>Supporters
<a href="https://my-json-server.typicode.com">
<i class="fas fa-burn"></i>My JSON Server
</a>
</li>
<li>
<a href="https://my-json-server.typicode.com">
<i class="fas fa-burn"></i>My JSON Server
<a href="https://thanks.typicode.com">
<i class="far fa-laugh"></i>Supporters
</a>
</li>
</ul>
Expand All @@ -48,8 +48,9 @@ <h1>Congrats!</h1>
<div id="resources"></div>

<p>
To access and modify resources, you can use any HTTP method
<br />
To access and modify resources, you can use any HTTP method:
</p>
<p>
<code>GET</code>
<code>POST</code>
<code>PUT</code>
Expand All @@ -63,7 +64,7 @@ <h1>Congrats!</h1>
<h1>Documentation</h1>
<p>
<a href="https://github.com/typicode/json-server">
<i class="fab fa-github-alt"></i>README
README
</a>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/front/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function CustomRoutesBlock({ customRoutes }) {
rule =>
`<tr>
<td>${rule}</td>
<td> ${customRoutes[rule]}</td>
<td><code>⇢</code> ${customRoutes[rule]}</td>
</tr>`
)
.join('')}
Expand Down
20 changes: 14 additions & 6 deletions src/front/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body {
flex-direction: column;
padding: 0;
margin: 0;
color: #333;
color: #3b4252;
letter-spacing: 0;
}

Expand All @@ -20,11 +20,15 @@ header {
border-bottom: 1px solid #eee;
}

header a,
header a:hover {
header a {
color: inherit;
text-decoration: none;
}

header a:hover {
text-decoration: underline;
}

nav ul {
display: flex;
flex-wrap: nowrap;
Expand All @@ -35,11 +39,15 @@ nav li.title {
flex-grow: 5;
text-align: left;
font-weight: bold;
font-size: 1.4rem;
color: #3b4252;
}

nav li {
flex-grow: 1;
align-self: center;
text-align: right;
color: #4c566a;
}

main {
Expand All @@ -61,11 +69,11 @@ i {
}

a {
color: #0275d8;
color: #5e81ac;
}

a:hover {
color: #014c8c;
color: #81a1c1;
text-decoration: underline;
}

Expand Down Expand Up @@ -97,5 +105,5 @@ code {
padding: 0.2rem;
margin: 0rem 0.2rem;
border-radius: 0.2rem;
background: #eee;
background: #e5e9f0;
}

0 comments on commit 8670992

Please sign in to comment.