feat: GTSIT 사이트 구축
This commit is contained in:
79
app/Views/layouts/site.php
Normal file
79
app/Views/layouts/site.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
$pageTitle = isset($title) ? $title . ' | ' . config('app.name') : config('app.name');
|
||||
$pageDescription = $description ?? '네트워크, 키폰, CCTV 설계·시공·유지보수 전문 기업';
|
||||
$canonicalPath = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/';
|
||||
$canonical = rtrim((string) config('app.base_url'), '/') . $canonicalPath;
|
||||
$legalName = site_setting('legal_name', config('app.legal_name'));
|
||||
$phone = site_setting('phone', config('app.contact.phone'));
|
||||
$phoneSub = site_setting('phone_sub', config('app.contact.phone_sub'));
|
||||
$fax = site_setting('fax', config('app.contact.fax'));
|
||||
$email = site_setting('email', config('app.contact.email'));
|
||||
$address = site_setting('address', config('app.contact.address'));
|
||||
$bizno = site_setting('bizno', '206-86-70582');
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= e($pageTitle) ?></title>
|
||||
<meta name="description" content="<?= e($pageDescription) ?>">
|
||||
<?php if (config('app.noindex', false)): ?><meta name="robots" content="noindex,nofollow,noarchive"><?php endif; ?>
|
||||
<link rel="canonical" href="<?= e($canonical) ?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:locale" content="ko_KR">
|
||||
<meta property="og:site_name" content="<?= e(config('app.name')) ?>">
|
||||
<meta property="og:title" content="<?= e($pageTitle) ?>">
|
||||
<meta property="og:description" content="<?= e($pageDescription) ?>">
|
||||
<meta property="og:url" content="<?= e($canonical) ?>">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/site.css')) ?>?v=20260805-11">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/content.css')) ?>?v=20260805-9">
|
||||
<script src="<?= e(asset('js/site.js')) ?>?v=20260805-9" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#main-content">본문 바로가기</a>
|
||||
<header class="site-header">
|
||||
<div class="header-inner">
|
||||
<a class="brand" href="/" aria-label="<?= e($legalName) ?> 홈">
|
||||
<img class="brand-logo" src="<?= e(asset('images/company-logo-v3.png')) ?>" alt="" width="64" height="30">
|
||||
<span class="brand-copy"><strong><?= e($legalName) ?></strong></span>
|
||||
</a>
|
||||
<button class="menu-toggle" type="button" aria-expanded="false" aria-controls="site-navigation">
|
||||
<span class="sr-only">메뉴 열기</span><span></span><span></span><span></span>
|
||||
</button>
|
||||
<nav id="site-navigation" class="site-navigation" aria-label="주요 메뉴">
|
||||
<a href="/"<?= is_active_path('/') ? ' aria-current="page"' : '' ?>>홈</a>
|
||||
<a href="/blog"<?= is_active_path('/blog') ? ' aria-current="page"' : '' ?>>블로그</a>
|
||||
<a href="/contact"<?= is_active_path('/contact') ? ' aria-current="page"' : '' ?>>1:1 문의</a>
|
||||
</nav>
|
||||
<div class="header-actions">
|
||||
<a class="header-phone" href="tel:<?= e($phone) ?>"><?= e($phone) ?></a>
|
||||
<a class="button button-primary button-small" href="/contact">상담문의</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="main-content"><?= $content ?></main>
|
||||
|
||||
<section class="cta-band" aria-labelledby="cta-title">
|
||||
<div class="container cta-inner">
|
||||
<div><h2 id="cta-title">통신 인프라 구축, 어디서부터 시작할지 고민되세요?</h2><p>현장 상황에 맞는 상담과 견적을 안내해 드립니다.</p></div>
|
||||
<div class="cta-actions"><a class="button button-light" href="tel:<?= e($phone) ?>">전화상담 <?= e($phone) ?></a><a class="button button-outline-light" href="/contact">1:1 온라인 문의</a></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container footer-grid">
|
||||
<div><a class="brand footer-brand" href="/"><img class="brand-logo" src="<?= e(asset('images/company-logo-v3.png')) ?>" alt="" width="56" height="26"><span class="brand-copy"><strong><?= e($legalName) ?></strong></span></a><p>네트워크·키폰·CCTV 설계부터 시공·유지보수까지 책임집니다.</p></div>
|
||||
<div><h2>바로가기</h2><a href="/">홈</a><a href="/blog">블로그</a><a href="/contact">1:1 문의</a><a href="/privacy">개인정보처리방침</a></div>
|
||||
<div><h2>연락처</h2><p>대표번호 <?= e($phone) ?><br>경기지점 <?= e($phoneSub) ?><br>FAX <?= e($fax) ?><br>이메일 <?= e($email) ?></p></div>
|
||||
<div><h2>사업자 정보</h2><p><?= e($legalName) ?><br>사업자등록번호 <?= e($bizno) ?><br><?= e($address) ?></p></div>
|
||||
</div>
|
||||
<div class="container footer-bottom">© 2026 <?= e($legalName) ?>. All rights reserved.</div>
|
||||
</footer>
|
||||
<a class="floating-call" href="tel:<?= e($phone) ?>" aria-label="전화상담 <?= e($phone) ?>">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/></svg>
|
||||
<span>전화상담</span>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user