From 42d3f621728cf0b4d1164f29fd03779a73bc6c11 Mon Sep 17 00:00:00 2001 From: CyberSleeper Date: Mon, 23 Oct 2023 20:09:44 +0700 Subject: [PATCH] Add extend regis --- src/pages/index.tsx | 11 ++++++----- src/pages/registration.tsx | 15 ++++++++------- src/sections/registration/FAQ.tsx | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ef00a09..0e71764 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -9,8 +9,9 @@ import WTS from "@/sections/home/WTS"; import VideoOH from "@/sections/home/VideoOH"; export default function Home() { - const countdown = new Date(process.env.NEXT_PUBLIC_OPEN_REG_1 || "2023-10-17T12:00:00+0700") - const next_countdown = new Date(process.env.NEXT_PUBLIC_CLOSE_REG_1 || "2023-10-21T23:59:59+0700") + const bef_countdown = new Date(process.env.NEXT_PUBLIC_OPEN_REG_1 || "2023-10-17T12:00:00+0700") + const countdown = new Date(process.env.NEXT_PUBLIC_OPEN_REG_2 || "2023-10-17T12:00:00+0700") + const next_countdown = new Date(process.env.NEXT_PUBLIC_CLOSE_REG_2 || "2023-10-21T23:59:59+0700") const is_counting = new Date() < countdown const open_reg = new Date() < next_countdown @@ -25,10 +26,10 @@ export default function Home() { FASILKOM 2023
-

{is_counting ? "Open registration" : <>{open_reg ? "Registration will be closed" : "Registration closed"}}

+

{is_counting ? "Registration closed" : <>{open_reg ? "Registration is extended" : "Registration closed"}}

- -

{is_counting ? "17 Oktober 2023, 12:00 GMT+7" : "21 Oktober 2023, 23:59 GMT+7"}

+ +

{is_counting ? "21 Oktober 2023, 23:59 GMT+7" : "1 November 2023, 23:59 GMT+7"}

diff --git a/src/pages/registration.tsx b/src/pages/registration.tsx index 109f693..e2dfc66 100644 --- a/src/pages/registration.tsx +++ b/src/pages/registration.tsx @@ -10,8 +10,9 @@ import FAQ from "@/sections/registration/FAQ"; import ContactPerson from "@/sections/registration/ContactPerson"; export default function Home() { - const countdown = new Date(process.env.NEXT_PUBLIC_OPEN_REG_1 || "2023-10-17T12:00:00+0700") - const next_countdown = new Date(process.env.NEXT_PUBLIC_CLOSE_REG_1 || "2023-10-21T23:59:59+0700") + const bef_countdown = new Date(process.env.NEXT_PUBLIC_OPEN_REG_1 || "2023-10-17T12:00:00+0700") + const countdown = new Date(process.env.NEXT_PUBLIC_OPEN_REG_2 || "2023-10-17T12:00:00+0700") + const next_countdown = new Date(process.env.NEXT_PUBLIC_CLOSE_REG_2 || "2023-10-21T23:59:59+0700") const is_counting = new Date() < countdown const open_reg = new Date() < next_countdown @@ -28,10 +29,10 @@ export default function Home() {
-

{is_counting ? "Open registration" : <>{open_reg ? "" : "Registration closed"}}

+

{is_counting ? "Registration closed" : <>{open_reg ? "Registration is extended" : "Registration closed"}}

- -

{is_counting ? "17 Oktober 2023, 12:00 GMT+7" : "21 Oktober 2023, 23:59 GMT+7"}

+ +

{is_counting ? "21 Oktober 2023, 23:59 GMT+7" : "1 November 2023, 23:59 GMT+7"}

@@ -46,8 +47,8 @@ export default function Home() { className="opacity-30 font-satoshi font-bold sm:w-auto w-full" onClick={() => { notifications.show({ - title: 'Hi AInergic, sesaat lagi registrasi Open House Fasilkom UI akan dibuka', - message: 'Silahkan cek lagi web page ini pada pukul 12.00 WIB, 17 Oktober yaa. See you soon!', + title: 'Hi AInergic untuk sekarang registrasi telah ditutup yaa', + message: 'Bagi kalian yang masih ingin menjadi bagian dari Open House Fasilkom UI, tunggu kabar dari kami yaa', color: "red" }) }} diff --git a/src/sections/registration/FAQ.tsx b/src/sections/registration/FAQ.tsx index a75efcc..2f8340f 100644 --- a/src/sections/registration/FAQ.tsx +++ b/src/sections/registration/FAQ.tsx @@ -19,7 +19,7 @@ const contentData: { }, { header: "Batas waktu pendaftaran sampai kapan?", - body: `Untuk batas pendaftaran cuma sampai tanggal 21 Oktober 2023, Yuk langsung aja daftar!`, + body: `Untuk batas pendaftaran cuma sampai tanggal 1 November 2023, Yuk langsung aja daftar!`, }, { header: "Semigap/Gapyear boleh ikut?",