API Docs better layout

This commit is contained in:
Nikita Krupin committed 2022-01-04 19:11:33 -05:00
1 parent 5f95b92e9f
commit 0514bb1805
3 files changed
+39 -16

No files matched your search

+25 -7
View File
@@ -1,11 +1,25 @@
<template> <template>
<div> <div class="row wrap justify-center full-width">
<!-- Top Section // "Sections" Card --> <!-- Top Section // "Sections" Card -->
<v-card max-width="600px" class="rounded-lg"> <v-card
<v-card-title style="padding-bottom: 0">Sections</v-card-title> max-width="600px"
<v-list> class="mx-2"
style="background: transparent; width: max-content; height: max-content"
>
<!-- <v-card-title style="padding-bottom: 0 !important; color: #aaa">
Sections
</v-card-title> -->
<v-list style="background: transparent">
<!-- Dynamically Generate Links From Below --> <!-- Dynamically Generate Links From Below -->
<v-list-item v-for="(item, i) in links" :key="i" router :to="item.to"> <v-list-item
v-for="(item, i) in links"
:key="i"
:to="item.to"
router
class="mt-4"
color="primary"
style="overflow: hidden; border-radius: 0.75rem"
>
<v-list-item-icon> <v-list-item-icon>
<v-icon v-text="item.icon" /> <v-icon v-text="item.icon" />
</v-list-item-icon> </v-list-item-icon>
@@ -19,8 +33,12 @@
<!-- Child Pages // Card --> <!-- Child Pages // Card -->
<v-card <v-card
max-width="600px" max-width="600px"
class="rounded-lg" class="col-xs col-md col-6 text-left mx-2 my-6 pa-8"
style="margin: 1em; padding: 0.75em; text-align: left" style="
height: max-content;
background-color: #222;
border-radius: 0.75rem;
"
> >
<NuxtChild /> <NuxtChild />
</v-card> </v-card>
+1 -1
View File
@@ -3,6 +3,6 @@
<h1> <h1>
Welcome to the <span class="primary--text">official RYD docs</span>! Welcome to the <span class="primary--text">official RYD docs</span>!
</h1> </h1>
<p>To get started, select a section.</p> <p>&lt;- To get started, select a section on the left.</p>
</div> </div>
</template> </template>
+13 -8
View File
@@ -18,10 +18,15 @@
</li> </li>
<li> <li>
Make sure that this link opens: Make sure that this link opens:
<a href="https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14"> <a
class="px-2 py-1"
style="background: #222; border-radius: 0.25rem"
href="https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14"
>
https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14 https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14
</a> </a>
, you should see plain text: <br /> , <br />
you should see plain text: <br />
<span style="color: #eee"> <span style="color: #eee">
{"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z", {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z",
"likes":2907, "dislikes":215, "rating":4.725641025641026, "likes":2907, "dislikes":215, "rating":4.725641025641026,
@@ -36,21 +41,20 @@
style=" style="
font-size: 0.5rem; font-size: 0.5rem;
height: 1.5rem; height: 1.5rem;
color: #aaa;
padding-left: 0.25rem !important; padding-left: 0.25rem !important;
padding-right: 0.5rem !important;
" "
:href="discordLink" :href="discordLink"
target="_blank" target="_blank"
> >
<v-icon size="1.25rem" style="margin-right: 0.5em" <v-icon size="1rem" style="margin-right: 0.5em">mdi-discord</v-icon>
>mdi-discord</v-icon
>
Discord Discord
</v-btn> </v-btn>
<ol type="a"> <ol type="a">
<li> <li>
Tell us your <b>Operating System</b>, <b>Browser Name</b> and Tell us your <b>Operating System</b>, <b>Browser Name</b> and
<b>Browser Version</b>. <b>Browser Version</b>.
<span style="color: #f44"> Detected: </span>
<v-btn <v-btn
class="mainAltButton" class="mainAltButton"
style=" style="
@@ -63,10 +67,11 @@
target="_blank" target="_blank"
@click="copyToClipboard(platform)" @click="copyToClipboard(platform)"
> >
{{ platform }} <v-icon size=".75rem" color="primary" style="margin-right: 0.5em"
<v-icon size="1rem" style="margin-left: 0.5em"
>mdi-content-copy</v-icon >mdi-content-copy</v-icon
> >
<span style="color: #f44"> Detected: </span>
&nbsp;{{ platform }}
</v-btn> </v-btn>
</li> </li>