Default tailwind setup

This commit is contained in:
Alexis
2026-03-23 22:40:30 +01:00
parent 377faa0439
commit 8c9ae1be00
10 changed files with 408 additions and 48 deletions

View File

@@ -1,11 +1,7 @@
<script setup lang="ts"></script>
<template>
<h1>You did it!</h1>
<p>
Visit <a href="https://vuejs.org/" target="_blank" rel="noopener">vuejs.org</a> to read the
documentation
</p>
<RouterView />
</template>
<style scoped></style>

1
src/assets/css/main.css Normal file
View File

@@ -0,0 +1 @@
@import "tailwindcss";

5
src/pages/Home.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<main>
Home
</main>
</template>

View File

@@ -1,8 +1,14 @@
import Home from '@/pages/Home.vue'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [],
routes: [
{
path: '/',
component: Home,
},
],
})
export default router

View File

@@ -1,12 +0,0 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)
const doubleCount = computed(() => count.value * 2)
function increment() {
count.value++
}
return { count, doubleCount, increment }
})