File tree Expand file tree Collapse file tree 6 files changed +38
-13
lines changed Expand file tree Collapse file tree 6 files changed +38
-13
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <li class =" mb-6 mt-6" ><slot /></li >
2
+ <li class =" mb-6 mt-6 md:mb-8 md:mt-8 md:text-lg " ><slot /></li >
3
3
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <p class =" mb-6 mt-6" ><slot /></p >
2
+ <p class =" mb-6 mt-6 md:mb-8 md:mt-8 md:text-lg " ><slot /></p >
3
3
</template >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
type Props = {
3
+ class? : string ;
4
+ isButton? : boolean ;
3
5
to? : string ;
4
6
};
5
7
6
8
const props = withDefaults (defineProps <Props >(), {
9
+ class: ' ' ,
10
+ isButton: true ,
7
11
to: ' /' ,
8
12
});
13
+
14
+ const mergeClass = () => {
15
+ return {
16
+ ' btn btn-ghost' : props .isButton ,
17
+ [props .class ]: props .class !== ' ' ,
18
+ }
19
+ }
9
20
</script >
10
21
11
22
<template >
12
23
<NuxtLink
13
24
:to =" props.to"
14
- class =" btn btn-ghost gap-x-2 normal-case text-xl"
25
+ :class =" mergeClass()"
26
+ class =" font-bold gap-x-2 normal-case text-xl"
15
27
>
16
28
<img width =" 36" src =" /logo.png" /> PseudoRESTAPI
17
29
</NuxtLink >
Original file line number Diff line number Diff line change 9
9
</script >
10
10
11
11
<template >
12
- <div class =" drawer" >
13
- <input id =" my-drawer" type =" checkbox" class =" drawer-toggle" />
12
+ <div class =" drawer drawer-mobile " >
13
+ <input id =" my-drawer-2 " type =" checkbox" class =" drawer-toggle" />
14
14
<div class =" drawer-content" >
15
15
<nav class =" bg-base-100 border-b border-gray-300 navbar" >
16
16
<div class =" flex-1" >
17
- <label for =" my-drawer" class =" btn btn-ghost btn-sm drawer-button" >
17
+ <label for =" my-drawer-2 " class =" btn btn-ghost btn-sm drawer-button lg:hidden " >
18
18
<Bars3Icon class =" h-6 w-6" />
19
19
</label >
20
- <LogoLink />
20
+ <LogoLink class = " md:hidden " to = " /docs " />
21
21
</div >
22
22
<div class =" flex-none" />
23
23
</nav >
24
24
<slot />
25
- </div >
26
- <div class =" drawer-side" >
27
- <label for =" my-drawer" class =" drawer-overlay" ></label >
28
- <ul class =" menu p-4 w-80 h-full bg-base-200 text-base-content" >
25
+ </div >
26
+ <div class =" drawer-side border-r border-slate-300" >
27
+ <label for =" my-drawer-2" class =" drawer-overlay" ></label >
28
+ <ul class =" p-4 w-80 bg-base-100 text-base-content" >
29
+ <li class =" hidden md:flex" >
30
+ <LogoLink class =" w-full" to =" /docs" />
31
+ </li >
29
32
<li v-for =" doc in docLinks" :key =" doc.link" >
30
- <NuxtLink :to =" doc.link" >{{ doc.text }}</NuxtLink >
33
+ <NuxtLink
34
+ :to =" doc.link"
35
+ class =" btn btn-ghost font-normal normal-case text-lg w-full justify-start"
36
+ >
37
+ {{ doc.text }}
38
+ </NuxtLink >
31
39
</li >
32
40
</ul >
33
41
</div >
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ export default defineNuxtConfig({
14
14
noscript : [ { children : 'JavaScript is required' } ] ,
15
15
} ,
16
16
} ,
17
+ content : {
18
+ highlight : {
19
+ theme : 'github-light' ,
20
+ } ,
21
+ } ,
17
22
css : [ '~/assets/css/main.css' ] ,
18
23
modules : [
19
24
'@nuxt/content' ,
Original file line number Diff line number Diff line change 5
5
</script >
6
6
7
7
<template >
8
- <section class =" p-6 " >
8
+ <section class =" pb-8 pt-8 pl-10 pr-10 " >
9
9
<ContentDoc />
10
10
</section >
11
11
</template >
You can’t perform that action at this time.
0 commit comments