added demo page with button redirection

(cherry picked from commit 37cc94aeda)
This commit is contained in:
Čarodej
2022-05-03 10:48:31 +02:00
parent 3b6391a74b
commit a9aa9195a3
6 changed files with 120 additions and 43 deletions
+12
View File
@@ -0,0 +1,12 @@
const routesIndex = [
{
name: 'Demo',
path: '/demo',
component: () => import(/* webpackChunkName: "chunks/demo" */ '../views/Demo'),
meta: {
requiresAuth: false,
},
},
]
export default routesIndex
+34
View File
@@ -0,0 +1,34 @@
<template>
<AuthContentWrapper ref="auth" class="h-screen">
<AuthContent :visible="true">
<Headline
title="You Are Nearly Here!"
description="Just click on the button below."
/>
<a :href="`${$store.getters.config.host}/sign-in`" target="_blank">
<AuthButton
class="mb-12 w-full justify-center md:w-min"
icon="chevron-right"
text="Visit Demo"
/>
</a>
</AuthContent>
</AuthContentWrapper>
</template>
<script>
import AuthContentWrapper from '../components/Layout/AuthPages/AuthContentWrapper'
import AuthContent from '../components/Layout/AuthPages/AuthContent'
import AuthButton from '../components/UI/Buttons/AuthButton'
import Headline from '../components/UI/Labels/LogoHeadline'
export default {
name: 'Demo',
components: {
AuthContentWrapper,
AuthContent,
AuthButton,
Headline,
},
}
</script>