-
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
1 parent
da2aa61
commit 63efc3e
Showing
5 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<slot /> | ||
</template> |
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,8 @@ | ||
export default defineNuxtRouteMiddleware((to, from) => { | ||
// Contoh kondisi jika situs dalam mode maintenance | ||
const maintenanceMode = true; | ||
|
||
if (import.meta.env.PROD && maintenanceMode && to.path !== "/maintenance") { | ||
return navigateTo("/maintenance", { redirectCode: 503 }); | ||
} | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<script lang="ts" setup> | ||
definePageMeta({ layout: 'maintenance' }) | ||
useSeoMeta({ | ||
title: "Maaf, Situs Ini Sedang Dalam Perbaikan" | ||
}) | ||
</script> | ||
|
||
|
||
<template> | ||
<div class="page-notfound-container d-flex justify-content-center align-self-center "> | ||
|
||
<div class="d-flex flex-column mb-3 mx-auto"> | ||
<NuxtImg :class="'image-notfound'" placeholder="/images/ccsn_empty_page.png" src="/images/ccsn_empty_page.png" | ||
loading="lazy" /> | ||
<h3 class="page-notfound__text">Maaf, Situs Ini Sedang Dalam Perbaikan</h3> | ||
<h3 class="page-notfound__text">Situs Kami Tidak Tersedia Sementara Waktu</h3> | ||
<h3 class="page-notfound__text">Perbaikan Sedang Dilakukan, Kami Berusaha Secepat Mungkin</h3> | ||
|
||
</div> | ||
|
||
</div> | ||
</template> | ||
|
||
|
||
<style lang="css" scoped> | ||
.page-notfound-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
.page-notfound__text { | ||
font-family: Poppins; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: 120%; | ||
text-align: center; | ||
margin-bottom: 13px; | ||
} | ||
.image-notfound { | ||
width: auto; | ||
height: 350px; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
object-fit: cover; | ||
margin-bottom: 13px; | ||
} | ||
/* Dark Mode */ | ||
.dark-mode .page-notfound-container { | ||
background-color: #262626; | ||
} | ||
.dark-mode .page-notfound__text { | ||
color: #fff; | ||
} | ||
@media (min-width: 1200px) { | ||
.page-notfound__text { | ||
font-size: 18px; | ||
} | ||
} | ||
</style> |