feat: pwa and responsive
This commit is contained in:
1 parent
71dacc0da2
commit
6b612e2758
7 files changed
+269
-18
No files matched your search
@@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="th">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#7a4cc0">
|
||||
<title>ออฟไลน์ | AT Transit</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
font-family: "Noto Sans Thai", "Prompt", system-ui, sans-serif;
|
||||
color: #1f2a44;
|
||||
background:
|
||||
radial-gradient(circle at 15% 15%, rgba(122,76,192,.18), transparent 40%),
|
||||
radial-gradient(circle at 85% 10%, rgba(48,113,184,.16), transparent 40%),
|
||||
linear-gradient(180deg, #f0ebff 0%, #ffe8ee 55%, #fff4d6 100%);
|
||||
}
|
||||
.card {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
border: 1px solid #e7e2f6;
|
||||
border-radius: 20px;
|
||||
padding: 36px 28px;
|
||||
box-shadow: 0 18px 40px rgba(63,43,94,.12);
|
||||
}
|
||||
.icon {
|
||||
width: 72px; height: 72px;
|
||||
margin: 0 auto 18px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border-radius: 20px;
|
||||
background: linear-gradient(135deg, #7a4cc0, #b07ce0);
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 24px rgba(122,76,192,.28);
|
||||
}
|
||||
.icon svg { width: 38px; height: 38px; }
|
||||
h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
|
||||
p { color: #6f7b95; font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
|
||||
button {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
gap: 8px;
|
||||
min-height: 48px; padding: 12px 24px;
|
||||
border: none; border-radius: 12px; cursor: pointer;
|
||||
font-family: inherit; font-size: 1rem; font-weight: 700;
|
||||
background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff;
|
||||
box-shadow: 0 8px 18px rgba(124,58,237,.28);
|
||||
}
|
||||
button:active { transform: translateY(1px); }
|
||||
a {
|
||||
display: inline-block; margin-top: 14px;
|
||||
color: #7a4cc0; font-size: .95rem; font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<div class="icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h.01"/><path d="M8.5 16.429a5 5 0 0 1 7 0"/><path d="M5 12.859a10 10 0 0 1 5.17-2.69"/><path d="M19 12.859a10 10 0 0 0-2.007-1.523"/><path d="M2 8.82a15 15 0 0 1 4.177-2.643"/><path d="M22 8.82a15 15 0 0 0-11.288-3.764"/><path d="m2 2 20 20"/></svg>
|
||||
</div>
|
||||
<h1>คุณกำลังออฟไลน์</h1>
|
||||
<p>เชื่อมต่ออินเทอร์เน็ตไม่ได้ — ไม่สามารถโหลดเนื้อหาล่าสุดได้ โปรดตรวจสอบการเชื่อมต่อแล้วลองใหม่อีกครั้ง</p>
|
||||
<button type="button" onclick="location.reload()">ลองใหม่</button>
|
||||
<br>
|
||||
<a href="./index.html">กลับหน้าแรก</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user