-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
8453b5c
commit f86be5d
Showing
9 changed files
with
755 additions
and
15 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
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,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,13 +1,24 @@ | ||
<template> | ||
<Suspense> | ||
<Component :is="layout"> | ||
<component :is="layout"> | ||
<RouterView /> | ||
</Component> | ||
</component> | ||
</Suspense> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref, markRaw } from 'vue' | ||
import { useRoute, RouterView } from 'vue-router' | ||
import { ref, markRaw, watch } from 'vue' | ||
import DefaultLayout from '@/layouts/default-layout.vue' | ||
const route = useRoute() | ||
const layout = ref(markRaw(DefaultLayout)) | ||
watch(() => route.path, (value) => { | ||
// Alternative blog layout example | ||
if (value.includes('/blog')) { | ||
// layout.value = markRaw(BlogLayout) | ||
} else { | ||
layout.value = markRaw(DefaultLayout) | ||
} | ||
}) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,9 +1,11 @@ | ||
<template> | ||
<div> | ||
<span>Hello, world</span> | ||
<section class="mt-6 flex"> | ||
<span class="m-auto">Hello, world</span> | ||
</section> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
console.log('Hello, Steve') | ||
console.log('Hello, world') | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
content: [ | ||
'./**/*.{vue,ts,js,css}' | ||
], | ||
// theme: { | ||
// extend: { | ||
// colors: {} | ||
// } | ||
// }, | ||
plugins: [] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.