Files
hobbypj-contents/index.html
T
Bkk1234 c00bc62272 feat: hobby project landing page (PWA + SPA) with admin backoffice
- landing page: welcome hero, live search, project card grid (10 projects from owner list)
- warm brown/white theme (fastwork-inspired layout), embedded K2D Thai font
- PWA: manifest, PIL-generated icons, versioned service worker with auto-update
- backoffice at #/admin: edit name/description/url, reorder, delete, publish
- server/publish.mjs: zero-dependency static server + PUT api/projects with
  validation, JSON write, git commit and push; loopback-only unless ADMIN_TOKEN
- docs: README, DESIGN.md (color/type contract), AGENTS.md
2026-11-19 01:03:13 +07:00

82 lines
4.3 KiB
HTML

<!doctype html>
<html lang="th">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>โปรเจคอดิเรกของเรา</title>
<meta
name="description"
content="รายชื่อโปรเจคอดิเรกของเรา เลือกโปรเจคที่อยากดูได้เลย ทุกเว็บใช้ SSL ฟรีต่ออายุอัตโนมัติ"
/>
<meta name="theme-color" content="#8A4722" />
<meta name="app-version" content="2026.11.19.1" />
<link rel="manifest" href="manifest.json" />
<link rel="icon" type="image/png" sizes="192x192" href="icons/icon-192.png" />
<link rel="icon" type="image/png" sizes="64x64" href="icons/favicon-64.png" />
<link rel="apple-touch-icon" href="icons/icon-180.png" />
<link rel="preload" href="fonts/k2d-400-thai.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="fonts/k2d-700-thai.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="assets/css/theme.css" />
<link rel="stylesheet" href="assets/css/home.css" />
<link rel="stylesheet" href="assets/css/admin.css" />
<script type="module" src="ui/app.js"></script>
</head>
<body>
<a class="skip-link" href="#main">ข้ามไปที่เนื้อหาหลัก</a>
<header class="site-header">
<div class="wrap site-header__inner">
<a class="brand" href="#/" aria-label="กลับไปหน้ารายชื่อโปรเจค">
<span class="brand__mark" aria-hidden="true">
<svg viewBox="0 0 32 32" width="32" height="32" focusable="false">
<rect width="32" height="32" rx="9" fill="currentColor" />
<rect x="8" y="8" width="6.5" height="6.5" rx="1.8" fill="#FFFFFF" />
<rect x="17.5" y="8" width="6.5" height="6.5" rx="1.8" fill="#FFFFFF" opacity=".55" />
<rect x="8" y="17.5" width="6.5" height="6.5" rx="1.8" fill="#FFFFFF" opacity=".55" />
<rect x="17.5" y="17.5" width="6.5" height="6.5" rx="1.8" fill="#FFFFFF" />
</svg>
</span>
<span class="brand__text">
<strong>โปรเจคอดิเรก</strong>
<small>hobbypj.com</small>
</span>
</a>
<nav class="site-nav" aria-label="เมนูหลัก">
<a class="site-nav__link" href="#/" data-nav="home">หน้าแรก</a>
<a class="site-nav__link" href="#/admin" data-nav="admin">จัดการข้อมูล</a>
<a class="btn btn--primary btn--sm" href="#/admin" data-nav="admin-cta">
<span data-icon="settings"></span>
<span>แก้ไขรายการ</span>
</a>
</nav>
</div>
</header>
<main id="main" class="site-main" tabindex="-1"></main>
<footer class="site-footer">
<div class="wrap site-footer__inner">
<div class="site-footer__col">
<p class="site-footer__brand">โปรเจคอดิเรกของเรา</p>
<p class="site-footer__note">เว็บเล็ก ๆ ที่ทำเล่นเพราะอยากทำ ไม่ได้มีไว้ขาย</p>
</div>
<div class="site-footer__col">
<p class="site-footer__title">ความปลอดภัย</p>
<p class="site-footer__note" data-ssl-note>ทุกเว็บใช้ SSL ฟรี ต่ออายุอัตโนมัติ</p>
</div>
<div class="site-footer__col">
<p class="site-footer__title">ติดต่อ</p>
<p class="site-footer__note"><a data-contact-link href="#/admin">เพิ่มอีเมลติดต่อได้ในหน้าจัดการ</a></p>
</div>
</div>
</footer>
<div class="toast-stack" id="toast-stack" role="status" aria-live="polite"></div>
<noscript>
<div class="wrap noscript">หน้านี้ต้องเปิดใช้งาน JavaScript เพื่อแสดงรายชื่อโปรเจค</div>
</noscript>
</body>
</html>