Skip to content

Commit a22c521

Browse files
committed
feat: enhance 404 error page with detailed description and support contact information in English and Turkish
1 parent 00ee17f commit a22c521

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

lang/en-US.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@
238238
}
239239
},
240240
"page-errors": {
241-
"404": "The page is not found!"
241+
"404": "The page is not found!",
242+
"404-description": "The page you're looking for doesn't exist or has been moved.",
243+
"need-help": "If you believe this is an error, please contact support."
242244
},
243245
"ticket-statuses": {
244246
"new": "New",

lang/tr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@
238238
}
239239
},
240240
"page-errors": {
241-
"404": "Aradığınız sayfa bulunamadı!"
241+
"404": "Aradığınız sayfa bulunamadı!",
242+
"404-description": "Aradığınız sayfa mevcut değil veya taşınmış olabilir.",
243+
"need-help": "Bunun bir hata olduğunu düşünüyorsanız, lütfen destek ile iletişime geçin."
242244
},
243245
"ticket-statuses": {
244246
"new": "Yeni",

src/lib/pages/ErrorPage.svelte

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
<h3>{page.status}: {page.status === 404 ? $_("page-errors." + page.status) : page.error.message}</h3>
1+
<div class="vstack gap-3">
2+
<PageTitle
3+
title="Hata: 404"
4+
subtitle={page.status === 404
5+
? $_("page-errors.404-description")
6+
: $_("errors.INTERNAL_SERVER_ERROR")} />
7+
8+
<div class="text-center mb-3">
9+
<img src="/assets/img/404.png" alt="Error" width="256" height="auto" />
10+
</div>
11+
12+
<div class="text-center">
13+
<a href="/" class="btn btn-primary">
14+
<i class="fas fa-home me-2"></i>
15+
{$_("nav-links.homepage")}
16+
</a>
17+
</div>
18+
</div>
219

320
<script>
421
import { _ } from "svelte-i18n";
522
623
import { page } from "$app/state";
24+
import PageTitle from "$lib/component/PageTitle.svelte";
725
</script>

static/assets/img/404.png

17.7 KB
Loading

0 commit comments

Comments
 (0)