Skip to content

Commit

Permalink
feat: change time
Browse files Browse the repository at this point in the history
  • Loading branch information
ttamx committed May 10, 2024
1 parent 0eb8da9 commit 528631e
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import logo from "../assets/GEANDEV.png";
<main class="w-full text-white bg-slate-800">
<div class="h-screen" id="greet">
<div class="h-full flex justify-center items-center flex-col text-center">
<Image src={logo} alt="logo" class="w-1/5 h-1/3 object-cover" />
<Image src={logo} alt="logo" class="object-cover"
style="max-width: 300px;"
/>
<h1 class="text-5xl font-bold">
Pre TOI<span class="line-through">19</span><span class="text-red-300"
Pre TOI <span class="line-through">19</span><span class="text-red-300"
>20</span
> by <span class="text-orange-500"
><a
Expand All @@ -34,14 +36,14 @@ import logo from "../assets/GEANDEV.png";
จัดขึ้น
<span
><a
href="https://www.timeanddate.com/worldclock/fixedtime.html?msg=Pre+TOI19+by+Gean+Dev&iso=20230507T19&p1=1049&ah=3"
href="https://www.timeanddate.com/worldclock/fixedtime.html?msg=Pre+TOI+20+Day+1&iso=20240511T18&p1=28&ah=5"
target="_blank"
rel="noopener">
<span class="text-blue-400">วันนั้น</span>
</a>
และ
<a
href="https://www.timeanddate.com/worldclock/fixedtime.html?msg=Pre+TOI19+by+Gean+Dev&iso=20230507T19&p1=1049&ah=3"
href="https://www.timeanddate.com/worldclock/fixedtime.html?msg=Pre+TOI+20+Day+2&iso=20240512T18&p1=28&ah=5"
target="_blank"
rel="noopener">
<span class="text-blue-400">วันนู้น</span>
Expand All @@ -54,6 +56,9 @@ import logo from "../assets/GEANDEV.png";
<p class="text-white text-lg">ดูอันดับการแข่งขัน</p>
</a>
</button> -->
<p class="mt-5 text-sm">
(เลื่อนลง)
</p>
</div>
</div>

Expand Down Expand Up @@ -84,10 +89,11 @@ import logo from "../assets/GEANDEV.png";
โจทย์ had been <span class="text-pink-300">ทดสอบed</span> by
</h2>
<!-- <p class="text-2xl pt-1 font-bold text-purple-400">peteza</p> -->
<p class="text-2xl pt-1 font-bold text-yellow-500">pakpim</p>
<p class="text-2xl pt-1 font-bold text-purple-400">pakpim</p>
<p class="text-2xl pt-1 font-bold text-yellow-500">peteza</p>
<h2 class="text-3xl font-bold pt-3 text-slate-800">Sponsored โดย</h2>
<a href="#prize"
><p class="text-2xl pt-1 font-bold text-slate-800">Anon-136</p></a
><p class="text-2xl pt-1 font-bold text-slate-800">anon136</p></a
>
</div>
</div>
Expand Down
77 changes: 77 additions & 0 deletions src/pages/promote.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
import Layout from "../layouts/Layout.astro";
import ArrowLeft from "@astropub/icons/ArrowLeft";
import { Image } from "astro:assets";
import logo from "../assets/GEANDEV.png";
---

<Layout title="Gean Dev Pre TOI20">
<main class="w-full text-white bg-slate-800">
<div class="h-screen" id="greet">
<div class="h-full flex justify-center items-center flex-col text-center">
<Image src={logo} alt="logo" class="object-cover"
style="max-width: 300px;"
/>
<h1 class="text-5xl font-bold">
Pre TOI <span class="line-through">19</span><span class="text-red-300"
>20</span
> by <span class="text-orange-500"
><a
href="https://github.com/gean-dev"
target="_blank"
rel="noopener">Gean Dev</a
></span
>
</h1>
<h2 class="text-3xl pt-4">
Gean Dev by Admin <span class="text-red-500"
><a href="https://โอถอก.ไทย" target="_blank" rel="noopener"
>OTOG©</a
></span
>
</h2>
<div class="text-2xl pt-3">
<p>
จัดขึ้น
<span
><a
href="https://www.timeanddate.com/worldclock/fixedtime.html?msg=Pre+TOI+20+Day+1&iso=20240511T18&p1=28&ah=5"
target="_blank"
rel="noopener">
<span class="text-blue-400">11-12 May 2024</span>
<span class="text-pink-300">18:00-23:00 </span>
<span class="text-yellow-500">GMT+7</span>
</a>
<span><a href="#about">😱</a></span>
</span>
</p>
<p class="text-2xl font-bold my-2 text-purple-300">
Registration link at bio
</p>
<!-- <button class="rounded-md bg-green-600 px-4 py-2 my-3">
<a href="ranking/" target="_blank" rel="noopener">
<p class="text-white text-lg">ดูอันดับการแข่งขัน</p>
</a>
</button> -->
</div>
</div>
</div>
</main>

<script>
document.getElementById("reveal-prize")!.addEventListener("click", () => {
if (document.getElementById("reveal-prize")!.innerHTML != "ไม่มี 😭") {
document.getElementById("reveal-prize")!.innerHTML = "ไม่มี 😭";
document
.getElementById("reveal-prize")!
.classList.remove("bg-purple-400");
document.getElementById("reveal-prize")!.classList.add("text-8xl");
} else {
document
.querySelector("#register")!
.scrollIntoView({ behavior: "smooth" });
}
});
</script></Layout
>

0 comments on commit 528631e

Please sign in to comment.