148 lines
4.1 KiB
PHP
Executable File
148 lines
4.1 KiB
PHP
Executable File
<?php
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $name string */
|
|
/* @var $message string */
|
|
/* @var $exception Exception */
|
|
|
|
use yii\helpers\Html;
|
|
use yii\helpers\Url;
|
|
|
|
$this->title = $name;
|
|
?>
|
|
|
|
<style>
|
|
.error-container {
|
|
padding: 80px 0;
|
|
min-height: 60vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.error-card {
|
|
background: #fff;
|
|
border-radius: 40px;
|
|
padding: 60px 40px;
|
|
max-width: 650px;
|
|
width: 100%;
|
|
text-align: center;
|
|
box-shadow: 0 25px 70px rgba(44, 24, 16, 0.1);
|
|
border: 2px solid #FFDBBB;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Traditional Decorative Accent */
|
|
.error-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0; left: 0; right: 0;
|
|
height: 8px;
|
|
background: linear-gradient(90deg, #FFC068 0%, #8e1d1d 50%, #FFC068 100%);
|
|
}
|
|
|
|
.error-icon {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: #fff8f0;
|
|
color: #8e1d1d;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 48px;
|
|
margin: 0 auto 30px;
|
|
border: 2px solid #FFDBBB;
|
|
box-shadow: 0 10px 20px rgba(142, 29, 29, 0.05);
|
|
}
|
|
|
|
.error-code {
|
|
font-family: 'Kanit', sans-serif;
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
color: #2c1810;
|
|
margin-bottom: 15px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.error-message {
|
|
font-size: 1.1rem;
|
|
color: #666;
|
|
margin-bottom: 35px;
|
|
padding: 20px;
|
|
background: #fafaf9;
|
|
border-radius: 20px;
|
|
border-left: 5px solid #FFC068;
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
|
|
.error-hint {
|
|
color: #888;
|
|
font-size: 0.95rem;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.btn-error-home {
|
|
background: linear-gradient(135deg, #FFC068 0%, #ff8f00 100%) !important;
|
|
color: #fff !important;
|
|
border: none !important;
|
|
border-radius: 50px !important;
|
|
padding: 15px 45px !important;
|
|
font-weight: 700 !important;
|
|
font-size: 18px !important;
|
|
font-family: 'Kanit', sans-serif !important;
|
|
box-shadow: 0 8px 25px rgba(255, 143, 0, 0.3) !important;
|
|
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
|
|
text-decoration: none !important;
|
|
display: inline-inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-error-home:hover {
|
|
transform: translateY(-5px) scale(1.05);
|
|
box-shadow: 0 15px 35px rgba(255, 143, 0, 0.4) !important;
|
|
background: #2c1810 !important; /* Deep Brown on Hover */
|
|
}
|
|
|
|
.thai-ornament-bg {
|
|
position: absolute;
|
|
bottom: -20px;
|
|
right: -20px;
|
|
width: 150px;
|
|
opacity: 0.05;
|
|
pointer-events: none;
|
|
}
|
|
</style>
|
|
|
|
<div class="error-container">
|
|
<div class="error-card wow zoomIn">
|
|
|
|
<div class="error-icon">
|
|
<i class="fa fa-exclamation-triangle"></i>
|
|
</div>
|
|
|
|
<h1 class="error-code"><?= Html::encode($this->title) ?></h1>
|
|
|
|
<div class="error-message">
|
|
<?= nl2br(Html::encode($message)) ?>
|
|
</div>
|
|
|
|
<p class="error-hint">
|
|
ขออภัยในความไม่สะดวก เกิดข้อผิดพลาดบางประการในการประมวลผลคำขอของคุณ<br>
|
|
หากคุณเชื่อว่านี่คือข้อผิดพลาดของระบบ กรุณาติดต่อผู้ดูแลเว็บไซต์
|
|
</p>
|
|
|
|
<a href="<?= Url::home() ?>" class="btn-error-home">
|
|
<i class="fa fa-home"></i> กลับสู่หน้าหลัก
|
|
</a>
|
|
|
|
<!-- Background Thai Ornament -->
|
|
<svg class="thai-ornament-bg" viewBox="0 0 100 100">
|
|
<path d="M50 0 L100 50 L50 100 L0 50 Z" fill="#FFC068" />
|
|
</svg>
|
|
</div>
|
|
</div>
|