@@ -3,77 +3,80 @@ import Link from "next/link";
33import logo from "../../public/cc-logo.svg" ;
44
55export default function HomePage ( ) {
6+
67 return (
7- < main className = "flex min-h-screen flex-col items-center justify-center p-8" >
8- < div className = "w-full max-w-xl rounded-lg bg-white p-8 text-center text-black shadow-lg" >
9- < Image
10- src = { logo as HTMLImageElement }
11- alt = "CodeChef-VIT Logo"
12- width = { 150 }
13- height = { 150 }
14- className = "mx-auto mb-4"
15- />
16- < h1 className = "mb-4 text-6xl font-bold" > CodeChef-VIT</ h1 >
17- < p className = "mb-6 text-2xl" > Portal Template Repository</ p >
18- < p className = "mb-2 text-lg font-semibold text-gray-700" >
19- TanStack Query is Initialised in this Repository
20- </ p >
21- < div className = "flex flex-row gap-2" >
22- < Link
23- href = "/todo"
24- className = "mx-auto w-fit rounded-md bg-gray-100 p-3 text-lg font-medium text-indigo-600 transition-all duration-200 hover:bg-gray-200 hover:text-indigo-800 active:scale-95"
25- >
26- Sample GET Request
27- </ Link >
28- < Link
29- href = "/post"
30- className = "mx-auto w-fit rounded-md bg-gray-100 p-3 text-lg font-medium text-indigo-600 transition-all duration-200 hover:bg-gray-200 hover:text-indigo-800 active:scale-95"
31- >
32- Sample POST Request
33- </ Link >
34- </ div >
35-
36- < div className = "mt-2" >
37- < p className = "text-lg font-semibold text-gray-700" >
38- Shadcn is Initialised in this Repository
8+ < >
9+ < main className = "flex min-h-screen flex-col items-center justify-center p-8" >
10+ < div className = "w-full max-w-xl rounded-lg bg-white p-8 text-center text-black shadow-lg" >
11+ < Image
12+ src = { logo as HTMLImageElement }
13+ alt = "CodeChef-VIT Logo"
14+ width = { 150 }
15+ height = { 150 }
16+ className = "mx-auto mb-4"
17+ />
18+ < h1 className = "mb-4 text-6xl font-bold" > CodeChef-VIT</ h1 >
19+ < p className = "mb-6 text-2xl" > Portal Template Repository</ p >
20+ < p className = "mb-2 text-lg font-semibold text-gray-700" >
21+ TanStack Query is Initialised in this Repository
3922 </ p >
40- < p className = "mt-4 text-gray-700" >
41- Custom toast hook is created. You can use it by importing{ " " }
42- < code className = "rounded bg-gray-100 p-1" > useToast</ code > from{ " " }
43- < code className = "rounded bg-gray-100 p-1" >
44- "@/lib/toast.tsx"
45- </ code > { " " }
46- and then calling the create method with message and type as
47- arguments.
48- </ p >
49- < div className = "mt-4 text-gray-700" >
50- < p > Example: </ p >
51- < div className = "rounded-md bg-gray-100 p-2 text-left" >
52- < p >
53- < span className = "text-blue-600" > const</ span > { " " }
54- < span className = "text-green-600" > toast</ span > ={ " " }
55- < span className = "text-blue-600" > useToast</ span > ();
56- </ p >
57- < p >
58- < span className = "text-green-600" > toast</ span > .
59- < span className = "text-blue-600" > create</ span > (
60- < span className = "text-red-600" > "Hello World"</ span > ,{ " " }
61- < span className = "text-red-600" > "success"</ span > );
62- </ p >
23+ < div className = "flex flex-row gap-2" >
24+ < Link
25+ href = "/todo"
26+ className = "mx-auto w-fit rounded-md bg-gray-100 p-3 text-lg font-medium text-indigo-600 transition-all duration-200 hover:bg-gray-200 hover:text-indigo-800 active:scale-95"
27+ >
28+ Sample GET Request
29+ </ Link >
30+ < Link
31+ href = "/post"
32+ className = "mx-auto w-fit rounded-md bg-gray-100 p-3 text-lg font-medium text-indigo-600 transition-all duration-200 hover:bg-gray-200 hover:text-indigo-800 active:scale-95"
33+ >
34+ Sample POST Request
35+ </ Link >
36+ </ div >
37+
38+ < div className = "mt-2" >
39+ < p className = "text-lg font-semibold text-gray-700" >
40+ Shadcn is Initialised in this Repository
41+ </ p >
42+ < p className = "mt-4 text-gray-700" >
43+ Custom toast hook is created. You can use it by importing{ " " }
44+ < code className = "rounded bg-gray-100 p-1" > useToast</ code > from{ " " }
45+ < code className = "rounded bg-gray-100 p-1" >
46+ "@/lib/toast.tsx"
47+ </ code > { " " }
48+ and then calling the create method with message and type as
49+ arguments.
50+ </ p >
51+ < div className = "mt-4 text-gray-700" >
52+ < p > Example: </ p >
53+ < div className = "rounded-md bg-gray-100 p-2 text-left" >
54+ < p >
55+ < span className = "text-blue-600" > const</ span > { " " }
56+ < span className = "text-green-600" > toast</ span > ={ " " }
57+ < span className = "text-blue-600" > useToast</ span > ();
58+ </ p >
59+ < p >
60+ < span className = "text-green-600" > toast</ span > .
61+ < span className = "text-blue-600" > create</ span > (
62+ < span className = "text-red-600" > "Hello World"</ span > ,{ " " }
63+ < span className = "text-red-600" > "success"</ span > );
64+ </ p >
65+ </ div >
6366 </ div >
67+ < p className = "mt-4 text-gray-700" >
68+ There are 3 variants configured:{ " " }
69+ < span className = "font-bold" > success</ span > ,{ " " }
70+ < span className = "font-bold" > error</ span > , and{ " " }
71+ < span className = "font-bold" > info</ span > .
72+ </ p >
73+ < p className = "mt-4 text-gray-700" >
74+ You can add more in{ " " }
75+ < code className = "rounded bg-gray-100 p-1" > toast.tsx</ code > file
76+ </ p >
6477 </ div >
65- < p className = "mt-4 text-gray-700" >
66- There are 3 variants configured:{ " " }
67- < span className = "font-bold" > success</ span > ,{ " " }
68- < span className = "font-bold" > error</ span > , and{ " " }
69- < span className = "font-bold" > info</ span > .
70- </ p >
71- < p className = "mt-4 text-gray-700" >
72- You can add more in{ " " }
73- < code className = "rounded bg-gray-100 p-1" > toast.tsx</ code > file
74- </ p >
7578 </ div >
76- </ div >
77- </ main >
79+ </ main >
80+ </ >
7881 ) ;
7982}
0 commit comments