start adding vue
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { Card } from '@3ba/vue';
|
||||
import Footer from "./components/Footer.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<router-view v-slot="{ Component,route }">
|
||||
<component :is="Component" />
|
||||
</router-view>
|
||||
</main>
|
||||
|
||||
<Footer>Scott 0-val</Footer>
|
||||
</template>
|
||||
+9
-1
@@ -1 +1,9 @@
|
||||
//
|
||||
import { createApp } from 'vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import '../css/app.css'
|
||||
import "@3ba/styles";
|
||||
|
||||
createApp(App)
|
||||
.use(router)
|
||||
.mount('#app');
|
||||
@@ -0,0 +1,28 @@
|
||||
import { createRouterconst host = process.env.VITE_HMR_HOST || "localhost";
|
||||
const clientPort = process.env.VITE_HMR_CLIENTPORT || 5173;
|
||||
const protocol = process.env.VITE_HMR_PROTOCOL || "ws";
|
||||
, createWebHistory } from 'vue-router';
|
||||
import App from '../App.vue';
|
||||
import BirthdayView from '../pages/BirthdayView.vue';
|
||||
import TestingView from '../pages/TestingView.vue';
|
||||
import HomeView from '../pages/HomeView.vue';
|
||||
import NewsView from '../pages/NewsView.vue';
|
||||
|
||||
const routes = [
|
||||
{ path: '/',
|
||||
children:
|
||||
[
|
||||
{ path: '', component: BirthdayView },
|
||||
{ path: 'aero', component: TestingView },
|
||||
{ path: 'home', component: HomeView },
|
||||
{ path: 'hearsay', component: NewsView },
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
||||
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Default favicon (fallback for unsupported browsers) -->
|
||||
<link rel="icon" href="{{ asset('favicon.ico') }}" type="image/x-icon">
|
||||
|
||||
<!-- Light mode favicon -->
|
||||
<link rel="icon" href="{{ asset('favicon-light.ico') }}" type="image/x-icon" media="(prefers-color-scheme: light)">
|
||||
|
||||
<!-- Dark mode favicon -->
|
||||
<link rel="icon" href="{{ asset('favicon-dark.ico') }}" type="image/x-icon" media="(prefers-color-scheme: dark)">
|
||||
|
||||
<title>Zártosztály</title>
|
||||
@vite(['resources/js/app.js'])
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user