feat: templ templating
Build Container Image / Build linux/arm64 image (push) Successful in 1m11s
Build Container Image / Build linux/amd64 image (push) Successful in 1m19s
Build Container Image / Create multi-architecture image (push) Successful in 21s

This commit is contained in:
2026-10-05 18:42:42 +07:00
parent 3f43fa87be
commit 4bcb0ffedd
19 changed files with 3346 additions and 2438 deletions
+1
View File
@@ -1 +1,2 @@
.env
/node_modules/
+2 -1
View File
@@ -3,6 +3,7 @@ module oauth-mc-web
go 1.27
require (
github.com/a-h/templ v0.3.960
github.com/gorilla/websocket v1.5.3
github.com/jackc/pgx/v5 v5.7.6
github.com/joho/godotenv v1.5.1
@@ -13,6 +14,6 @@ require (
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
golang.org/x/crypto v0.37.0 // indirect
golang.org/x/sync v0.15.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/text v0.24.0 // indirect
)
+8 -4
View File
@@ -1,6 +1,10 @@
github.com/a-h/templ v0.3.960 h1:trshEpGa8clF5cdI39iY4ZrZG8Z/QixyzEyUnA7feTM=
github.com/a-h/templ v0.3.960/go.mod h1:oCZcnKRf5jjsGpf2yELzQfodLphd2mwecwG4Crk5HBo=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
@@ -18,12 +22,12 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8=
golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0=
golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+1
View File
@@ -65,6 +65,7 @@ func New(ctx context.Context, cfg config.Config, logger *slog.Logger) (*Server,
func route(routes routeHandler, auth *minecraft.Service) *http.ServeMux {
r := http.NewServeMux()
r.Handle("GET /", web.LandingPage())
r.Handle("GET /assets/", http.StripPrefix("/assets/", web.Assets()))
r.Handle("GET "+minecraft.LoginSuccessPath, web.LoginSuccessPage())
r.Handle("GET "+minecraft.LoginFailurePath, web.LoginFailurePage())
r.HandleFunc("GET /healthz", routes.Health)
File diff suppressed because it is too large Load Diff
+413
View File
@@ -0,0 +1,413 @@
package web
templ Landing() {
@templ.Raw(`<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pacil SMP - Minecraft Java Edition Server</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/tailwind.css">
</head>
<body class="bg-canvas text-on-surface font-body text-lg leading-normal overflow-x-hidden">
<header class="sticky top-0 z-[100] flex h-[72px] items-center justify-between bg-plank-dark px-8 top-nav max-[768px]:px-4 max-[480px]:px-3" role="banner">
<a href="#" class="flex items-center gap-3 font-display text-xl text-white nav-brand max-[480px]:gap-[10px] max-[480px]:text-base" aria-label="Beranda Pacil SMP">
<div class="flex h-11 w-11 items-center justify-center bg-grass-green nav-logo-box max-[480px]:h-10 max-[480px]:w-10" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="block h-9 w-9 object-contain max-[480px]:h-8 max-[480px]:w-8" alt="">
</div>
<span>Pacil SMP</span>
</a>
<nav aria-label="Navigasi Utama">
<ul class="flex list-none items-center gap-6 max-[768px]:hidden">
<li><a href="#hero" class="relative px-3 py-2 font-body text-xl font-semibold text-on-surface-variant nav-link hover:bg-white/10 hover:text-white hover:shadow-[0_0_0_4px_#fff] focus-visible:outline-4 focus-visible:outline-[#FFFF55] focus-visible:shadow-[0_0_0_8px_#000]">Gabung</a></li>
<li><a href="#mods" class="relative px-3 py-2 font-body text-xl font-semibold text-on-surface-variant nav-link hover:bg-white/10 hover:text-white hover:shadow-[0_0_0_4px_#fff] focus-visible:outline-4 focus-visible:outline-[#FFFF55] focus-visible:shadow-[0_0_0_8px_#000]">Mod</a></li>
<li><a href="#kontribusi" class="relative px-3 py-2 font-body text-xl font-semibold text-on-surface-variant nav-link hover:bg-white/10 hover:text-white hover:shadow-[0_0_0_4px_#fff] focus-visible:outline-4 focus-visible:outline-[#FFFF55] focus-visible:shadow-[0_0_0_8px_#000]">Kontribusi</a></li>
</ul>
</nav>
<button type="button" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#3F7D20] text-white btn-grass hover:bg-[#4C9427] js-copy-ip-btn" aria-label="Salin IP server Pacil SMP">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M4 4h10v4h-2V6H6v10h2v2H4V4zm6 6h10v10H10V10zm2 2v6h6v-6h-6z"/>
</svg>
<span>Salin IP</span>
</button>
</header>
<div id="advancementToast" class="advancement-toast" role="status" aria-live="polite">
<div class="toast-message" id="toastMessage">Server IP berhasil di-copy ke clipboard kamu.</div>
</div>
<main>
<section id="hero" class="stratum-sky" aria-label="Hero dan Sambutan">
<img class="pixel-cloud cloud-1 cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" aria-hidden="true">
<img class="pixel-cloud cloud-2 cloud-drift cloud-drift-slow" src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" aria-hidden="true">
<div class="pixel-hills" aria-hidden="true">
</div>
<button type="button" class="panda-runner" aria-label="Klik untuk mengelus panda"><span class="panda-run" aria-hidden="true"></span><span class="panda-bubble" role="status">Awww kamu baik banget</span></button>
<div class="mx-auto max-w-[1200px] px-6 hero-content">
<div class="relative bg-surface p-6 panel-stone hero-signboard">
<h1 class="hero-title">Pacil SMP</h1>
<p class="hero-tagline">Capek dibantai kuis? Sini main Menkrep!</p>
<div class="ip-box-wrapper">
<div class="ip-copy-box" title="Server IP Pacil SMP">
<span class="ip-address-text" id="serverIpText">minecraft.csui.dev</span>
<span class="ip-chip-edition">Java Edition</span>
</div>
<button type="button" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-[22px] h-16 px-8 font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#3F7D20] text-white btn-grass hover:bg-[#4C9427] btn-copy-hero max-[767px]:h-[52px] max-[767px]:w-full js-copy-ip-btn" id="heroCopyBtn" aria-label="Salin IP minecraft.csui.dev">
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M4 4h10v4h-2V6H6v10h2v2H4V4zm6 6h10v10H10V10zm2 2v6h6v-6h-6z"/>
</svg>
<span class="btn-text">Salin IP</span>
</button>
</div>
<p class="hero-caption">Minecraft: Java Edition</p>
</div>
</div>
</section>
<section id="mods" class="stratum-cave" aria-label="Daftar Mod Opsional">
<div class="cave-decorations" aria-hidden="true">
<div class="cave-decoration cave-ore cave-ore-vein-1"><img class="cave-ore-2" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-vein-2"><img class="cave-ore-5" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-right"><img class="cave-ore-7" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-left"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torch cave-torch-left cave-torch-animated cave-animated"><img class="torch-sheet" src="https://cdn.fossy.my.id/public/wall-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-right"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torch cave-torch-right cave-torch-animated cave-animated"><img class="torch-sheet" src="https://cdn.fossy.my.id/public/wall-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-1 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-2 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-3 cave-animated"><img class="cave-dust-frame-3" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-4 cave-animated"><img class="cave-dust-frame-4" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-5 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-6 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-7 cave-animated"><img class="cave-dust-frame-3" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-8 cave-animated"><img class="cave-dust-frame-4" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-9 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-10 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-miner cave-animated" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-miner.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></div>
</div>
<div class="mx-auto max-w-[1200px] px-6 cave-content">
<div class="relative bg-surface p-6 panel-stone cave-header-panel">
<div class="section-header">
<h2 class="section-title">Mod Opsional</h2>
<p class="section-lead">
Server ini kompatibel dengan beberapa mod opsional. Kamu tetap bisa bergabung tanpa mod, tapi mod ini bisa membuat pengalaman bermain lebih seru.
</p>
</div>
</div>
<div class="mods-grid">
<article class="mod-card" tabindex="0" aria-label="Mod Simple Voice Chat">
<div class="mc-tooltip" role="tooltip">
<div class="mc-tooltip-title">Simple Voice Chat</div>
<div>Ngobrol dengan pemain di sekitarmu lewat voice chat berbasis jarak.</div>
</div>
<div class="mod-card-main">
<div class="mod-card-top">
<div class="mod-icon-slot" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/simple-voice-chat-icon.png" alt="">
</div>
<div class="mod-info">
<span class="badge-rank-opsional">Opsional</span>
<h3 class="mod-title">Simple Voice Chat</h3>
<p class="mod-desc">Ngobrol dengan pemain di sekitarmu lewat voice chat berbasis jarak.</p>
</div>
</div>
</div>
<div class="mod-footer-action">
<a href="https://modrinth.com/mod/simple-voice-chat" target="_blank" rel="noopener noreferrer" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#4AEDD9] text-[#0F2F33] btn-diamond hover:bg-[#6CF5E3]" aria-label="Lihat Simple Voice Chat di Modrinth (buka tab baru)">
<span>Lihat di Modrinth</span>
<svg class="external-icon" viewBox="0 0 24 24" aria-hidden="true">
<path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7z"/>
</svg>
</a>
</div>
</article>
<article class="mod-card" tabindex="0" aria-label="Mod Open Parties and Claims">
<div class="mc-tooltip" role="tooltip">
<div class="mc-tooltip-title">Open Parties and Claims</div>
<div>Klaim chunk untuk melindungi bangunanmu dan bentuk party bersama temanmu.</div>
</div>
<div class="mod-card-main">
<div class="mod-card-top">
<div class="mod-icon-slot" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/open-parties-and-claims-icon.webp" alt="">
</div>
<div class="mod-info">
<span class="badge-rank-opsional">Opsional</span>
<h3 class="mod-title">Open Parties and Claims</h3>
<p class="mod-desc">Klaim chunk untuk melindungi bangunanmu dan bentuk party bersama temanmu.</p>
</div>
</div>
</div>
<div class="mod-footer-action">
<a href="https://modrinth.com/mod/open-parties-and-claims" target="_blank" rel="noopener noreferrer" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#4AEDD9] text-[#0F2F33] btn-diamond hover:bg-[#6CF5E3]" aria-label="Lihat Open Parties and Claims di Modrinth (buka tab baru)">
<span>Lihat di Modrinth</span>
<svg class="external-icon" viewBox="0 0 24 24" aria-hidden="true">
<path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7z"/>
</svg>
</a>
</div>
</article>
</div>
<p class="mods-footnote">
Mod tidak wajib untuk bergabung. Pasang hanya jika kamu menginginkan fitur tersebut.
</p>
</div>
</section>
<div class="h-4 w-full strata-divider strata-cave-deepslate" aria-hidden="true"></div>
<section id="kontribusi" class="stratum-deepslate" aria-label="Formulir Kontribusi Pengembang">
<div class="mx-auto max-w-[820px] px-6 kontribusi-wrapper">
<div class="bg-parchment p-[36px_36px_36px_48px] max-[767px]:p-[24px_20px_24px_28px] text-on-parchment panel-book">
<h2 class="book-title">Ikut Kembangkan Server Ini</h2>
<p class="book-lead-text">
Pacil SMP dikembangkan menggunakan mod proprietary. Kalau kamu ingin ikut berkontribusi dalam pengembangannya, tinggalkan alamat email agar kami bisa menghubungimu.
</p>
<div id="formSuccessBanner" class="form-banner banner-success" role="alert" aria-live="polite">
Pesan terkirim! Kami akan menghubungimu lewat email.
</div>
<div id="formErrorBanner" class="form-banner banner-error" role="alert" aria-live="assertive">
Pesan gagal dikirim. Coba lagi beberapa saat lagi.
</div>
<form id="kontribusiForm" novalidate>
<div class="form-group">
<label for="emailInput" class="form-label">
Email <span class="required-star" aria-hidden="true">*</span>
</label>
<input type="email" id="emailInput" name="email" class="form-input" required aria-required="true" aria-describedby="emailHelper emailError" autocomplete="email">
<div id="emailHelper" class="form-helper">Kami akan membalas ke email ini.</div>
<div id="emailError" class="form-error-msg" role="alert">Format email tidak valid.</div>
</div>
<button type="submit" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#3F7D20] text-white btn-grass" id="submitFormBtn">
<span id="submitBtnLoader" style="display: none;" aria-hidden="true">
<span class="block-loader">
<span class="block-loader-dot"></span>
<span class="block-loader-dot"></span>
<span class="block-loader-dot"></span>
</span>
</span>
<span id="submitBtnText">Kirim Pesan</span>
</button>
<p class="form-privacy-note">
Datamu hanya dipakai untuk menghubungimu terkait pengembangan Pacil SMP.
</p>
</form>
</div>
</div>
</section>
<div class="h-4 w-full strata-divider strata-stone-deepslate" aria-hidden="true"></div>
</main>
<footer class="stratum-bedrock" role="contentinfo">
<div class="mx-auto max-w-[1200px] px-6">
<div class="footer-grid">
<div>
<div class="footer-brand">Pacil SMP</div>
<div class="footer-ip">minecraft.csui.dev</div>
</div>
<ul class="footer-links">
<li><a href="#kontribusi" class="footer-link">Kontribusi</a></li>
</ul>
</div>
<div class="footer-disclaimer-box">
<p class="disclaimer-line">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
<p class="disclaimer-line">
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.
</p>
</div>
</div>
</footer>
<nav class="mobile-hotbar" aria-label="Navigasi Bawah Mobile">
<a href="#hero" class="hotbar-slot active" aria-label="Ke bagian Gabung">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</svg>
<span>Gabung</span>
</a>
<a href="#mods" class="hotbar-slot" aria-label="Ke bagian Mod">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5z"/>
</svg>
<span>Mod</span>
</a>
<a href="#kontribusi" class="hotbar-slot" aria-label="Ke bagian Kontribusi">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</svg>
<span>Kontribusi</span>
</a>
<button type="button" class="hotbar-slot js-copy-ip-btn" aria-label="Salin IP minecraft.csui.dev">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</svg>
<span>Salin IP</span>
</button>
</nav>
<script>
(function() {
const serverIP = 'minecraft.csui.dev';
const toast = document.getElementById('advancementToast');
const toastMessage = document.getElementById('toastMessage');
const pandaRunner = document.querySelector('.panda-runner');
let toastTimer = null;
let pandaTouchTimer = null;
pandaRunner.addEventListener('click', () => {
if (pandaRunner.classList.contains('is-touched')) return;
clearTimeout(pandaTouchTimer);
pandaRunner.classList.add('is-touched');
pandaTouchTimer = setTimeout(() => pandaRunner.classList.remove('is-touched'), 3000);
});
function showToast(message) {
if (toastTimer) clearTimeout(toastTimer);
toastMessage.textContent = message;
toast.classList.add('show');
toastTimer = setTimeout(() => {
toast.classList.remove('show');
}, 4000);
}
function copyServerIP(buttonTrigger) {
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(serverIP)
.then(() => {
showToast('Server IP berhasil di-copy ke clipboard kamu.');
handleButtonFeedback(buttonTrigger);
})
.catch(() => {
fallbackCopy(buttonTrigger);
});
} else {
fallbackCopy(buttonTrigger);
}
}
function fallbackCopy(buttonTrigger) {
try {
const tempInput = document.createElement('input');
tempInput.value = serverIP;
document.body.appendChild(tempInput);
tempInput.select();
document.execCommand('copy');
document.body.removeChild(tempInput);
showToast('Server IP berhasil di-copy ke clipboard kamu.');
handleButtonFeedback(buttonTrigger);
} catch (e) {
showToast('Pilih dan salin: ' + serverIP);
}
}
function handleButtonFeedback(btn) {
if (!btn) return;
const textSpan = btn.querySelector('span:not(.block-loader):not(.block-loader-dot)');
if (textSpan) {
const originalText = textSpan.textContent;
textSpan.textContent = 'Tersalin!';
setTimeout(() => {
textSpan.textContent = originalText;
}, 2000);
}
}
document.querySelectorAll('.js-copy-ip-btn').forEach(btn => {
btn.addEventListener('click', () => copyServerIP(btn));
});
const form = document.getElementById('kontribusiForm');
const emailInput = document.getElementById('emailInput');
const submitBtn = document.getElementById('submitFormBtn');
const submitLoader = document.getElementById('submitBtnLoader');
const submitText = document.getElementById('submitBtnText');
const successBanner = document.getElementById('formSuccessBanner');
const errorBanner = document.getElementById('formErrorBanner');
function validateEmail(email) {
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}
form.addEventListener('submit', function(e) {
e.preventDefault();
successBanner.style.display = 'none';
errorBanner.style.display = 'none';
if (!validateEmail(emailInput.value.trim())) {
emailInput.classList.add('is-invalid');
return;
}
emailInput.classList.remove('is-invalid');
submitBtn.disabled = true;
submitLoader.style.display = 'inline-flex';
submitText.textContent = 'Mengirim...';
setTimeout(() => {
submitBtn.disabled = false;
submitLoader.style.display = 'none';
submitText.textContent = 'Kirim Pesan';
successBanner.style.display = 'block';
showToast('Pesan terkirim! Kami akan menghubungimu.');
form.reset();
}, 1200);
});
emailInput.addEventListener('input', () => {
if (emailInput.classList.contains('is-invalid')) {
emailInput.classList.remove('is-invalid');
}
});
const caveSection = document.getElementById('mods');
if ('IntersectionObserver' in window && caveSection) {
const caveObserver = new IntersectionObserver(entries => {
entries.forEach(entry => caveSection.classList.toggle('cave-offscreen', !entry.isIntersecting));
});
caveObserver.observe(caveSection);
}
})();
</script>
</body>
</html>
`)
}
+447
View File
@@ -0,0 +1,447 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.960
package web
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func Landing() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.Raw(`<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pacil SMP - Minecraft Java Edition Server</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/tailwind.css">
</head>
<body class="bg-canvas text-on-surface font-body text-lg leading-normal overflow-x-hidden">
<header class="sticky top-0 z-[100] flex h-[72px] items-center justify-between bg-plank-dark px-8 top-nav max-[768px]:px-4 max-[480px]:px-3" role="banner">
<a href="#" class="flex items-center gap-3 font-display text-xl text-white nav-brand max-[480px]:gap-[10px] max-[480px]:text-base" aria-label="Beranda Pacil SMP">
<div class="flex h-11 w-11 items-center justify-center bg-grass-green nav-logo-box max-[480px]:h-10 max-[480px]:w-10" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="block h-9 w-9 object-contain max-[480px]:h-8 max-[480px]:w-8" alt="">
</div>
<span>Pacil SMP</span>
</a>
<nav aria-label="Navigasi Utama">
<ul class="flex list-none items-center gap-6 max-[768px]:hidden">
<li><a href="#hero" class="relative px-3 py-2 font-body text-xl font-semibold text-on-surface-variant nav-link hover:bg-white/10 hover:text-white hover:shadow-[0_0_0_4px_#fff] focus-visible:outline-4 focus-visible:outline-[#FFFF55] focus-visible:shadow-[0_0_0_8px_#000]">Gabung</a></li>
<li><a href="#mods" class="relative px-3 py-2 font-body text-xl font-semibold text-on-surface-variant nav-link hover:bg-white/10 hover:text-white hover:shadow-[0_0_0_4px_#fff] focus-visible:outline-4 focus-visible:outline-[#FFFF55] focus-visible:shadow-[0_0_0_8px_#000]">Mod</a></li>
<li><a href="#kontribusi" class="relative px-3 py-2 font-body text-xl font-semibold text-on-surface-variant nav-link hover:bg-white/10 hover:text-white hover:shadow-[0_0_0_4px_#fff] focus-visible:outline-4 focus-visible:outline-[#FFFF55] focus-visible:shadow-[0_0_0_8px_#000]">Kontribusi</a></li>
</ul>
</nav>
<button type="button" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#3F7D20] text-white btn-grass hover:bg-[#4C9427] js-copy-ip-btn" aria-label="Salin IP server Pacil SMP">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M4 4h10v4h-2V6H6v10h2v2H4V4zm6 6h10v10H10V10zm2 2v6h6v-6h-6z"/>
</svg>
<span>Salin IP</span>
</button>
</header>
<div id="advancementToast" class="advancement-toast" role="status" aria-live="polite">
<div class="toast-message" id="toastMessage">Server IP berhasil di-copy ke clipboard kamu.</div>
</div>
<main>
<section id="hero" class="stratum-sky" aria-label="Hero dan Sambutan">
<img class="pixel-cloud cloud-1 cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" aria-hidden="true">
<img class="pixel-cloud cloud-2 cloud-drift cloud-drift-slow" src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" aria-hidden="true">
<div class="pixel-hills" aria-hidden="true">
</div>
<button type="button" class="panda-runner" aria-label="Klik untuk mengelus panda"><span class="panda-run" aria-hidden="true"></span><span class="panda-bubble" role="status">Awww kamu baik banget</span></button>
<div class="mx-auto max-w-[1200px] px-6 hero-content">
<div class="relative bg-surface p-6 panel-stone hero-signboard">
<h1 class="hero-title">Pacil SMP</h1>
<p class="hero-tagline">Capek dibantai kuis? Sini main Menkrep!</p>
<div class="ip-box-wrapper">
<div class="ip-copy-box" title="Server IP Pacil SMP">
<span class="ip-address-text" id="serverIpText">minecraft.csui.dev</span>
<span class="ip-chip-edition">Java Edition</span>
</div>
<button type="button" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-[22px] h-16 px-8 font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#3F7D20] text-white btn-grass hover:bg-[#4C9427] btn-copy-hero max-[767px]:h-[52px] max-[767px]:w-full js-copy-ip-btn" id="heroCopyBtn" aria-label="Salin IP minecraft.csui.dev">
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M4 4h10v4h-2V6H6v10h2v2H4V4zm6 6h10v10H10V10zm2 2v6h6v-6h-6z"/>
</svg>
<span class="btn-text">Salin IP</span>
</button>
</div>
<p class="hero-caption">Minecraft: Java Edition</p>
</div>
</div>
</section>
<section id="mods" class="stratum-cave" aria-label="Daftar Mod Opsional">
<div class="cave-decorations" aria-hidden="true">
<div class="cave-decoration cave-ore cave-ore-vein-1"><img class="cave-ore-2" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-vein-2"><img class="cave-ore-5" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-right"><img class="cave-ore-7" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-left"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torch cave-torch-left cave-torch-animated cave-animated"><img class="torch-sheet" src="https://cdn.fossy.my.id/public/wall-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-right"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torch cave-torch-right cave-torch-animated cave-animated"><img class="torch-sheet" src="https://cdn.fossy.my.id/public/wall-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-1 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-2 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-3 cave-animated"><img class="cave-dust-frame-3" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-4 cave-animated"><img class="cave-dust-frame-4" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-5 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-6 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-7 cave-animated"><img class="cave-dust-frame-3" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-8 cave-animated"><img class="cave-dust-frame-4" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-9 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-10 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-miner cave-animated" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-miner.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></div>
</div>
<div class="mx-auto max-w-[1200px] px-6 cave-content">
<div class="relative bg-surface p-6 panel-stone cave-header-panel">
<div class="section-header">
<h2 class="section-title">Mod Opsional</h2>
<p class="section-lead">
Server ini kompatibel dengan beberapa mod opsional. Kamu tetap bisa bergabung tanpa mod, tapi mod ini bisa membuat pengalaman bermain lebih seru.
</p>
</div>
</div>
<div class="mods-grid">
<article class="mod-card" tabindex="0" aria-label="Mod Simple Voice Chat">
<div class="mc-tooltip" role="tooltip">
<div class="mc-tooltip-title">Simple Voice Chat</div>
<div>Ngobrol dengan pemain di sekitarmu lewat voice chat berbasis jarak.</div>
</div>
<div class="mod-card-main">
<div class="mod-card-top">
<div class="mod-icon-slot" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/simple-voice-chat-icon.png" alt="">
</div>
<div class="mod-info">
<span class="badge-rank-opsional">Opsional</span>
<h3 class="mod-title">Simple Voice Chat</h3>
<p class="mod-desc">Ngobrol dengan pemain di sekitarmu lewat voice chat berbasis jarak.</p>
</div>
</div>
</div>
<div class="mod-footer-action">
<a href="https://modrinth.com/mod/simple-voice-chat" target="_blank" rel="noopener noreferrer" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#4AEDD9] text-[#0F2F33] btn-diamond hover:bg-[#6CF5E3]" aria-label="Lihat Simple Voice Chat di Modrinth (buka tab baru)">
<span>Lihat di Modrinth</span>
<svg class="external-icon" viewBox="0 0 24 24" aria-hidden="true">
<path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7z"/>
</svg>
</a>
</div>
</article>
<article class="mod-card" tabindex="0" aria-label="Mod Open Parties and Claims">
<div class="mc-tooltip" role="tooltip">
<div class="mc-tooltip-title">Open Parties and Claims</div>
<div>Klaim chunk untuk melindungi bangunanmu dan bentuk party bersama temanmu.</div>
</div>
<div class="mod-card-main">
<div class="mod-card-top">
<div class="mod-icon-slot" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/open-parties-and-claims-icon.webp" alt="">
</div>
<div class="mod-info">
<span class="badge-rank-opsional">Opsional</span>
<h3 class="mod-title">Open Parties and Claims</h3>
<p class="mod-desc">Klaim chunk untuk melindungi bangunanmu dan bentuk party bersama temanmu.</p>
</div>
</div>
</div>
<div class="mod-footer-action">
<a href="https://modrinth.com/mod/open-parties-and-claims" target="_blank" rel="noopener noreferrer" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#4AEDD9] text-[#0F2F33] btn-diamond hover:bg-[#6CF5E3]" aria-label="Lihat Open Parties and Claims di Modrinth (buka tab baru)">
<span>Lihat di Modrinth</span>
<svg class="external-icon" viewBox="0 0 24 24" aria-hidden="true">
<path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7z"/>
</svg>
</a>
</div>
</article>
</div>
<p class="mods-footnote">
Mod tidak wajib untuk bergabung. Pasang hanya jika kamu menginginkan fitur tersebut.
</p>
</div>
</section>
<div class="h-4 w-full strata-divider strata-cave-deepslate" aria-hidden="true"></div>
<section id="kontribusi" class="stratum-deepslate" aria-label="Formulir Kontribusi Pengembang">
<div class="mx-auto max-w-[820px] px-6 kontribusi-wrapper">
<div class="bg-parchment p-[36px_36px_36px_48px] max-[767px]:p-[24px_20px_24px_28px] text-on-parchment panel-book">
<h2 class="book-title">Ikut Kembangkan Server Ini</h2>
<p class="book-lead-text">
Pacil SMP dikembangkan menggunakan mod proprietary. Kalau kamu ingin ikut berkontribusi dalam pengembangannya, tinggalkan alamat email agar kami bisa menghubungimu.
</p>
<div id="formSuccessBanner" class="form-banner banner-success" role="alert" aria-live="polite">
Pesan terkirim! Kami akan menghubungimu lewat email.
</div>
<div id="formErrorBanner" class="form-banner banner-error" role="alert" aria-live="assertive">
Pesan gagal dikirim. Coba lagi beberapa saat lagi.
</div>
<form id="kontribusiForm" novalidate>
<div class="form-group">
<label for="emailInput" class="form-label">
Email <span class="required-star" aria-hidden="true">*</span>
</label>
<input type="email" id="emailInput" name="email" class="form-input" required aria-required="true" aria-describedby="emailHelper emailError" autocomplete="email">
<div id="emailHelper" class="form-helper">Kami akan membalas ke email ini.</div>
<div id="emailError" class="form-error-msg" role="alert">Format email tidak valid.</div>
</div>
<button type="submit" class="inline-flex h-12 select-none items-center justify-center gap-3 whitespace-nowrap px-6 text-xl font-semibold relative cursor-pointer border-none outline-none transition-none active:translate-y-1 focus-visible:z-10 focus-visible:shadow-[0_0_0_8px_#000] btn bg-[#3F7D20] text-white btn-grass" id="submitFormBtn">
<span id="submitBtnLoader" style="display: none;" aria-hidden="true">
<span class="block-loader">
<span class="block-loader-dot"></span>
<span class="block-loader-dot"></span>
<span class="block-loader-dot"></span>
</span>
</span>
<span id="submitBtnText">Kirim Pesan</span>
</button>
<p class="form-privacy-note">
Datamu hanya dipakai untuk menghubungimu terkait pengembangan Pacil SMP.
</p>
</form>
</div>
</div>
</section>
<div class="h-4 w-full strata-divider strata-stone-deepslate" aria-hidden="true"></div>
</main>
<footer class="stratum-bedrock" role="contentinfo">
<div class="mx-auto max-w-[1200px] px-6">
<div class="footer-grid">
<div>
<div class="footer-brand">Pacil SMP</div>
<div class="footer-ip">minecraft.csui.dev</div>
</div>
<ul class="footer-links">
<li><a href="#kontribusi" class="footer-link">Kontribusi</a></li>
</ul>
</div>
<div class="footer-disclaimer-box">
<p class="disclaimer-line">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
<p class="disclaimer-line">
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.
</p>
</div>
</div>
</footer>
<nav class="mobile-hotbar" aria-label="Navigasi Bawah Mobile">
<a href="#hero" class="hotbar-slot active" aria-label="Ke bagian Gabung">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</svg>
<span>Gabung</span>
</a>
<a href="#mods" class="hotbar-slot" aria-label="Ke bagian Mod">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5z"/>
</svg>
<span>Mod</span>
</a>
<a href="#kontribusi" class="hotbar-slot" aria-label="Ke bagian Kontribusi">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</svg>
<span>Kontribusi</span>
</a>
<button type="button" class="hotbar-slot js-copy-ip-btn" aria-label="Salin IP minecraft.csui.dev">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</svg>
<span>Salin IP</span>
</button>
</nav>
<script>
(function() {
const serverIP = 'minecraft.csui.dev';
const toast = document.getElementById('advancementToast');
const toastMessage = document.getElementById('toastMessage');
const pandaRunner = document.querySelector('.panda-runner');
let toastTimer = null;
let pandaTouchTimer = null;
pandaRunner.addEventListener('click', () => {
if (pandaRunner.classList.contains('is-touched')) return;
clearTimeout(pandaTouchTimer);
pandaRunner.classList.add('is-touched');
pandaTouchTimer = setTimeout(() => pandaRunner.classList.remove('is-touched'), 3000);
});
function showToast(message) {
if (toastTimer) clearTimeout(toastTimer);
toastMessage.textContent = message;
toast.classList.add('show');
toastTimer = setTimeout(() => {
toast.classList.remove('show');
}, 4000);
}
function copyServerIP(buttonTrigger) {
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(serverIP)
.then(() => {
showToast('Server IP berhasil di-copy ke clipboard kamu.');
handleButtonFeedback(buttonTrigger);
})
.catch(() => {
fallbackCopy(buttonTrigger);
});
} else {
fallbackCopy(buttonTrigger);
}
}
function fallbackCopy(buttonTrigger) {
try {
const tempInput = document.createElement('input');
tempInput.value = serverIP;
document.body.appendChild(tempInput);
tempInput.select();
document.execCommand('copy');
document.body.removeChild(tempInput);
showToast('Server IP berhasil di-copy ke clipboard kamu.');
handleButtonFeedback(buttonTrigger);
} catch (e) {
showToast('Pilih dan salin: ' + serverIP);
}
}
function handleButtonFeedback(btn) {
if (!btn) return;
const textSpan = btn.querySelector('span:not(.block-loader):not(.block-loader-dot)');
if (textSpan) {
const originalText = textSpan.textContent;
textSpan.textContent = 'Tersalin!';
setTimeout(() => {
textSpan.textContent = originalText;
}, 2000);
}
}
document.querySelectorAll('.js-copy-ip-btn').forEach(btn => {
btn.addEventListener('click', () => copyServerIP(btn));
});
const form = document.getElementById('kontribusiForm');
const emailInput = document.getElementById('emailInput');
const submitBtn = document.getElementById('submitFormBtn');
const submitLoader = document.getElementById('submitBtnLoader');
const submitText = document.getElementById('submitBtnText');
const successBanner = document.getElementById('formSuccessBanner');
const errorBanner = document.getElementById('formErrorBanner');
function validateEmail(email) {
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}
form.addEventListener('submit', function(e) {
e.preventDefault();
successBanner.style.display = 'none';
errorBanner.style.display = 'none';
if (!validateEmail(emailInput.value.trim())) {
emailInput.classList.add('is-invalid');
return;
}
emailInput.classList.remove('is-invalid');
submitBtn.disabled = true;
submitLoader.style.display = 'inline-flex';
submitText.textContent = 'Mengirim...';
setTimeout(() => {
submitBtn.disabled = false;
submitLoader.style.display = 'none';
submitText.textContent = 'Kirim Pesan';
successBanner.style.display = 'block';
showToast('Pesan terkirim! Kami akan menghubungimu.');
form.reset();
}, 1200);
});
emailInput.addEventListener('input', () => {
if (emailInput.classList.contains('is-invalid')) {
emailInput.classList.remove('is-invalid');
}
});
const caveSection = document.getElementById('mods');
if ('IntersectionObserver' in window && caveSection) {
const caveObserver = new IntersectionObserver(entries => {
entries.forEach(entry => caveSection.classList.toggle('cave-offscreen', !entry.isIntersecting));
});
caveObserver.observe(caveSection);
}
})();
</script>
</body>
</html>
`).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate
+18 -7
View File
@@ -1,27 +1,38 @@
package web
import (
"context"
"embed"
"io"
"net/http"
)
//go:embed index.html login-success.html login-failed.html
var content embed.FS
//go:embed tailwind.css
var assets embed.FS
func LandingPage() http.Handler {
return http.FileServer(http.FS(content))
return renderPage(Landing())
}
func LoginSuccessPage() http.Handler {
return staticPage("login-success.html")
return renderPage(LoginSuccess())
}
func LoginFailurePage() http.Handler {
return staticPage("login-failed.html")
return renderPage(LoginFailure())
}
func staticPage(name string) http.Handler {
func Assets() http.Handler {
return http.FileServer(http.FS(assets))
}
func renderPage(component interface {
Render(context.Context, io.Writer) error
}) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.ServeFileFS(w, r, content, name)
w.Header().Set("Content-Type", "text/html; charset=utf-8")
if err := component.Render(r.Context(), w); err != nil {
http.Error(w, "failed to render page", http.StatusInternalServerError)
}
})
}
-323
View File
@@ -1,323 +0,0 @@
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Pacil SMP - Login Gagal</title>
<link href="https://fonts.googleapis.com" rel="preconnect"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&amp;family=Press+Start+2P&amp;family=VT323&amp;display=swap" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
<style>
* {
box-sizing: border-box;
-webkit-font-smoothing: none;
image-rendering: pixelated;
}
body {
font-family: 'Pixelify Sans', sans-serif;
background-color: #1B1B22;
color: #FFFFFF;
margin: 0;
padding: 0;
overflow-x: hidden;
}
.font-press-start {
font-family: 'Press Start 2P', monospace;
}
.font-pixelify {
font-family: 'Pixelify Sans', sans-serif;
}
.font-vt323 {
font-family: 'VT323', monospace;
}
.bevel-plank {
background-color: #4B3621;
box-shadow: inset 4px 4px 0 #6d4e30, inset -4px -4px 0 #2b1f13, 0 4px 0 #000000;
}
.bevel-inventory {
background-color: #C6C6C6;
box-shadow: inset 4px 4px 0 #FFFFFF, inset -4px -4px 0 #555555, 0 0 0 4px #000000, 8px 8px 0 rgba(0, 0, 0, 0.55);
}
.bevel-slot-inset {
background-color: #14141A;
box-shadow: inset 4px 4px 0 rgba(0, 0, 0, 0.8), inset -4px -4px 0 rgba(255, 255, 255, 0.15), 0 0 0 4px #000000;
}
.bevel-logo {
background-color: #5B9B2F;
box-shadow: inset 4px 4px 0 #80df3d, inset -4px -4px 0 #2f5616, 0 0 0 4px #000000;
}
.footer-bedrock {
background-color: #1A1A1A;
border-top: 4px solid #000000;
box-shadow: inset 0 4px 0 #333333;
}
.strata-divider {
height: 16px;
width: 100%;
background-image:
linear-gradient(45deg, #1A1A1A 25%, transparent 25%),
linear-gradient(-45deg, #1A1A1A 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #1A1A1A 75%),
linear-gradient(-45deg, transparent 75%, #1A1A1A 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
background-color: #5B9B2F;
border-top: 4px solid #000000;
border-bottom: 4px solid #000000;
}
@keyframes dropInStepped {
0% {
transform: translateY(-40px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes popStepped {
0% {
transform: scale(0.7);
}
50% {
transform: scale(1.15);
}
100% {
transform: scale(1);
}
}
.animate-drop-in {
animation: dropInStepped 300ms steps(4, end) forwards;
}
.animate-check-pop {
animation: popStepped 350ms steps(4, end) 150ms backwards;
}
@media (prefers-reduced-motion: reduce) {
.animate-drop-in, .animate-check-pop {
animation: none !important;
transform: none !important;
opacity: 1 !important;
}
}
.pixel-hill {
position: absolute;
bottom: 0;
background-color: #5B9B2F;
border-top: 4px solid #3F7D20;
}
.status-main {
min-height: calc(100vh - 72px);
min-height: calc(100svh - 72px);
}
.status-panda-runner {
appearance: none;
position: absolute;
z-index: 3;
bottom: 100px;
left: -272px;
width: 256px;
height: 192px;
padding: 0;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
animation: status-panda-run 28s linear infinite;
}
.status-panda {
position: absolute;
left: 0;
bottom: 0;
display: block;
width: 128px;
height: 128px;
background: url("https://cdn.fossy.my.id/public/panda.svg") 0 0 / 1024px 128px no-repeat;
image-rendering: pixelated;
animation: status-panda-frames 0.8s steps(8) infinite;
}
.status-panda-runner.is-touched {
animation-play-state: paused;
}
.status-panda-runner.is-touched .status-panda {
background-image: url("https://cdn.fossy.my.id/public/panda-puk-puk.svg");
width: 150px;
height: 150px;
background-size: 600px 150px;
animation: status-panda-touch 0.8s steps(3) infinite;
}
.status-panda-bubble {
position: absolute;
top: -40px;
left: 156px;
display: grid;
width: 324px;
height: 108px;
margin: 0;
padding: 0 20px 16px;
align-items: center;
background: url("https://cdn.fossy.my.id/public/speech-bubble.svg") 0 0 / 324px 108px no-repeat;
color: #1B1B22;
font: 400 14px/20px 'Pixelify Sans', sans-serif;
text-align: center;
opacity: 0;
pointer-events: none;
}
.status-panda-runner.is-touched .status-panda-bubble {
animation: status-panda-bubble-show 0.2s steps(2) forwards;
}
@keyframes status-panda-run {
0% { transform: translateX(0); }
86% { transform: translateX(calc(100vw + 544px)); }
100% { transform: translateX(calc(100vw + 544px)); }
}
@keyframes status-panda-frames {
to { background-position: -1024px 0; }
}
@keyframes status-panda-touch {
to { background-position: -450px 0; }
}
@keyframes status-panda-bubble-show {
to { opacity: 1; }
}
@keyframes cloud-drift {
from { transform: translateX(-28px); }
to { transform: translateX(28px); }
}
.cloud-drift {
animation: cloud-drift 14s ease-in-out infinite alternate;
}
.cloud-drift-slow {
animation-duration: 18s;
}
@media (prefers-reduced-motion: reduce) {
.cloud-drift,
.cloud-drift-slow {
animation: none;
}
.status-panda-runner {
left: 24px;
animation: none;
}
.status-panda {
animation: none;
}
.status-panda-runner.is-touched .status-panda {
animation: none;
background-position: -450px 0;
}
.status-panda-runner.is-touched .status-panda-bubble {
animation: none;
opacity: 1;
}
}
</style>
</head>
<body class="min-h-screen flex flex-col justify-between selection:bg-[#3F7D20] selection:text-white">
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div aria-hidden="true" class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
<span class="font-press-start text-white text-base md:text-lg tracking-wider drop-shadow-[2px_2px_0px_#000]">
Pacil SMP
</span>
</div>
</header>
<main class="status-main relative flex-grow flex items-center justify-center py-12 px-4 sm:px-6 bg-[#78A7FF] overflow-hidden" role="main">
<div aria-hidden="true" class="absolute inset-0 pointer-events-none select-none overflow-hidden">
<img alt="" class="absolute top-10 left-[8%] hidden md:block w-36 h-auto object-contain cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img alt="" class="absolute top-16 right-[12%] w-48 h-auto object-contain cloud-drift cloud-drift-slow" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img alt="" class="absolute top-28 left-[40%] hidden sm:block w-28 h-auto object-contain opacity-90 cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img src="https://cdn.fossy.my.id/public/grass.svg" alt="" class="absolute bottom-0 inset-x-0 w-full h-28 object-cover" style="object-position: center 30%">
</div>
<button aria-label="Klik untuk mengelus panda" class="status-panda-runner" type="button"><span aria-hidden="true" class="status-panda"></span><span class="status-panda-bubble" role="status">Hehe, geli! Elus lagi dong!</span></button>
<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center"><div class="w-14 h-14 sm:w-16 sm:h-16 bg-[#AA0000] border-2 border-black flex items-center justify-center shadow-[inset_2px_2px_0_#ff5555,inset_-2px_-2px_0_#550000]"><svg aria-label="Tanda silang merah tanda gagal" class="w-10 h-10 sm:w-12 sm:h-12 animate-check-pop" fill="none" role="img" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFFFF" height="2" width="2" x="2" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="4"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="4"></rect><rect fill="#FFFFFF" height="4" width="4" x="6" y="6"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="2" y="12"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="4"></rect><rect fill="#550000" height="1" width="2" x="12" y="4"></rect><rect fill="#550000" height="1" width="2" x="4" y="6"></rect><rect fill="#550000" height="1" width="2" x="10" y="6"></rect><rect fill="#550000" height="1" width="4" x="6" y="10"></rect><rect fill="#550000" height="1" width="2" x="4" y="12"></rect><rect fill="#550000" height="1" width="2" x="10" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="14"></rect><rect fill="#550000" height="1" width="2" x="12" y="14"></rect></svg></div></div>
<div class="inline-block mb-3 px-3 py-1 bg-[#AA0000] border-2 border-black drop-shadow-[2px_2px_0px_#000]"><span class="font-pixelify font-semibold text-white text-sm sm:text-base tracking-wider uppercase drop-shadow-[1px_1px_0px_#000]">Terjadi Kesalahan</span></div>
<h1 class="font-press-start text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]" id="success-heading" tabindex="-1">Login Gagal</h1>
<p class="font-pixelify text-[#373737] text-lg sm:text-xl md:text-[22px] font-semibold leading-relaxed mb-4">Autentikasi tidak berhasil, jadi kamu belum terautentikasi di Minecraft.</p>
<p class="font-pixelify text-[#4A4A4A] text-base sm:text-lg leading-normal mb-3">Silakan tutup halaman ini, lalu coba login lagi dari Minecraft.</p><p class="font-pixelify text-[#555555] text-xs sm:text-sm leading-normal">Jika masalah terus berlanjut, hubungi admin server.</p>
</div>
</main>
<div aria-hidden="true" class="strata-divider"></div>
<footer class="footer-bedrock py-6 px-6 text-center relative z-20">
<div class="max-w-4xl mx-auto flex flex-col items-center gap-3">
<div class="font-press-start text-white text-xs sm:text-sm tracking-wider">
Pacil SMP
</div>
<p class="font-pixelify text-[#C6C6C6] text-sm sm:text-base leading-relaxed tracking-wide max-w-2xl">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const panda = document.querySelector('.status-panda-runner');
if (panda) {
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
panda.classList.add('is-touched');
setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
}
});
</script>
</body>
</html>
+89
View File
@@ -0,0 +1,89 @@
package web
templ LoginFailure() {
@templ.Raw(`<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Pacil SMP - Login Gagal</title>
<link href="https://fonts.googleapis.com" rel="preconnect"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&amp;family=Press+Start+2P&amp;family=VT323&amp;display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="/assets/tailwind.css">
</head>
<body class="min-h-screen flex flex-col justify-between bg-canvas text-white font-body overflow-x-hidden selection:bg-[#3F7D20] selection:text-white">
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div aria-hidden="true" class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
<span class="font-display text-white text-base md:text-lg tracking-wider drop-shadow-[2px_2px_0px_#000]">
Pacil SMP
</span>
</div>
</header>
<main class="status-main relative flex-grow flex items-center justify-center py-12 px-4 sm:px-6 bg-[#78A7FF] overflow-hidden" role="main">
<div aria-hidden="true" class="absolute inset-0 pointer-events-none select-none overflow-hidden">
<img alt="" class="absolute top-10 left-[8%] hidden md:block w-36 h-auto object-contain cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img alt="" class="absolute top-16 right-[12%] w-48 h-auto object-contain cloud-drift cloud-drift-slow" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img alt="" class="absolute top-28 left-[40%] hidden sm:block w-28 h-auto object-contain opacity-90 cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img src="https://cdn.fossy.my.id/public/grass.svg" alt="" class="absolute bottom-0 inset-x-0 w-full h-28 object-cover" style="object-position: center 30%">
</div>
<button aria-label="Klik untuk mengelus panda" class="status-panda-runner" type="button"><span aria-hidden="true" class="status-panda"></span><span class="status-panda-bubble" role="status">Hehe, geli! Elus lagi dong!</span></button>
<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center"><div class="w-14 h-14 sm:w-16 sm:h-16 bg-[#AA0000] border-2 border-black flex items-center justify-center shadow-[inset_2px_2px_0_#ff5555,inset_-2px_-2px_0_#550000]"><svg aria-label="Tanda silang merah tanda gagal" class="w-10 h-10 sm:w-12 sm:h-12 animate-check-pop" fill="none" role="img" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFFFF" height="2" width="2" x="2" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="4"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="4"></rect><rect fill="#FFFFFF" height="4" width="4" x="6" y="6"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="2" y="12"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="4"></rect><rect fill="#550000" height="1" width="2" x="12" y="4"></rect><rect fill="#550000" height="1" width="2" x="4" y="6"></rect><rect fill="#550000" height="1" width="2" x="10" y="6"></rect><rect fill="#550000" height="1" width="4" x="6" y="10"></rect><rect fill="#550000" height="1" width="2" x="4" y="12"></rect><rect fill="#550000" height="1" width="2" x="10" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="14"></rect><rect fill="#550000" height="1" width="2" x="12" y="14"></rect></svg></div></div>
<div class="inline-block mb-3 px-3 py-1 bg-[#AA0000] border-2 border-black drop-shadow-[2px_2px_0px_#000]"><span class="font-body font-semibold text-white text-sm sm:text-base tracking-wider uppercase drop-shadow-[1px_1px_0px_#000]">Terjadi Kesalahan</span></div>
<h1 class="font-display text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]" id="success-heading" tabindex="-1">Login Gagal</h1>
<p class="font-body text-[#373737] text-lg sm:text-xl md:text-[22px] font-semibold leading-relaxed mb-4">Autentikasi tidak berhasil, jadi kamu belum terautentikasi di Minecraft.</p>
<p class="font-body text-[#4A4A4A] text-base sm:text-lg leading-normal mb-3">Silakan tutup halaman ini, lalu coba login lagi dari Minecraft.</p><p class="font-body text-[#555555] text-xs sm:text-sm leading-normal">Jika masalah terus berlanjut, hubungi admin server.</p>
</div>
</main>
<div aria-hidden="true" class="strata-divider"></div>
<footer class="footer-bedrock py-6 px-6 text-center relative z-20">
<div class="max-w-4xl mx-auto flex flex-col items-center gap-3">
<div class="font-display text-white text-xs sm:text-sm tracking-wider">
Pacil SMP
</div>
<p class="font-body text-[#C6C6C6] text-sm sm:text-base leading-relaxed tracking-wide max-w-2xl">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const panda = document.querySelector('.status-panda-runner');
if (panda) {
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
panda.classList.add('is-touched');
setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
}
});
</script>
</body>
</html>
`)
}
+123
View File
@@ -0,0 +1,123 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.960
package web
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func LoginFailure() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.Raw(`<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Pacil SMP - Login Gagal</title>
<link href="https://fonts.googleapis.com" rel="preconnect"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&amp;family=Press+Start+2P&amp;family=VT323&amp;display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="/assets/tailwind.css">
</head>
<body class="min-h-screen flex flex-col justify-between bg-canvas text-white font-body overflow-x-hidden selection:bg-[#3F7D20] selection:text-white">
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div aria-hidden="true" class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
<span class="font-display text-white text-base md:text-lg tracking-wider drop-shadow-[2px_2px_0px_#000]">
Pacil SMP
</span>
</div>
</header>
<main class="status-main relative flex-grow flex items-center justify-center py-12 px-4 sm:px-6 bg-[#78A7FF] overflow-hidden" role="main">
<div aria-hidden="true" class="absolute inset-0 pointer-events-none select-none overflow-hidden">
<img alt="" class="absolute top-10 left-[8%] hidden md:block w-36 h-auto object-contain cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img alt="" class="absolute top-16 right-[12%] w-48 h-auto object-contain cloud-drift cloud-drift-slow" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img alt="" class="absolute top-28 left-[40%] hidden sm:block w-28 h-auto object-contain opacity-90 cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg"/>
<img src="https://cdn.fossy.my.id/public/grass.svg" alt="" class="absolute bottom-0 inset-x-0 w-full h-28 object-cover" style="object-position: center 30%">
</div>
<button aria-label="Klik untuk mengelus panda" class="status-panda-runner" type="button"><span aria-hidden="true" class="status-panda"></span><span class="status-panda-bubble" role="status">Hehe, geli! Elus lagi dong!</span></button>
<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center"><div class="w-14 h-14 sm:w-16 sm:h-16 bg-[#AA0000] border-2 border-black flex items-center justify-center shadow-[inset_2px_2px_0_#ff5555,inset_-2px_-2px_0_#550000]"><svg aria-label="Tanda silang merah tanda gagal" class="w-10 h-10 sm:w-12 sm:h-12 animate-check-pop" fill="none" role="img" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFFFF" height="2" width="2" x="2" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="4"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="4"></rect><rect fill="#FFFFFF" height="4" width="4" x="6" y="6"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="2" y="12"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="4"></rect><rect fill="#550000" height="1" width="2" x="12" y="4"></rect><rect fill="#550000" height="1" width="2" x="4" y="6"></rect><rect fill="#550000" height="1" width="2" x="10" y="6"></rect><rect fill="#550000" height="1" width="4" x="6" y="10"></rect><rect fill="#550000" height="1" width="2" x="4" y="12"></rect><rect fill="#550000" height="1" width="2" x="10" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="14"></rect><rect fill="#550000" height="1" width="2" x="12" y="14"></rect></svg></div></div>
<div class="inline-block mb-3 px-3 py-1 bg-[#AA0000] border-2 border-black drop-shadow-[2px_2px_0px_#000]"><span class="font-body font-semibold text-white text-sm sm:text-base tracking-wider uppercase drop-shadow-[1px_1px_0px_#000]">Terjadi Kesalahan</span></div>
<h1 class="font-display text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]" id="success-heading" tabindex="-1">Login Gagal</h1>
<p class="font-body text-[#373737] text-lg sm:text-xl md:text-[22px] font-semibold leading-relaxed mb-4">Autentikasi tidak berhasil, jadi kamu belum terautentikasi di Minecraft.</p>
<p class="font-body text-[#4A4A4A] text-base sm:text-lg leading-normal mb-3">Silakan tutup halaman ini, lalu coba login lagi dari Minecraft.</p><p class="font-body text-[#555555] text-xs sm:text-sm leading-normal">Jika masalah terus berlanjut, hubungi admin server.</p>
</div>
</main>
<div aria-hidden="true" class="strata-divider"></div>
<footer class="footer-bedrock py-6 px-6 text-center relative z-20">
<div class="max-w-4xl mx-auto flex flex-col items-center gap-3">
<div class="font-display text-white text-xs sm:text-sm tracking-wider">
Pacil SMP
</div>
<p class="font-body text-[#C6C6C6] text-sm sm:text-base leading-relaxed tracking-wide max-w-2xl">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const panda = document.querySelector('.status-panda-runner');
if (panda) {
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
panda.classList.add('is-touched');
setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
}
});
</script>
</body>
</html>
`).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate
-361
View File
@@ -1,361 +0,0 @@
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Autentikasi Berhasil - Pacil SMP</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<style>
* {
box-sizing: border-box;
-webkit-font-smoothing: none;
image-rendering: pixelated;
}
body {
font-family: 'Pixelify Sans', sans-serif;
background-color: #1B1B22;
color: #FFFFFF;
margin: 0;
padding: 0;
overflow-x: hidden;
}
.font-press-start {
font-family: 'Press Start 2P', monospace;
}
.font-pixelify {
font-family: 'Pixelify Sans', sans-serif;
}
.font-vt323 {
font-family: 'VT323', monospace;
}
.bevel-plank {
background-color: #4B3621;
box-shadow: inset 4px 4px 0 #6d4e30, inset -4px -4px 0 #2b1f13, 0 4px 0 #000000;
}
.bevel-inventory {
background-color: #C6C6C6;
box-shadow: inset 4px 4px 0 #FFFFFF, inset -4px -4px 0 #555555, 0 0 0 4px #000000, 8px 8px 0 rgba(0, 0, 0, 0.55);
}
.bevel-slot-inset {
background-color: #14141A;
box-shadow: inset 4px 4px 0 rgba(0, 0, 0, 0.8), inset -4px -4px 0 rgba(255, 255, 255, 0.15), 0 0 0 4px #000000;
}
.bevel-logo {
background-color: #5B9B2F;
box-shadow: inset 4px 4px 0 #80df3d, inset -4px -4px 0 #2f5616, 0 0 0 4px #000000;
}
.footer-bedrock {
background-color: #1A1A1A;
border-top: 4px solid #000000;
box-shadow: inset 0 4px 0 #333333;
}
.strata-divider {
height: 16px;
width: 100%;
background-image:
linear-gradient(45deg, #1A1A1A 25%, transparent 25%),
linear-gradient(-45deg, #1A1A1A 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #1A1A1A 75%),
linear-gradient(-45deg, transparent 75%, #1A1A1A 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
background-color: #5B9B2F;
border-top: 4px solid #000000;
border-bottom: 4px solid #000000;
}
@keyframes dropInStepped {
0% {
transform: translateY(-40px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes popStepped {
0% {
transform: scale(0.7);
}
50% {
transform: scale(1.15);
}
100% {
transform: scale(1);
}
}
.animate-drop-in {
animation: dropInStepped 300ms steps(4, end) forwards;
}
.animate-check-pop {
animation: popStepped 350ms steps(4, end) 150ms backwards;
}
@media (prefers-reduced-motion: reduce) {
.animate-drop-in, .animate-check-pop {
animation: none !important;
transform: none !important;
opacity: 1 !important;
}
}
.pixel-hill {
position: absolute;
bottom: 0;
background-color: #5B9B2F;
border-top: 4px solid #3F7D20;
}
.status-main {
min-height: calc(100vh - 72px);
min-height: calc(100svh - 72px);
}
.status-panda-runner {
appearance: none;
position: absolute;
z-index: 3;
bottom: 100px;
left: -272px;
width: 256px;
height: 192px;
padding: 0;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
animation: status-panda-run 28s linear infinite;
}
.status-panda {
position: absolute;
left: 0;
bottom: 0;
display: block;
width: 128px;
height: 128px;
background: url("https://cdn.fossy.my.id/public/panda.svg") 0 0 / 1024px 128px no-repeat;
image-rendering: pixelated;
animation: status-panda-frames 0.8s steps(8) infinite;
}
.status-panda-runner.is-touched {
animation-play-state: paused;
}
.status-panda-runner.is-touched .status-panda {
background-image: url("https://cdn.fossy.my.id/public/panda-puk-puk.svg");
width: 150px;
height: 150px;
background-size: 600px 150px;
animation: status-panda-touch 0.8s steps(3) infinite;
}
.status-panda-bubble {
position: absolute;
top: -40px;
left: 156px;
display: grid;
width: 324px;
height: 108px;
margin: 0;
padding: 0 20px 16px;
align-items: center;
background: url("https://cdn.fossy.my.id/public/speech-bubble.svg") 0 0 / 324px 108px no-repeat;
color: #1B1B22;
font: 400 14px/20px 'Pixelify Sans', sans-serif;
text-align: center;
opacity: 0;
pointer-events: none;
}
.status-panda-runner.is-touched .status-panda-bubble {
animation: status-panda-bubble-show 0.2s steps(2) forwards;
}
@keyframes status-panda-run {
0% { transform: translateX(0); }
86% { transform: translateX(calc(100vw + 544px)); }
100% { transform: translateX(calc(100vw + 544px)); }
}
@keyframes status-panda-frames {
to { background-position: -1024px 0; }
}
@keyframes status-panda-touch {
to { background-position: -450px 0; }
}
@keyframes status-panda-bubble-show {
to { opacity: 1; }
}
@keyframes cloud-drift {
from { transform: translateX(-28px); }
to { transform: translateX(28px); }
}
.cloud-drift {
animation: cloud-drift 14s ease-in-out infinite alternate;
}
.cloud-drift-slow {
animation-duration: 18s;
}
@media (prefers-reduced-motion: reduce) {
.cloud-drift,
.cloud-drift-slow {
animation: none;
}
.status-panda-runner {
left: 24px;
animation: none;
}
.status-panda {
animation: none;
}
.status-panda-runner.is-touched .status-panda {
animation: none;
background-position: -450px 0;
}
.status-panda-runner.is-touched .status-panda-bubble {
animation: none;
opacity: 1;
}
}
</style>
</head>
<body class="min-h-screen flex flex-col justify-between selection:bg-[#3F7D20] selection:text-white">
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
<span class="font-press-start text-white text-base md:text-lg tracking-wider drop-shadow-[2px_2px_0px_#000]">
Pacil SMP
</span>
</div>
</header>
<main class="status-main relative flex-grow flex items-center justify-center py-12 px-4 sm:px-6 bg-[#78A7FF] overflow-hidden" role="main">
<div class="absolute inset-0 pointer-events-none select-none overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-10 left-[8%] hidden md:block w-36 h-auto object-contain cloud-drift">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-16 right-[12%] w-48 h-auto object-contain cloud-drift cloud-drift-slow">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-28 left-[40%] hidden sm:block w-28 h-auto object-contain opacity-90 cloud-drift">
<img src="https://cdn.fossy.my.id/public/grass.svg" alt="" class="absolute bottom-0 inset-x-0 w-full h-28 object-cover" style="object-position: center 30%">
</div>
<button type="button" class="status-panda-runner" aria-label="Klik untuk mengelus panda"><span class="status-panda" aria-hidden="true"></span><span class="status-panda-bubble" role="status">Hehe, geli! Elus lagi dong!</span></button>
<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
aria-live="polite">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center">
<svg class="w-16 h-16 animate-check-pop" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Centang hijau tanda berhasil">
<rect x="12" y="3" width="2" height="2" fill="#00AA00"/>
<rect x="11" y="4" width="2" height="2" fill="#55FF55"/>
<rect x="10" y="5" width="2" height="2" fill="#55FF55"/>
<rect x="9" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="8" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="7" y="8" width="2" height="2" fill="#55FF55"/>
<rect x="6" y="9" width="2" height="2" fill="#55FF55"/>
<rect x="5" y="8" width="2" height="2" fill="#55FF55"/>
<rect x="4" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="3" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="2" y="5" width="2" height="2" fill="#00AA00"/>
<rect x="3" y="8" width="2" height="1" fill="#004400"/>
<rect x="5" y="10" width="2" height="1" fill="#004400"/>
<rect x="6" y="11" width="2" height="1" fill="#004400"/>
<rect x="8" y="9" width="2" height="1" fill="#004400"/>
<rect x="10" y="7" width="2" height="1" fill="#004400"/>
<rect x="12" y="5" width="2" height="1" fill="#004400"/>
</svg>
</div>
<div class="inline-block mb-3 px-3 py-1 bg-[#14141A] border-2 border-[#555555]">
<span class="font-pixelify font-bold text-[#FFAA00] text-sm sm:text-base tracking-wider uppercase drop-shadow-[1px_1px_0px_#000]">
Pencapaian Terbuka
</span>
</div>
<h1 id="success-heading"
tabindex="-1"
class="font-press-start text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]">
Autentikasi Berhasil
</h1>
<p class="font-pixelify text-[#2B1D0E] text-lg sm:text-xl md:text-[22px] font-semibold leading-relaxed mb-4">
Kamu seharusnya sudah terautentikasi di Minecraft sekarang.
</p>
<p class="font-pixelify text-[#4A4A4A] text-base sm:text-lg leading-normal">
Kamu bisa menutup halaman ini dan selamat bermain!
</p>
</div>
</main>
<div class="strata-divider" aria-hidden="true"></div>
<footer class="footer-bedrock py-6 px-6 text-center relative z-20">
<div class="max-w-4xl mx-auto flex flex-col items-center gap-3">
<div class="font-press-start text-white text-xs sm:text-sm tracking-wider">
Pacil SMP
</div>
<p class="font-pixelify text-[#C6C6C6] text-sm sm:text-base leading-relaxed tracking-wide max-w-2xl">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const panda = document.querySelector('.status-panda-runner');
if (panda) {
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
panda.classList.add('is-touched');
setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
}
});
</script>
</body>
</html>
+127
View File
@@ -0,0 +1,127 @@
package web
templ LoginSuccess() {
@templ.Raw(`<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Autentikasi Berhasil - Pacil SMP</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/tailwind.css">
</head>
<body class="min-h-screen flex flex-col justify-between bg-canvas text-white font-body overflow-x-hidden selection:bg-[#3F7D20] selection:text-white">
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
<span class="font-display text-white text-base md:text-lg tracking-wider drop-shadow-[2px_2px_0px_#000]">
Pacil SMP
</span>
</div>
</header>
<main class="status-main relative flex-grow flex items-center justify-center py-12 px-4 sm:px-6 bg-[#78A7FF] overflow-hidden" role="main">
<div class="absolute inset-0 pointer-events-none select-none overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-10 left-[8%] hidden md:block w-36 h-auto object-contain cloud-drift">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-16 right-[12%] w-48 h-auto object-contain cloud-drift cloud-drift-slow">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-28 left-[40%] hidden sm:block w-28 h-auto object-contain opacity-90 cloud-drift">
<img src="https://cdn.fossy.my.id/public/grass.svg" alt="" class="absolute bottom-0 inset-x-0 w-full h-28 object-cover" style="object-position: center 30%">
</div>
<button type="button" class="status-panda-runner" aria-label="Klik untuk mengelus panda"><span class="status-panda" aria-hidden="true"></span><span class="status-panda-bubble" role="status">Hehe, geli! Elus lagi dong!</span></button>
<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
aria-live="polite">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center">
<svg class="w-16 h-16 animate-check-pop" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Centang hijau tanda berhasil">
<rect x="12" y="3" width="2" height="2" fill="#00AA00"/>
<rect x="11" y="4" width="2" height="2" fill="#55FF55"/>
<rect x="10" y="5" width="2" height="2" fill="#55FF55"/>
<rect x="9" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="8" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="7" y="8" width="2" height="2" fill="#55FF55"/>
<rect x="6" y="9" width="2" height="2" fill="#55FF55"/>
<rect x="5" y="8" width="2" height="2" fill="#55FF55"/>
<rect x="4" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="3" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="2" y="5" width="2" height="2" fill="#00AA00"/>
<rect x="3" y="8" width="2" height="1" fill="#004400"/>
<rect x="5" y="10" width="2" height="1" fill="#004400"/>
<rect x="6" y="11" width="2" height="1" fill="#004400"/>
<rect x="8" y="9" width="2" height="1" fill="#004400"/>
<rect x="10" y="7" width="2" height="1" fill="#004400"/>
<rect x="12" y="5" width="2" height="1" fill="#004400"/>
</svg>
</div>
<div class="inline-block mb-3 px-3 py-1 bg-[#14141A] border-2 border-[#555555]">
<span class="font-body font-bold text-[#FFAA00] text-sm sm:text-base tracking-wider uppercase drop-shadow-[1px_1px_0px_#000]">
Pencapaian Terbuka
</span>
</div>
<h1 id="success-heading"
tabindex="-1"
class="font-display text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]">
Autentikasi Berhasil
</h1>
<p class="font-body text-[#2B1D0E] text-lg sm:text-xl md:text-[22px] font-semibold leading-relaxed mb-4">
Kamu seharusnya sudah terautentikasi di Minecraft sekarang.
</p>
<p class="font-body text-[#4A4A4A] text-base sm:text-lg leading-normal">
Kamu bisa menutup halaman ini dan selamat bermain!
</p>
</div>
</main>
<div class="strata-divider" aria-hidden="true"></div>
<footer class="footer-bedrock py-6 px-6 text-center relative z-20">
<div class="max-w-4xl mx-auto flex flex-col items-center gap-3">
<div class="font-display text-white text-xs sm:text-sm tracking-wider">
Pacil SMP
</div>
<p class="font-body text-[#C6C6C6] text-sm sm:text-base leading-relaxed tracking-wide max-w-2xl">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const panda = document.querySelector('.status-panda-runner');
if (panda) {
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
panda.classList.add('is-touched');
setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
}
});
</script>
</body>
</html>
`)
}
+161
View File
@@ -0,0 +1,161 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.960
package web
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func LoginSuccess() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.Raw(`<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Autentikasi Berhasil - Pacil SMP</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;600;700&family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/tailwind.css">
</head>
<body class="min-h-screen flex flex-col justify-between bg-canvas text-white font-body overflow-x-hidden selection:bg-[#3F7D20] selection:text-white">
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
<span class="font-display text-white text-base md:text-lg tracking-wider drop-shadow-[2px_2px_0px_#000]">
Pacil SMP
</span>
</div>
</header>
<main class="status-main relative flex-grow flex items-center justify-center py-12 px-4 sm:px-6 bg-[#78A7FF] overflow-hidden" role="main">
<div class="absolute inset-0 pointer-events-none select-none overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-10 left-[8%] hidden md:block w-36 h-auto object-contain cloud-drift">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-16 right-[12%] w-48 h-auto object-contain cloud-drift cloud-drift-slow">
<img src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" class="absolute top-28 left-[40%] hidden sm:block w-28 h-auto object-contain opacity-90 cloud-drift">
<img src="https://cdn.fossy.my.id/public/grass.svg" alt="" class="absolute bottom-0 inset-x-0 w-full h-28 object-cover" style="object-position: center 30%">
</div>
<button type="button" class="status-panda-runner" aria-label="Klik untuk mengelus panda"><span class="status-panda" aria-hidden="true"></span><span class="status-panda-bubble" role="status">Hehe, geli! Elus lagi dong!</span></button>
<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
aria-live="polite">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center">
<svg class="w-16 h-16 animate-check-pop" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Centang hijau tanda berhasil">
<rect x="12" y="3" width="2" height="2" fill="#00AA00"/>
<rect x="11" y="4" width="2" height="2" fill="#55FF55"/>
<rect x="10" y="5" width="2" height="2" fill="#55FF55"/>
<rect x="9" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="8" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="7" y="8" width="2" height="2" fill="#55FF55"/>
<rect x="6" y="9" width="2" height="2" fill="#55FF55"/>
<rect x="5" y="8" width="2" height="2" fill="#55FF55"/>
<rect x="4" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="3" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="2" y="5" width="2" height="2" fill="#00AA00"/>
<rect x="3" y="8" width="2" height="1" fill="#004400"/>
<rect x="5" y="10" width="2" height="1" fill="#004400"/>
<rect x="6" y="11" width="2" height="1" fill="#004400"/>
<rect x="8" y="9" width="2" height="1" fill="#004400"/>
<rect x="10" y="7" width="2" height="1" fill="#004400"/>
<rect x="12" y="5" width="2" height="1" fill="#004400"/>
</svg>
</div>
<div class="inline-block mb-3 px-3 py-1 bg-[#14141A] border-2 border-[#555555]">
<span class="font-body font-bold text-[#FFAA00] text-sm sm:text-base tracking-wider uppercase drop-shadow-[1px_1px_0px_#000]">
Pencapaian Terbuka
</span>
</div>
<h1 id="success-heading"
tabindex="-1"
class="font-display text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]">
Autentikasi Berhasil
</h1>
<p class="font-body text-[#2B1D0E] text-lg sm:text-xl md:text-[22px] font-semibold leading-relaxed mb-4">
Kamu seharusnya sudah terautentikasi di Minecraft sekarang.
</p>
<p class="font-body text-[#4A4A4A] text-base sm:text-lg leading-normal">
Kamu bisa menutup halaman ini dan selamat bermain!
</p>
</div>
</main>
<div class="strata-divider" aria-hidden="true"></div>
<footer class="footer-bedrock py-6 px-6 text-center relative z-20">
<div class="max-w-4xl mx-auto flex flex-col items-center gap-3">
<div class="font-display text-white text-xs sm:text-sm tracking-wider">
Pacil SMP
</div>
<p class="font-body text-[#C6C6C6] text-sm sm:text-base leading-relaxed tracking-wide max-w-2xl">
BUKAN LAYANAN MINECRAFT RESMI. TIDAK DISETUJUI ATAU TERKAIT DENGAN MOJANG ATAU MICROSOFT.
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const panda = document.querySelector('.status-panda-runner');
if (panda) {
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
panda.classList.add('is-touched');
setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
}
});
</script>
</body>
</html>
`).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate
File diff suppressed because one or more lines are too long
+10
View File
@@ -0,0 +1,10 @@
{
"private": true,
"scripts": {
"templ:generate": "go run github.com/a-h/templ/cmd/templ@v0.3.960 generate",
"css:build": "tailwindcss -c tailwind.config.js -i public/tailwind.css -o internal/web/tailwind.css --minify"
},
"devDependencies": {
"tailwindcss": "^3.4.17"
}
}
+594
View File
@@ -0,0 +1,594 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
tailwindcss:
specifier: ^3.4.17
version: 3.4.19
packages:
'@alloc/quick-lru@5.3.0':
resolution: {integrity: sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==}
engines: {node: '>=10'}
'@jridgewell/gen-mapping@0.3.13':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
'@jridgewell/resolve-uri@3.1.2':
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
engines: {node: '>=6.0.0'}
'@jridgewell/sourcemap-codec@1.6.0':
resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}
'@jridgewell/trace-mapping@0.3.31':
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
'@nodelib/fs.scandir@2.1.5':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
'@nodelib/fs.stat@2.0.5':
resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
engines: {node: '>= 8'}
'@nodelib/fs.walk@1.2.8':
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
any-promise@1.3.0:
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
anymatch@3.1.3:
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
engines: {node: '>= 8'}
arg@5.0.2:
resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
binary-extensions@2.3.0:
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
engines: {node: '>=8'}
braces@3.0.3:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
camelcase-css@2.0.1:
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
engines: {node: '>= 6'}
chokidar@3.6.0:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
commander@4.1.1:
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
engines: {node: '>= 6'}
cssesc@3.0.0:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
hasBin: true
didyoumean@1.2.2:
resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
dlv@1.1.3:
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
es-errors@1.3.0:
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
engines: {node: '>= 0.4'}
fast-glob@3.3.3:
resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
engines: {node: '>=8.6.0'}
fastq@1.20.3:
resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==}
fdir@6.5.0:
resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
engines: {node: '>=12.0.0'}
peerDependencies:
picomatch: ^3 || ^4
peerDependenciesMeta:
picomatch:
optional: true
fill-range@7.1.1:
resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
engines: {node: '>=8'}
fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
function-bind@1.1.2:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
glob-parent@5.1.2:
resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
engines: {node: '>= 6'}
glob-parent@6.0.2:
resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
engines: {node: '>=10.13.0'}
hasown@2.0.4:
resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==}
engines: {node: '>= 0.4'}
is-binary-path@2.1.0:
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
engines: {node: '>=8'}
is-core-module@2.17.0:
resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==}
engines: {node: '>= 0.4'}
is-extglob@2.1.1:
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
is-glob@4.0.3:
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
is-number@7.0.0:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
jiti@1.21.7:
resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
hasBin: true
lilconfig@3.1.3:
resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
engines: {node: '>=14'}
lines-and-columns@1.2.4:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
merge2@1.4.1:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
micromatch@4.0.8:
resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
engines: {node: '>=8.6'}
mz@2.7.0:
resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
nanoid@3.3.19:
resolution: {integrity: sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
normalize-path@3.0.0:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
object-assign@4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
object-hash@3.0.0:
resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
engines: {node: '>= 6'}
path-parse@1.0.7:
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
picocolors@1.1.1:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
picomatch@2.3.2:
resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
engines: {node: '>=8.6'}
picomatch@4.0.7:
resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
engines: {node: '>=12'}
pirates@4.0.7:
resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}
engines: {node: '>= 6'}
postcss-import@15.1.0:
resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
engines: {node: '>=14.0.0'}
peerDependencies:
postcss: ^8.0.0
postcss-js@4.1.0:
resolution: {integrity: sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==}
engines: {node: ^12 || ^14 || >= 16}
peerDependencies:
postcss: ^8.4.21
postcss-load-config@6.0.1:
resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
engines: {node: '>= 18'}
peerDependencies:
jiti: '>=1.21.0'
postcss: '>=8.0.9'
tsx: ^4.8.1
yaml: ^2.4.2
peerDependenciesMeta:
jiti:
optional: true
postcss:
optional: true
tsx:
optional: true
yaml:
optional: true
postcss-nested@6.2.0:
resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}
engines: {node: '>=12.0'}
peerDependencies:
postcss: ^8.2.14
postcss-selector-parser@6.1.4:
resolution: {integrity: sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==}
engines: {node: '>=4'}
postcss-value-parser@4.2.0:
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
postcss@8.5.28:
resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==}
engines: {node: ^10 || ^12 || >=14}
queue-microtask@1.2.3:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
read-cache@1.0.2:
resolution: {integrity: sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==}
readdirp@3.6.0:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
resolve@1.22.12:
resolution: {integrity: sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==}
engines: {node: '>= 0.4'}
hasBin: true
reusify@1.1.0:
resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
source-map-js@1.2.2:
resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
engines: {node: '>=0.10.0'}
sucrase@3.35.1:
resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==}
engines: {node: '>=16 || 14 >=14.17'}
hasBin: true
supports-preserve-symlinks-flag@1.0.0:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
tailwindcss@3.4.19:
resolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==}
engines: {node: '>=14.0.0'}
hasBin: true
thenify-all@1.6.0:
resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
engines: {node: '>=0.8'}
thenify@3.3.1:
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
tinyglobby@0.2.17:
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
engines: {node: '>=12.0.0'}
to-regex-range@5.0.1:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
ts-interface-checker@0.1.13:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
snapshots:
'@alloc/quick-lru@5.3.0': {}
'@jridgewell/gen-mapping@0.3.13':
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
'@jridgewell/trace-mapping': 0.3.31
'@jridgewell/resolve-uri@3.1.2': {}
'@jridgewell/sourcemap-codec@1.6.0': {}
'@jridgewell/trace-mapping@0.3.31':
dependencies:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.6.0
'@nodelib/fs.scandir@2.1.5':
dependencies:
'@nodelib/fs.stat': 2.0.5
run-parallel: 1.2.0
'@nodelib/fs.stat@2.0.5': {}
'@nodelib/fs.walk@1.2.8':
dependencies:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.20.3
any-promise@1.3.0: {}
anymatch@3.1.3:
dependencies:
normalize-path: 3.0.0
picomatch: 2.3.2
arg@5.0.2: {}
binary-extensions@2.3.0: {}
braces@3.0.3:
dependencies:
fill-range: 7.1.1
camelcase-css@2.0.1: {}
chokidar@3.6.0:
dependencies:
anymatch: 3.1.3
braces: 3.0.3
glob-parent: 5.1.2
is-binary-path: 2.1.0
is-glob: 4.0.3
normalize-path: 3.0.0
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
commander@4.1.1: {}
cssesc@3.0.0: {}
didyoumean@1.2.2: {}
dlv@1.1.3: {}
es-errors@1.3.0: {}
fast-glob@3.3.3:
dependencies:
'@nodelib/fs.stat': 2.0.5
'@nodelib/fs.walk': 1.2.8
glob-parent: 5.1.2
merge2: 1.4.1
micromatch: 4.0.8
fastq@1.20.3:
dependencies:
reusify: 1.1.0
fdir@6.5.0(picomatch@4.0.7):
optionalDependencies:
picomatch: 4.0.7
fill-range@7.1.1:
dependencies:
to-regex-range: 5.0.1
fsevents@2.3.3:
optional: true
function-bind@1.1.2: {}
glob-parent@5.1.2:
dependencies:
is-glob: 4.0.3
glob-parent@6.0.2:
dependencies:
is-glob: 4.0.3
hasown@2.0.4:
dependencies:
function-bind: 1.1.2
is-binary-path@2.1.0:
dependencies:
binary-extensions: 2.3.0
is-core-module@2.17.0:
dependencies:
hasown: 2.0.4
is-extglob@2.1.1: {}
is-glob@4.0.3:
dependencies:
is-extglob: 2.1.1
is-number@7.0.0: {}
jiti@1.21.7: {}
lilconfig@3.1.3: {}
lines-and-columns@1.2.4: {}
merge2@1.4.1: {}
micromatch@4.0.8:
dependencies:
braces: 3.0.3
picomatch: 2.3.2
mz@2.7.0:
dependencies:
any-promise: 1.3.0
object-assign: 4.1.1
thenify-all: 1.6.0
nanoid@3.3.19: {}
normalize-path@3.0.0: {}
object-assign@4.1.1: {}
object-hash@3.0.0: {}
path-parse@1.0.7: {}
picocolors@1.1.1: {}
picomatch@2.3.2: {}
picomatch@4.0.7: {}
pirates@4.0.7: {}
postcss-import@15.1.0(postcss@8.5.28):
dependencies:
postcss: 8.5.28
postcss-value-parser: 4.2.0
read-cache: 1.0.2
resolve: 1.22.12
postcss-js@4.1.0(postcss@8.5.28):
dependencies:
camelcase-css: 2.0.1
postcss: 8.5.28
postcss-load-config@6.0.1(jiti@1.21.7)(postcss@8.5.28):
dependencies:
lilconfig: 3.1.3
optionalDependencies:
jiti: 1.21.7
postcss: 8.5.28
postcss-nested@6.2.0(postcss@8.5.28):
dependencies:
postcss: 8.5.28
postcss-selector-parser: 6.1.4
postcss-selector-parser@6.1.4:
dependencies:
cssesc: 3.0.0
util-deprecate: 1.0.2
postcss-value-parser@4.2.0: {}
postcss@8.5.28:
dependencies:
nanoid: 3.3.19
picocolors: 1.1.1
source-map-js: 1.2.2
queue-microtask@1.2.3: {}
read-cache@1.0.2: {}
readdirp@3.6.0:
dependencies:
picomatch: 2.3.2
resolve@1.22.12:
dependencies:
es-errors: 1.3.0
is-core-module: 2.17.0
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
reusify@1.1.0: {}
run-parallel@1.2.0:
dependencies:
queue-microtask: 1.2.3
source-map-js@1.2.2: {}
sucrase@3.35.1:
dependencies:
'@jridgewell/gen-mapping': 0.3.13
commander: 4.1.1
lines-and-columns: 1.2.4
mz: 2.7.0
pirates: 4.0.7
tinyglobby: 0.2.17
ts-interface-checker: 0.1.13
supports-preserve-symlinks-flag@1.0.0: {}
tailwindcss@3.4.19:
dependencies:
'@alloc/quick-lru': 5.3.0
arg: 5.0.2
chokidar: 3.6.0
didyoumean: 1.2.2
dlv: 1.1.3
fast-glob: 3.3.3
glob-parent: 6.0.2
is-glob: 4.0.3
jiti: 1.21.7
lilconfig: 3.1.3
micromatch: 4.0.8
normalize-path: 3.0.0
object-hash: 3.0.0
picocolors: 1.1.1
postcss: 8.5.28
postcss-import: 15.1.0(postcss@8.5.28)
postcss-js: 4.1.0(postcss@8.5.28)
postcss-load-config: 6.0.1(jiti@1.21.7)(postcss@8.5.28)
postcss-nested: 6.2.0(postcss@8.5.28)
postcss-selector-parser: 6.1.4
resolve: 1.22.12
sucrase: 3.35.1
transitivePeerDependencies:
- tsx
- yaml
thenify-all@1.6.0:
dependencies:
thenify: 3.3.1
thenify@3.3.1:
dependencies:
any-promise: 1.3.0
tinyglobby@0.2.17:
dependencies:
fdir: 6.5.0(picomatch@4.0.7)
picomatch: 4.0.7
to-regex-range@5.0.1:
dependencies:
is-number: 7.0.0
ts-interface-checker@0.1.13: {}
util-deprecate@1.0.2: {}
+1324
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -0,0 +1,27 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./internal/web/**/*.{html,js,templ}",
"./public/*.js"
],
theme: {
extend: {
colors: {
canvas: "#1B1B22",
"on-surface": "#FFFFFF",
surface: "#2A2A33",
"surface-inset": "#14141A",
"plank-dark": "#4B3621",
"grass-green": "#5B9B2F",
parchment: "#EADBB0",
"on-parchment": "#2B1D0E",
},
fontFamily: {
display: ["Press Start 2P", "monospace"],
body: ["Pixelify Sans", "system-ui", "sans-serif"],
mono: ["VT323", "monospace"],
},
},
},
plugins: [],
}