-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
133 lines (126 loc) · 4.95 KB
/
index.tsx
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
125
126
127
128
129
130
131
132
133
import Image from 'next/image';
import { resourceCards, stage1, stage2, stage3 } from '../../../public/data/resourceCards';
const boxStyling =
'border border-[#595F6D] rounded-lg hover:border-[#788093] hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300';
// const socialsBoxStyling =
// 'xl:col-span-1 col-span-3 flex justify-center pt-2 pb-2 border border-[#595F6D] hover:border-[#788093] rounded-lg hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300';
const logostyle =
'grow-on-hover cursor-pointer transform transition-transform duration-300 hover:scale-105';
const Resources = () => {
return (
<section className="bg-no-repeat bg-center py-8 px-15 min-h-screen flex justify-center items-center">
<div className="2xl:w-[90rem] xl:w-[75rem] w-[90%]">
<div className="relative">
<Image src="assets/resources_bg.svg" alt="Background" className="-z-50 absolute" fill />
<div className="text-center my-10">
<h2 className="font-bold text-6xl">RESOURCES</h2>
</div>
<div className="flex">
<span className="text-lg">Made by</span>
<Image
src="/assets/csesoc_logo.svg"
alt="CSESoc Logo"
width={100}
height={100}
className="pl-2"
/>
</div>
<div className="py-8 bg-no-repeat bg-center">
<div className="grid grid-cols-4 1 gap-x-9 gap-y-5">
{stage3.map((item: resourceCards) => {
return (
<a
key={item.id}
href={item.href}
target="_blank"
className={`md:col-span-2 col-span-4 p-5 ${boxStyling} flex`}
>
<div className="flex align-middle items-center pt-2 pb-4 pr-10">
<Image
src={item.svg}
alt={item.alt}
draggable="false"
width={item.width}
height={item.height}
className="rounded-md"
/>
</div>
<div>
<h2 className="mt-5 text-3xl font-extrabold">{item.title}</h2>
<p className="mt-7 text-lg mb-5">{item.desc}</p>
</div>
</a>
);
})}
</div>
</div>
<a href="https://devsoc.app/" target="_blank" rel="noopener noreferrer">
<div className={`flex ${logostyle}`}>
<span className="text-lg">Made by</span>
<Image
src="/assets/devsoc_logo.svg"
alt="DevSoc Logo"
width={110}
height={110}
className="pl-1"
/>
</div>
</a>
<div className="py-8 bg-no-repeat bg-center">
<div className="grid grid-cols-4 1 gap-x-9 gap-y-5">
{stage1.map((item: resourceCards) => {
return (
<a
key={item.id}
href={item.href}
target="_blank"
className={`col-span-4 p-5 ${boxStyling} flex`}
>
<div className="flex justify-center align-middle items-center pl-2 pr-10">
<Image
src={item.svg}
alt={item.alt}
draggable="false"
width={item.width}
height={item.height}
/>
</div>
<div>
<h2 className="mt-5 text-3xl font-extrabold">{item.title}</h2>
<p className="mt-7 text-lg mb-5">{item.desc}</p>
</div>
</a>
);
})}
{stage2.map((item: resourceCards) => {
return (
<a
key={item.id}
href={item.href}
target="_blank"
className={`xl:col-span-1 col-span-4 p-5 ${boxStyling}`}
>
<div className="flex align-middle items-center pt-2 pb-4">
<Image
src={item.svg}
alt={item.alt}
draggable="false"
width={item.width}
height={item.height}
/>
</div>
<div>
<h2 className="mt-5 text-3xl font-extrabold">{item.title}</h2>
<p className="mt-7 text-lg mb-5">{item.desc}</p>
</div>
</a>
);
})}
</div>
</div>
</div>
</div>
</section>
);
};
export default Resources;