Skip to content

Commit 349af1b

Browse files
update: added link for CTF website
1 parent e6306e4 commit 349af1b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/pages/home/Root.jsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState, useRef } from "react";
22
import Particles from "../../components/Particle/Particle";
33
import Typewriters from "typewriter-effect";
44
import { Typewriter } from "react-simple-typewriter";
5+
import { Alert } from "@material-tailwind/react";
56
import {
67
Card,
78
CardBody,
@@ -34,10 +35,55 @@ function Root() {
3435
}
3536
}
3637

38+
function Icon() {
39+
return (
40+
<svg
41+
xmlns="http://www.w3.org/2000/svg"
42+
fill="none"
43+
viewBox="0 0 24 24"
44+
strokeWidth={2}
45+
stroke="currentColor"
46+
className="h-6 w-6"
47+
>
48+
<path
49+
strokeLinecap="round"
50+
strokeLinejoin="round"
51+
d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
52+
/>
53+
</svg>
54+
);
55+
}
56+
57+
3758
return (
3859
<>
3960
<Particles />
61+
62+
<div className="flex justify-center items-center font-space mt-5">
63+
<Alert
64+
className="bg-[#000000] w-[80%] opacity-80"
65+
open={open}
66+
icon={<Icon />}
67+
action={
68+
<Button
69+
variant="text"
70+
color="white"
71+
size="xl"
72+
className="!absolute top-3 right-3"
73+
onClick={()=>{
74+
window.location.href="https://ctf.lugvitc.org"
75+
}}
76+
href=''
77+
>
78+
Visit
79+
</Button>
80+
}
81+
>
82+
Password'24 is live. CTF starts at January 29'2024 18:00:00. Go visit.
83+
</Alert>
84+
</div>
4085
<div className="flex flex-row flex-wrap ">
86+
4187
<div className="flex justify-center items-center flex-wrap sm:w-7/12 sm:h-[60vh]">
4288
<div className="w-full md:w-8/12 lg:w-6/12 xl:w-6/12 px-4">
4389
<div className="pt-32 sm:pt-0">

0 commit comments

Comments
 (0)