mirror of
https://github.com/DiscordFactory/website-documentation.git
synced 2026-01-14 17:34:22 +01:00
🚧 Update documentation layout
This commit is contained in:
@@ -136,9 +136,9 @@
|
||||
</button>
|
||||
</div>
|
||||
<main class="flex-1 relative z-0 focus:outline-none">
|
||||
<div class="py-6">
|
||||
<div class="py-6 space-y-5">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
|
||||
<h1 class="text-2xl font-semibold text-gray-900 dark:text-white">{{ title }}</h1>
|
||||
<h1 class="text-4xl font-semibold text-gray-900 dark:text-white">{{ title }}</h1>
|
||||
</div>
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
|
||||
<slot />
|
||||
@@ -154,13 +154,16 @@
|
||||
<div class="flex-1 flex flex-col min-h-0 border-l border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 transition duration-300">
|
||||
<div class="flex-1 flex flex-col pt-5 pb-4 ">
|
||||
<nav class="mt-5 flex-1 px-2 space-y-1">
|
||||
<p class="pb-3">Sommaire</p>
|
||||
<div class="pb-3 flex space-x-2">
|
||||
<MenuAlt2Icon class="h6 w-6" />
|
||||
<p>Sommaire</p>
|
||||
</div>
|
||||
<button
|
||||
v-for="item in toc"
|
||||
:key="item.label"
|
||||
@click.prevent="scrollMeTo(item.id)"
|
||||
class="text-gray-600 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100 transition duration-200 group flex items-center px-2 text-base font-medium rounded-md w-full focus:outline-none text-sm">
|
||||
{{ item.label }}
|
||||
• {{ item.label }}
|
||||
</button>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -174,7 +177,7 @@
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { Dialog, DialogOverlay, TransitionChild, TransitionRoot } from '@headlessui/vue'
|
||||
import { documentation } from '../utils/Navigation'
|
||||
import { CalendarIcon, ChartBarIcon, FolderIcon, HomeIcon, InboxIcon, MenuIcon, UsersIcon, XIcon } from '@heroicons/vue/outline'
|
||||
import { CalendarIcon, ChartBarIcon, FolderIcon, HomeIcon, InboxIcon, MenuIcon, UsersIcon, XIcon, MenuAlt2Icon } from '@heroicons/vue/outline'
|
||||
|
||||
defineProps<{
|
||||
title: string
|
||||
|
||||
24
src/templates/modules/documentation/getting-started.vue
Normal file
24
src/templates/modules/documentation/getting-started.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<Documentation title="Dashboard">
|
||||
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<h2>Test</h2>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<h3>Testy 2</h3>
|
||||
</Documentation>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Documentation from '../../../components/Documentation.vue'
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user