Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions apps/web/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { GradientButton } from "@/components/gradient-button";
import Footer from "@/components/navigate/footer";
import Navbar from "@/components/navigate/navbar";
import dynamic from "next/dynamic";
import Link from "next/link";

const Hero = dynamic(() => import("../components/landing/hero"));
const WhatIs = dynamic(() => import("../components/landing/what-is"));
Expand Down Expand Up @@ -39,15 +41,11 @@ export default function Home() {
},
]}
extra={
<div className="font-noto-sans-thai-looped cursor-not-allowed select-none rounded-lg border border-dashed px-4 py-2 text-white">
ปิดรับสมัครแล้ว
</div>
// TODO: Uncomment this when open confirmation
// <Link href="/register">
// <GradientButton className="flex gap-4 rounded-xl px-4 text-sm">
// <p className="text-sm">ตรวจสอบผลการคัดเลือก!</p>
// </GradientButton>
// </Link>
<Link href="/register">
<GradientButton className="flex gap-4 rounded-xl px-4 text-sm">
<p className="text-sm">ตรวจสอบผลการคัดเลือก!</p>
</GradientButton>
</Link>
}
/>
</div>
Expand Down
9 changes: 5 additions & 4 deletions apps/web/src/app/register/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
"use client";

import { Tilt } from "@/components/card/tilt-card";
import { GradientButton } from "@/components/gradient-button";
import { Card } from "@/components/ui/card";
import { Separator } from "@/components/ui/separator";
import { Skeleton } from "@/components/ui/skeleton";
import { fetchQuery } from "@/libs/server/client";
import { Mail } from "lucide-react";
import { Mail, SearchIcon } from "lucide-react";
import Image from "next/image";
import Link from "next/link";

function RegisterPage() {
const { data, isPending, isError } = fetchQuery.useQuery("get", "/auth/me");
Expand Down Expand Up @@ -87,14 +89,13 @@ function RegisterPage() {
</div>
</div>

{/* TODO: Uncomment this when open confirmation */}
{/* <div className="flex w-full max-w-full items-center justify-center pt-10">
<div className="flex w-full max-w-full items-center justify-center pt-10">
<Link href="/confirm">
<GradientButton className="flex gap-4 rounded-xl px-20 py-4">
<SearchIcon /> <p>ตรวจสอบผลการคัดเลือก!</p>
</GradientButton>
</Link>
</div> */}
</div>
</Card>
);
}
Expand Down
Loading