Skip to content

Commit

Permalink
Add redirect on client-side to the Framer résumé website
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Dec 24, 2023
1 parent bd24427 commit c71d492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion v3/app.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<script setup lang="ts">
import Header from '~/components/home/Header.vue'
import Identification from '~/components/home/Identification.vue'
onMounted(() => {
// If this is removed, make sure to remove the `.invisible` class from the template below.
window.location.href = `https://lsviana.framer.website${window.location.pathname}`
})
</script>

<template>
<NuxtLayout>
<div class="bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200 min-h-screen flex justify-center">
<div class="invisible bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200 min-h-screen flex justify-center">
<div class="container flex flex-col space-y-4 py-8 px-4">
<Header />
<main class="grid md:grid-cols-6 md:gap-x-4 gap-y-4 flex-grow">
Expand Down
6 changes: 0 additions & 6 deletions v3/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,5 @@ export default defineNuxtConfig({
lang: 'en'
}
}
},
routeRules: {
'*': {
prerender: false,
redirect: 'https://lsviana.framer.website/'
}
}
})

0 comments on commit c71d492

Please sign in to comment.