Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Aug 27, 2018
1 parent 21451a7 commit b970cce
Showing 1 changed file with 16 additions and 24 deletions.
40 changes: 16 additions & 24 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/modern-normalize/0.5.0/modern-normalize.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/mono-blue.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<title>JSONPlaceholder - Fake online REST API for developers</title>
Expand Down Expand Up @@ -94,7 +94,7 @@
border-width: .125rem;
border-radius: .25rem;
border-style: solid;
border-color: currentColor;
border-color: #5661B3;
background-color: white;
color: #5661B3;
cursor: pointer;
Expand Down Expand Up @@ -129,16 +129,12 @@
<!-- Hero -->
<div class="hero">
<h1>
<span>{</span>
<span>JSON</span>
<span>:</span>
<span>Placeholder</span>
<span>}</span>
JSONPlaceholder
</h1>

<p>
<p class="subtitle">
Fake Online REST API for Testing and Prototyping
<br> Serving ~200 millions API requests per month
<br> Serving ~200M requests per month
</p>
<p>
Powered by
Expand Down Expand Up @@ -174,7 +170,7 @@ <h2>Intro</h2>
<!-- Example -->
<h2>Example</h2>
<p>
Run this code in a console or from anywhere
Run this code in a console or from any site:
</p>

<pre><code id="example" class="javascript">fetch('https://jsonplaceholder.typicode.com/todos/1')
Expand All @@ -187,10 +183,8 @@ <h2>Example</h2>
<span id="run-message">Awesome 👍</span>
</p>

<pre><code id="result" class="json"></code></pre>

<p>
<strong>Tip</strong> you can use
<strong>Tip</strong>: you can use
<b>
http
</b> or
Expand All @@ -199,6 +193,8 @@ <h2>Example</h2>
</b> when making requests to JSONPlaceholder.
</p>

<pre><code id="result" class="json"></code></pre>

<!-- Resources -->
<h2>Resources</h2>
<p>
Expand Down Expand Up @@ -245,7 +241,7 @@ <h2>Resources</h2>
</table>

<p>
<strong>Note</strong> resources have relations. For example:
<strong>Note</strong>: resources have relations. For example:
<b>posts</b> have many
<b>comments</b>,
<b>albums</b> have many
Expand Down Expand Up @@ -309,18 +305,15 @@ <h2>Routes</h2>
</table>

<p>
<strong>Note</strong> you can view detailed examples
<strong>
<a href="https://github.com/typicode/jsonplaceholder#how-to">here</a>
</strong>
<strong>Note</strong>: you can view detailed examples
<a href="https://github.com/typicode/jsonplaceholder#how-to">here</a>
</p>

<!-- JSON Server -->
<h2>Use your own data</h2>
<p>
<strong>
<a href="https://github.com/typicode/json-server">JSON Server</a>
</strong> powers this website. You can use it to create the same fake API in less than
<a href="https://github.com/typicode/json-server">JSON Server</a>
powers this website. You can use it to create the same fake API in less than
<strong>30 seconds</strong> with your own data.
</p>

Expand All @@ -336,8 +329,7 @@ <h2>Use your own data</h2>
<p>
Coded and built with ❤️ by
<a href="https://github.com/typicode">typicode</a>
<br>
Source code available on
<br> Source code available on
<a href="https://github.com/typicode/jsonplaceholder">GitHub</a>
<br>
<a href="https://github.com/typicode/jsonplaceholder/blob/master/CHANGELOG.md">CHANGELOG</a>
Expand Down Expand Up @@ -409,4 +401,4 @@ <h2>Use your own data</h2>
</script>
</body>

</html>
</html>

0 comments on commit b970cce

Please sign in to comment.