summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-27 21:39:36 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-27 21:39:36 +0200
commit0f82d38f6d487aee568cfbab223cbfcf6324c65f (patch)
treebc92a86ef2a0a1024c00ecffba10eadaae941b02
parentef309b83108847cbdf5565d8a459264926266264 (diff)
Drop `Models` page
-rw-r--r--components/VHeader.vue2
-rw-r--r--pages/models/index.vue8
2 files changed, 8 insertions, 2 deletions
diff --git a/components/VHeader.vue b/components/VHeader.vue
index 1f6a5d3..1285875 100644
--- a/components/VHeader.vue
+++ b/components/VHeader.vue
@@ -22,7 +22,6 @@
.hidden(class="sm:ml-6 sm:block")
.flex.space-x-4
a.text-white.px-3.py-2.rounded-md.text-sm.font-medium(:class="[routeName == 'index' ? 'bg-green-900': 'text-gray-300']" href="/" aria-current="page") Home
- a.text-white.px-3.py-2.rounded-md.text-sm.font-medium(:class="[routeName == 'models' ? 'bg-green-900': 'text-gray-300']" href="#" aria-current="page") Models
.absolute.inset-y-0.right-0.flex.items-center.pr-2(class="sm:static sm:inset-auto sm:ml-6 sm:pr-0" v-if="isLogged")
a.leading-6.text-white.px-3.py-2.rounded-md.text-sm.font-medium(:class="['hidden sm:flex', routeName == 'create-model' ? 'bg-green-900': 'text-gray-300']" href="/create" aria-current="page")
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
@@ -69,7 +68,6 @@
#mobile-menu(class="sm:hidden" v-if="boxInfo")
.space-y-1.px-2.pt-2.pb-3
a.text-white.block.px-3.py-2.rounded-md.text-base.font-medium(:class="[routeName == 'index' ? 'bg-green-900': 'text-gray-300']" href="/" aria-current="page") Home
- a.text-white.block.px-3.py-2.rounded-md.text-base.font-medium(:class="[routeName == 'models' ? 'bg-green-900': 'text-gray-300']" href="#" aria-current="page") Models
header.bg-white.shadow(v-if="pageName")
.mx-auto.max-w-7xl.py-6.px-4(class="sm:px-6 lg:px-8")
diff --git a/pages/models/index.vue b/pages/models/index.vue
index 3b1b689..1aa2eff 100644
--- a/pages/models/index.vue
+++ b/pages/models/index.vue
@@ -1,3 +1,11 @@
<template lang="pug">
div
</template>
+
+<script>
+export default {
+ created() {
+ window.location.href = "/";
+ },
+};
+</script>