Add preview handling
This commit is contained in:
32
pages/preview-unauthorized/+Page.vue
Normal file
32
pages/preview-unauthorized/+Page.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="unauthorized">
|
||||
<h1>Unauthorized</h1>
|
||||
<p>Invalid preview token. Please check your preview configuration.</p>
|
||||
<p><a href="/">Return to homepage</a></p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.unauthorized {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 50vh;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #dc3545;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user