-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHeroSection.jsx
124 lines (115 loc) · 4.09 KB
/
HeroSection.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
"use client"
import clsx from 'clsx';
import { TypewriterEffect } from './ui/typewriter-effect';
import Partners from './Partners';
import { Highlight } from '@components/ui/hero-highlight';
import React from 'react';
const HeroSection = () => {
React.useEffect(() => {
const script = document.createElement('script');
script.src = 'https://apply.devfolio.co/v2/sdk.js';
script.async = true;
script.defer = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
}
}, []);
const words = [
{
text: 'Web',
},
{
text: '3.0',
},
{
text: 'Summer',
},
{
text: 'School',
},
{
text: '&',
},
{
text: 'Hackathon',
className: 'text-blue-500',
},
];
return (
<div
className={clsx(
'flex flex-col items-center justify-start h-[calc(100vh-200px)] sm:h-fit z-10 text-white',
'lg:justify-start ',
'pt-0',
)}
>
<TypewriterEffect
words={words}
className="px-10 min-h-[220px] sm:min-h-[160px] lg:min-h-[100px]"
/>
<div className="text-2xl lg:text-3xl mb-6 text-center text-white font-sans font-semibold">
Organized by IIIT SriCity
</div>
<div className="text-md lg:text-2xl text-center xl:w-2/5 lg:w-1/2 sm:w-3/5 max-[375px]:w-4/5 w-3/4 text-white">
Building the future, one block at a time! {<br />}Join us for a week of
learning and fun.
</div>
<div>
<div className="mt-8">
{/* todo, work in progress */}
<div className="text-lg sm:text-xl text-center font-sans font-medium ">
Summer School: 29th July to 3rd August
</div>
<div className="text-lg sm:text-xl text-center font-sans font-medium ">
Hackathon: 7th August to 9th August
</div>
</div>
</div>
<div className="my-2">
<div className="mt-10 lg:mt-10 flex flex-col md:flex-row space-y-4 md:space-y-0 space-x-0 md:space-x-4 items-center justify-center">
<a href="/register">
<button className="w-64 transform hover:-translate-y-1 transition duration-400 relative inline-flex sm:h-16 overflow-hidden rounded-full p-[2px] focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:ring-offset-slate-50">
<span className="absolute inset-[-1000%] animate-[spin_2s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,#E2CBFF_0%,#393BB2_50%,#E2CBFF_100%)]" />
<span className="inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-slate-950 pl-12 pr-8 py-4 sm:text-lg font-semibold text-white backdrop-blur-3xl text-lg">
Register Now
<svg
width="32"
height="32"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
d="M10.75 8.75L14.25 12L10.75 15.25"
></path>
</svg>
</span>
</button>
</a>
{/* <div
className="apply-button"
data-hackathon-slug="web3ssh"
data-button-theme="light"
style={{ height: "44px", width: "312px" }}
bg-[#3770FF]
></div> */}
<a href='https://web3ssh.devfolio.co/' target='_blank'>
<button className='w-full h-full bg-[#3770FF] flex items-center justify-center p-3 text-lg rounded-full'>
<span>
<img src='https://avatars.githubusercontent.com/u/38809367?v=4' height="30px" width="30px" className='inline'/>
Apply with Devfolio
</span>
<span className='text-lg'> <Hackathon> </span>
</button>
</a>
</div>
</div>
</div>
);
};
export default HeroSection;