This commit is contained in:
Vivek Santayana 2022-08-25 10:50:43 +01:00
parent 712f7ed0ee
commit 837ad3e748
5 changed files with 15 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
// This starter template is using Vue 3 <script setup> SFCs // This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup // Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import Navbar from './components/Navbar.vue' import Navbar from '@/components/Navbar.vue'
</script> </script>
<template> <template>

View File

@ -3,7 +3,7 @@
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<!-- Logo --> <!-- Logo -->
<div class="pt-2"> <div class="pt-2">
<img src="vite.svg" alt="Vite Logo" > <img src="@/assets/vue.svg" alt="Vite Logo" >
</div> </div>
<!-- Menu Items --> <!-- Menu Items -->
<div class="hidden md:flex space-x-6"> <div class="hidden md:flex space-x-6">

View File

@ -1,5 +1,5 @@
import { createApp } from 'vue' import { createApp } from 'vue'
import './style.css' import '@/style.css'
import App from './App.vue' import App from '@/App.vue'
import router from './router' import router from '@/router'
createApp(App).use(router).mount('#app') createApp(App).use(router).mount('#app')

View File

@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue' import Home from '@/views/Home.vue'
import About from '../views/About.vue' import About from '@/views/About.vue'
import Quiz from '../views/Quiz.vue' import Quiz from '@/views/Quiz.vue'
const routes = [ const routes = [
{ {

View File

@ -1,7 +1,13 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue()] plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
}) })