Files
web-alterflixhub/mockup/cinema-detail.html
T
Bkk1234 92a2adad6a refactor: split repo into docs/ mockup/ app/
- move static mockups from resource/ui to mockup/
- move React app scaffold from resource/ui to app/
- move prome.md + images to docs/
- drop empty resource/jsonfile and resource/
- add root .gitignore
- rewrite README for new layout
- fix paths in mockup/index.html (resource/ui -> mockup, docs/prome.md)
2026-10-27 00:55:32 +07:00

205 lines
12 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AlterFlixHub — รายละเอียดโรงภาพยนตร์</title>
<style>
:root {
--bg: #0a0a0a;
--surface: #141414;
--surface-2: #1c1c1c;
--border: rgba(255,255,255,.08);
--red: #e00000;
--red-2: #ff1f1f;
--red-dark: #7a0000;
--ink: #f5f5f5;
--muted: #9ca3af;
--grad-red: linear-gradient(135deg, #ff1f1f 0%, #e00000 45%, #7a0000 100%);
--grad-bg: linear-gradient(180deg, #0a0a0a 0%, #160505 55%, #0a0a0a 100%);
--sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--mono: "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
body { background: var(--grad-bg); min-height: 100vh; }
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
padding: 12px 32px; background: rgba(10,10,10,.85); backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-red);
display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 1rem; box-shadow: 0 4px 16px rgba(224,0,0,.4); }
.logo-name { font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; color: var(--ink); }
.logo-name b { color: var(--red-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--red-2); color: var(--red-2); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang button { font: inherit; font-size: .8rem; font-weight: 700; padding: 7px 12px; cursor: pointer; border: 0; background: transparent; color: var(--muted); }
.lang button.active { background: var(--red); color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 28px 60px; }
.crumb { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.crumb a { color: var(--red-2); text-decoration: none; font-weight: 600; }
/* hero */
.detail-hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.detail-hero .bg { height: 240px; background: linear-gradient(135deg, #2a0505 0%, #e00000 60%, #ff4d4d 100%); }
.detail-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(10,10,10,.9) 100%); display: flex; align-items: flex-end; padding: 22px 24px; }
.detail-hero h1 { margin: 0 0 4px; font-size: 1.9rem; font-weight: 900; }
.detail-hero .tag { display: inline-block; font-size: .75rem; font-weight: 700; background: rgba(224,0,0,.9); color: #fff; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.detail-hero .sub { margin: 0; color: var(--muted); font-size: .9rem; }
/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.stat h3 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; color: var(--red-2); }
.stat p { margin: 0; color: var(--muted); font-size: .78rem; }
/* sections */
.section { margin: 24px 0; }
.section h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; line-height: 1.7; color: var(--muted); font-size: .9rem; }
.info-card b { color: var(--ink); }
/* movie/showtime cards */
.movies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.movie { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.movie .poster { height: 130px; }
.movie .p1 { background: linear-gradient(135deg,#1a0a0a,#c00000); }
.movie .p2 { background: linear-gradient(135deg,#3a0d0d,#e00000); }
.movie .p3 { background: linear-gradient(135deg,#0d1a1a,#c00000); }
.movie .p4 { background: linear-gradient(135deg,#1a0a0a,#a00000); }
.movie .p5 { background: linear-gradient(135deg,#2b0a0a,#ff1f1f); }
.movie .p6 { background: linear-gradient(135deg,#4d0707,#e00000); }
.movie .body { padding: 12px 14px; }
.movie .body h4 { margin: 0 0 6px; font-size: .92rem; font-weight: 700; }
.movie .times { display: flex; flex-wrap: wrap; gap: 6px; }
.time { font-family: var(--mono); font-size: .72rem; font-weight: 700; background: rgba(224,0,0,.15); border: 1px solid rgba(224,0,0,.4); color: var(--red-2); padding: 4px 8px; border-radius: 6px; }
.time.hot { background: var(--grad-red); color: #fff; border-color: transparent; }
dialog.about { border: 2px solid var(--red-2); background: #0a0a0a; color: var(--ink); border-radius: 14px; padding: 0; width: min(92vw, 420px); }
dialog.about::backdrop { background: rgba(0,0,0,.7); }
.about-box { padding: 22px 24px; }
.about-box h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--red-2); }
.about-box p { margin: 0 0 14px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.about-box .dev { border-top: 1px solid var(--border); padding-top: 12px; font-size: .82rem; }
.about-box .dev b { color: var(--red-2); }
.about-box .close { margin-top: 16px; width: 100%; }
</style>
</head>
<body>
<nav class="nav">
<a class="logo" href="home.html">
<span class="logo-mark">A</span>
<span class="logo-name" data-i18n="brand">Alter<b>Flix</b>Hub</span>
</a>
<div class="nav-right">
<button class="btn btn-ghost" id="about-btn" data-i18n="about">เกี่ยวกับเรา</button>
<div class="lang" role="group" aria-label="ภาษา">
<button data-lang="th" class="active">ไทย</button>
<button data-lang="en">EN</button>
</div>
</div>
</nav>
<div class="wrap">
<p class="crumb"><a href="home.html">หน้าแรก</a> / รายละเอียดโรงภาพยนตร์</p>
<section class="detail-hero">
<div class="bg"></div>
<div class="overlay">
<div>
<span class="tag" data-i18n="open">เปิดบริการ</span>
<h1 id="cinema-name">AlterFlix Major</h1>
<p class="sub" id="cinema-loc">ชั้น 4 เซ็นทรัลเวิลด์ · กรุงเทพมหานคร</p>
</div>
</div>
</section>
<div class="stats">
<div class="stat"><h3>4.8</h3><p data-i18n="rating">คะแนน</p></div>
<div class="stat"><h3>12</h3><p data-i18n="screens">โรงฉาย</p></div>
<div class="stat"><h3>2,480</h3><p data-i18n="seats">ที่นั่ง</p></div>
<div class="stat"><h3>18</h3><p data-i18n="movies">หนังรอบวันนี้</p></div>
</div>
<section class="section">
<h2 data-i18n="aboutCinema">เกี่ยวกับโรงภาพยนตร์</h2>
<div class="info-card">
<b data-i18n="addr">ที่อยู่:</b> ชั้น 4 ศูนย์การค้าเซ็นทรัลเวิลด์ · <b data-i18n="facilities">สิ่งอำนวยความสะดวก:</b> IMAX, Dolby Atmos, VIP Lounge, ที่จอดรถฟรี 4 ชม.
</div>
</section>
<section class="section">
<h2 data-i18n="showtimes">รอบฉายวันนี้</h2>
<div class="movies" id="movies"></div>
</section>
</div>
<dialog class="about" id="about-dialog">
<div class="about-box">
<h3 data-i18n="about">เกี่ยวกับเรา</h3>
<p data-i18n="aboutBody">AlterFlixHub — ศูนย์รวมข้อมูลโรงภาพยนตร์ ดูรอบฉาย เปรียบเทียบ และค้นพบประสบการณ์ชมภาพยนตร์ที่ดีที่สุด</p>
<div class="dev"><b>ผู้พัฒนา:</b> AlterFlixHub Team · v1.0.0</div>
<button class="btn btn-red close" id="about-close" data-i18n="close">ปิด</button>
</div>
</dialog>
<script>
(function () {
'use strict';
var q = new URLSearchParams(location.search);
var name = q.get('cinema') || 'AlterFlix Major';
document.getElementById('cinema-name').textContent = name;
var MOVIES = [
{ t: 'The Red Horizon', g: 'p1' }, { t: 'Neon Runner', g: 'p2' }, { t: 'Deep Space 9', g: 'p3' },
{ t: 'Crimson Tide', g: 'p4' }, { t: 'Midnight Drive', g: 'p5' }, { t: 'Lost Signal', g: 'p6' }
];
var times = ['10:30','13:00','15:30','18:00','20:30','23:00'];
var movies = document.getElementById('movies');
MOVIES.forEach(function (m, i) {
var div = document.createElement('div');
div.className = 'movie';
var tHtml = times.slice(0, 3 + (i % 3)).map(function (t, j) {
return '<span class="time' + (j === 0 ? ' hot' : '') + '">' + t + '</span>';
}).join('');
div.innerHTML = '<div class="poster ' + m.g + '"></div>' +
'<div class="body"><h4>' + m.t + '</h4><div class="times">' + tHtml + '</div></div>';
movies.appendChild(div);
});
var dlg = document.getElementById('about-dialog');
document.getElementById('about-btn').addEventListener('click', function () { dlg.showModal(); });
document.getElementById('about-close').addEventListener('click', function () { dlg.close(); });
var LANG = {
th: { brand: 'Alter<b>Flix</b>Hub', about: 'เกี่ยวกับเรา', open: 'เปิดบริการ', rating: 'คะแนน', screens: 'โรงฉาย',
seats: 'ที่นั่ง', movies: 'หนังรอบวันนี้', aboutCinema: 'เกี่ยวกับโรงภาพยนตร์', showtimes: 'รอบฉายวันนี้',
addr: 'ที่อยู่:', facilities: 'สิ่งอำนวยความสะดวก:', close: 'ปิด',
aboutBody: 'AlterFlixHub — ศูนย์รวมข้อมูลโรงภาพยนตร์ ดูรอบฉาย เปรียบเทียบ และค้นพบประสบการณ์ชมภาพยนตร์ที่ดีที่สุด' },
en: { brand: 'Alter<b>Flix</b>Hub', about: 'About Us', open: 'Now Open', rating: 'Rating', screens: 'Screens',
seats: 'Seats', movies: 'Movies Today', aboutCinema: 'About Cinema', showtimes: 'Today\'s Showtimes',
addr: 'Address:', facilities: 'Facilities:', close: 'Close',
aboutBody: 'AlterFlixHub — your hub for cinema info, showtimes and the best movie-going experience.' }
};
document.querySelectorAll('.lang button').forEach(function (b) {
b.addEventListener('click', function () {
document.querySelectorAll('.lang button').forEach(function (x) { x.classList.remove('active'); });
b.classList.add('active');
var lang = b.getAttribute('data-lang');
document.querySelectorAll('[data-i18n]').forEach(function (el) {
var k = el.getAttribute('data-i18n');
if (LANG[lang][k]) el.innerHTML = LANG[lang][k];
});
});
});
if (q.get('about') === '1') dlg.showModal();
})();
</script>
</body>
</html>