113 lines
4.0 KiB
PHP
Executable File
113 lines
4.0 KiB
PHP
Executable File
<?php
|
|
|
|
/* @var $this \yii\web\View */
|
|
/* @var $content string */
|
|
|
|
use yii\helpers\Html;
|
|
|
|
$session = Yii::$app->session;
|
|
$this->title = Yii::$app->params['org_name_th'] ?? 'องค์การบริหารส่วนตำบลโคกจาน';
|
|
?>
|
|
<?php $this->beginPage() ?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?= Yii::$app->language ?>" class="h-100">
|
|
|
|
<head>
|
|
<meta charset="<?= Yii::$app->charset ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<?php if (isset(Yii::$app->meta)) Yii::$app->meta->displaySeo(); ?>
|
|
<meta name="robots" content="index, follow" />
|
|
<link rel="canonical" href="<?= Yii::$app->urlManager->createAbsoluteUrl(Yii::$app->request->url, true) ?>" />
|
|
|
|
<meta property="og:locale" content="th_TH" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content="<?= Html::encode($this->title) ?>" />
|
|
<meta property="og:url" content="<?= Yii::$app->urlManager->createAbsoluteUrl(Yii::$app->request->url, true) ?>" />
|
|
<meta property="og:site_name" content="องค์การบริหารส่วนตำบลโคกจาน" />
|
|
|
|
<?php $this->registerCsrfMetaTags() ?>
|
|
<title><?= Html::encode($this->title) ?></title>
|
|
|
|
<!-- Fonts Loader -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.cdnfonts.com/css/google-sans" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
<?php if (!empty($session['greeting']['font_link'])): ?>
|
|
<link href="<?= $session['greeting']['font_link'] ?>" rel="stylesheet">
|
|
<?php endif; ?>
|
|
|
|
<!-- Bootstrap 5.3.3 -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
|
|
<style>
|
|
:root {
|
|
--primary-peach: #FFDBBB;
|
|
--warm-gold: #FFC068;
|
|
--deep-brown: #2c1810;
|
|
}
|
|
|
|
body {
|
|
font-family: <?= !empty($session['greeting']['font_css']) ? $session['greeting']['font_css'] : "'Google Sans', 'Sarabun', sans-serif" ?>;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Kanit', sans-serif !important;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.greeting-wrapper {
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
background: url('<?= !empty($session['greeting']['background']) ? Yii::$app->params['greetingUrl'] . '/' . $session['greeting']['background'] : '' ?>') no-repeat center center;
|
|
background-size: cover;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Overlay to ensure content readability if bg is too bright/dark */
|
|
.greeting-overlay {
|
|
position: absolute;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0, 0, 0, 0.15);
|
|
z-index: 1;
|
|
}
|
|
|
|
.greeting-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
}
|
|
</style>
|
|
|
|
<?php $this->head() ?>
|
|
</head>
|
|
|
|
<body class="h-100">
|
|
<?php $this->beginBody() ?>
|
|
|
|
<div class="greeting-wrapper">
|
|
<div class="greeting-overlay"></div>
|
|
<div class="container greeting-content text-center">
|
|
<?= $content ?>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bootstrap 5.3.3 Bundle JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
|
|
|
<?php $this->endBody() ?>
|
|
</body>
|
|
|
|
</html>
|
|
<?php $this->endPage(); ?>
|