-
Notifications
You must be signed in to change notification settings - Fork 0
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
13 changed files
with
260 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0">--> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
<title>my site</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
<noscript>Please enable JavaScript to view this website.</noscript> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 +1,25 @@ | ||
<script setup lang="ts"> | ||
import {RouterLink, RouterView} from 'vue-router' | ||
import HelloWorld from './components/HelloWorld.vue' | ||
</script> | ||
|
||
<template> | ||
<main> | ||
<RouterView/> | ||
</main> | ||
<div class="is-flex is-flex-direction-column"> | ||
<header class="is-flex-grow-0"> | ||
<TheNav /> | ||
</header> | ||
<main class="container is-fluid is-flex-grow-1"> | ||
<RouterView /> | ||
</main> | ||
<TheFoot class="is-flex-shrink-1 is-flex-grow-0" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
div { | ||
min-height: 100vh; | ||
} | ||
</style> | ||
|
||
<script setup lang="ts"> | ||
import {RouterLink, RouterView} from "vue-router"; | ||
import HelloWorld from "./components/HelloWorld.vue"; | ||
import {getActivePinia} from "pinia"; | ||
import TheNav from "@/components/TheNav.vue"; | ||
import TheFoot from "@/components/TheFoot.vue"; | ||
</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,25 @@ | ||
<template> | ||
<teleport to="body" :disabled="teleport" ref="teleportRef"> | ||
<footer v-bind="$attrs" class="footer content has-text-centered has-background-inherit"> | ||
<small class="font-italic">insert obligatory mort quote here</small> | ||
</footer> | ||
</teleport> | ||
</template> | ||
|
||
<style scoped> | ||
/*place footer at the bottom always*/ | ||
footer { | ||
margin-top: auto; | ||
} | ||
</style> | ||
|
||
<script setup lang="ts"> | ||
import consola from "consola"; | ||
import {ref, type Teleport, type TeleportProps, watch} from "vue"; | ||
// const teleportRef = ref<InstanceType<typeof Teleport> | null>(null); | ||
const teleport = ref(true); | ||
watch([], () => { | ||
// teleport.value = true | ||
}); | ||
</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,45 @@ | ||
<template> | ||
<nav class="navbar is-spaced -has-shadow" role="navigation" aria-label="main navigation"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" title="you know the sh*t">✝️👽🧠🖤</a> | ||
<button ref="hamburgerRef" @click.stop.prevent="toggleHamburger" class="navbar-burger" | ||
aria-label="menu" | ||
aria-expanded="false"> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</button> | ||
</div> | ||
|
||
<div class="navbar-menu" ref="navMenuRef"> | ||
<div class="navbar-start"> | ||
<router-link v-for="route in routes" :key="route.path" class="navbar-item" :to="route.path"> | ||
{{ route.name }} | ||
</router-link> | ||
</div> | ||
</div> | ||
|
||
</nav> | ||
</template> | ||
|
||
<style scoped> | ||
</style> | ||
|
||
<script setup lang="ts"> | ||
import {useRoute, useRouter} from "vue-router"; | ||
import {type Events, ref} from "vue"; | ||
const router = useRouter(); | ||
const routes = router.getRoutes(); | ||
const navMenuRef = ref<HTMLDivElement | null>(null); | ||
const hamburgerRef = ref<HTMLDivElement | null>(null); | ||
function toggleHamburger(event: Event) { | ||
navMenuRef.value?.classList.toggle("is-active"); | ||
if(hamburgerRef.value) | ||
hamburgerRef.value.ariaExpanded = String(hamburgerRef.value.classList.toggle("is-active")); | ||
} | ||
</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 |
---|---|---|
|
@@ -12,3 +12,4 @@ app.use(createPinia()) | |
app.use(router) | ||
|
||
app.mount('#app') | ||
|
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,24 @@ | ||
import { createRouter, createWebHistory } from 'vue-router' | ||
import HomeView from '../views/HomeView.vue' | ||
import {createRouter, createWebHistory} from "vue-router"; | ||
import HomeView from "../views/HomeView.vue"; | ||
|
||
const router = createRouter({ | ||
history: createWebHistory(import.meta.env.BASE_URL), | ||
routes: [ | ||
{ | ||
path: '/', | ||
name: 'home', | ||
component: HomeView | ||
}, | ||
{ | ||
path: '/about', | ||
name: 'about', | ||
// route level code-splitting | ||
// this generates a separate chunk (About.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import('../views/AboutView.vue') | ||
} | ||
] | ||
}) | ||
history: createWebHistory(import.meta.env.BASE_URL), | ||
routes: [ | ||
{ | ||
path: "/", | ||
name: "~Home🍩🏡", | ||
component: HomeView | ||
}, | ||
{ | ||
path: "/about", | ||
name: "💻About👨🏿🦱", | ||
// route level code-splitting | ||
// this generates a separate chunk (About.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import("../views/AboutView.vue") | ||
} | ||
], | ||
linkActiveClass: "is-active", | ||
}); | ||
|
||
export default router | ||
export default router; |
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
Oops, something went wrong.