Skip to content

Commit

Permalink
refactor(styles): 🎨 Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilovy09 committed Dec 23, 2024
1 parent c6f51ef commit ae13ba5
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,15 @@ onMounted(() => {
<ContentRenderer :value="doc" />
</div>
<div buttons class="flex justify-between m-2.5 mt-auto">
<a
:href="doc && doc.previousPath ? `/${doc.previousPath}` : '/'"
:class="{
'pointer-events-none text-gray-400': !doc || !doc.previousPath,
}"
class="flex items-center"
>
<a :href="doc && doc.previousPath ? `/${doc.previousPath}` : '/'" :class="{
'pointer-events-none text-gray-400': !doc || !doc.previousPath,
}" class="flex items-center">
<CircleChevronLeft :size="30" />
</a>

<a
:href="doc && doc.nextPath ? `/${doc.nextPath}` : '/'"
:class="{
'pointer-events-none text-gray-400': !doc || !doc.nextPath,
}"
class="flex items-center"
>
<a :href="doc && doc.nextPath ? `/${doc.nextPath}` : '/'" :class="{
'pointer-events-none text-gray-400': !doc || !doc.nextPath,
}" class="flex items-center">
<CircleChevronRight :size="30" />
</a>
</div>
Expand Down Expand Up @@ -109,6 +101,7 @@ onMounted(() => {
</button>
</div>
<CodeMirror v-if="isCoding" v-model:code="codeContent" />
<!-- TODO: Make a loader -->
<div v-else class="terminal-output">
<span class="text-yellow">$ <span class="text-fg">cargo</span> run</span>
<pre class="text-pretty">{{ terminalResponse }}</pre>
Expand Down

0 comments on commit ae13ba5

Please sign in to comment.