-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
93 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
<template> | ||
<header class="relative z-10 flex items-center border-b"> | ||
<header class="relative z-10 flex items-center d-border border-b"> | ||
<AppHeaderLogo /> | ||
|
||
<AppHeaderNav /> | ||
</header> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue3' | ||
<script setup lang="ts"> | ||
import AppHeaderLogo from './AppHeaderLogo.vue' | ||
import AppHeaderNav from './AppHeaderNav.vue' | ||
export default defineComponent({ | ||
components: { | ||
AppHeaderLogo, | ||
AppHeaderNav | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
<template> | ||
<div class="flex items-center ml-4 space-x-2 flex-auto"> | ||
<div class="flex items-center ml-4 space-x-2 flex-auto pr-2"> | ||
<!-- Editor --> | ||
<RouterLink to="/" class="relative flex-none px-4 py-1 text-sm font-medium leading-5 border rounded-md"> | ||
<RouterLink to="/" class="relative flex-none px-4 py-1 text-sm font-medium leading-5 d-border border rounded-md"> | ||
Pages | ||
</RouterLink> | ||
|
||
<!-- :class used as this route is undefined in the router --> | ||
<RouterLink | ||
to="/static" | ||
class="relative flex-none px-4 py-1 text-sm font-medium leading-5 border rounded-md" | ||
class="relative flex-none px-4 py-1 text-sm font-medium leading-5 d-border border rounded-md" | ||
:class="[$route.path.includes('static') ? 'router-link-active' : '']" | ||
> | ||
Static | ||
</RouterLink> | ||
|
||
<div class="flex-auto"></div> | ||
|
||
<button @click="toggleDark" class="p-1 opacity-50 hover:opacity-100 !outline-none"> | ||
<heroicons-outline-moon v-if="isDark" /> | ||
<heroicons-outline-sun v-else /> | ||
</button> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { toggleDark, isDark } from '../composables/dark' | ||
</script> | ||
|
||
<style lang="postcss"> | ||
.router-link-active { | ||
@apply border-blue-500 bg-blue-100; | ||
@apply border-blue-500 bg-blue-400 bg-opacity-25; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { useDark, useToggle } from '@vueuse/core' | ||
|
||
export const isDark = useDark() | ||
export const toggleDark = useToggle(isDark) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './preview' | ||
export * from './dark' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { defineConfig } from 'windicss/helpers' | ||
import colors from 'windicss/colors' | ||
import settings from '../../defaultTheme/settings' | ||
|
||
export default defineConfig({ | ||
theme: { | ||
extend: { | ||
colors: { | ||
transparent: 'transparent', | ||
current: 'currentColor', | ||
black: '#000', | ||
white: '#fff', | ||
blue: colors.lightBlue, | ||
green: colors.emerald, | ||
red: colors.red, | ||
rose: colors.rose, | ||
yellow: colors.amber, | ||
gray: colors.gray | ||
} | ||
} | ||
}, | ||
shortcuts: { | ||
...settings.shortcuts | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39c1f79
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nuxtjs-with-docus – ./
nuxtjs-with-docus-nuxtlabs.vercel.app
nuxtjs.docus.com
nuxtjs-with-docus-git-dev-nuxtlabs.vercel.app
nuxtjs-with-docus.vercel.app