Index page done

This commit is contained in:
2022-05-30 16:45:30 -03:00
parent f822c2a3cf
commit 33e0eba02f
5 changed files with 118 additions and 6 deletions

View File

@@ -5,12 +5,63 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ORB - (Open React Blog) API</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;700&family=Poppins:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./styles/global.css">
<link rel="stylesheet" type="text/css" href="./styles/index.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/styles/default.min.css">
</head>
<body>
<h1>ORB - (Open React Blog) API</h1>
<h3>Available endpoints</h3>
<ul>
<li>/user - Get determinated user data</li>
</ul>
<header>
<h1>ORB - (Open React Blog) API</h1>
</header>
<main>
<h3>Available endpoints</h3>
<ul>
<li>
<code class="endpoint">/user</code> - Get determinated user data
<p>Details:</p>
<ul>
<li><strong>GET Request</strong></li>
<li>
<p>Request's Body:</p>
<pre><code>
{
"user": "example" //!REQUIRED <!-- WTF highlight.js -->
}
</code></pre>
</li>
<li>
<p>Returned data:</p>
<pre><code>
{
"username": {
"username": "john-doe",
"displayUsername": "John Doe"
},
"posts": [
{
"id": "id",
"data": {
"readingTime": "1 min.",
"title": "Lorem Ipsum",
},
"date": {
"seconds": 1651334551
},
"post": "Full post",
"shortPost": "Full p..."
}
]
}
</code></pre>
</li>
</ul>
</li>
</ul>
</main>
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</body>
</html>

18
public/styles/global.css Normal file
View File

@@ -0,0 +1,18 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
width: 100%;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Poppins", "Arial";
}
div, main {
font-family: "Be Vietnam Pro", "Arial";
}

27
public/styles/index.css Normal file
View File

@@ -0,0 +1,27 @@
body {
padding: 0px 3vw;
}
header {
min-height: 15%;
display: flex;
align-items: center;
}
main {
}
main ul li {
margin-left: 3vw;
margin-top: 1vh;
}
main ul li p {
margin-top: 0.5vh;
}
main ul li .endpoint {
color: rgb(243, 58, 26);
}