@@ -2,10 +2,8 @@ import Image from 'next/image';
2
2
import { resourceCards , stage1 , stage2 , stage3 } from '../../../public/data/resourceCards' ;
3
3
4
4
const boxStyling =
5
- 'border border-[#595F6D] rounded-lg hover:border-[#788093] hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300' ;
6
- const socialsBoxStyling =
7
- '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' ;
8
-
5
+ 'border border-[#595F6D] rounded-lg hover:border-[#788093] hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300' ;
6
+
9
7
const Resources = ( ) => {
10
8
return (
11
9
< section className = "bg-no-repeat bg-center py-8 px-15 min-h-screen flex justify-center items-center" >
@@ -16,23 +14,35 @@ const Resources = () => {
16
14
< h2 className = "font-bold text-6xl" > RESOURCES</ h2 >
17
15
</ div >
18
16
17
+ < div className = "flex" >
18
+ < span className = "text-lg" > Made by</ span >
19
+ < Image
20
+ src = "/assets/csesoc_logo.svg"
21
+ alt = "CSESoc Logo"
22
+ width = { 100 }
23
+ height = { 100 }
24
+ className = "pl-2"
25
+ />
26
+ </ div >
27
+
19
28
< div className = "py-8 bg-no-repeat bg-center" >
20
29
< div className = "grid grid-cols-4 1 gap-x-9 gap-y-5" >
21
- { stage1 . map ( ( item : resourceCards ) => {
30
+ { stage3 . map ( ( item : resourceCards ) => {
22
31
return (
23
32
< a
24
33
key = { item . id }
25
34
href = { item . href }
26
35
target = "_blank"
27
- className = { `col-span-4 p-5 ${ boxStyling } flex` }
36
+ className = { `md:col-span-2 col-span-4 p-5 ${ boxStyling } flex` }
28
37
>
29
- < div className = "flex justify-center align-middle items-center pl-2 pr-10" >
38
+ < div className = "flex align-middle items-center pt-2 pb-4 pr-10" >
30
39
< Image
31
40
src = { item . svg }
32
41
alt = { item . alt }
33
42
draggable = "false"
34
43
width = { item . width }
35
44
height = { item . height }
45
+ className = "rounded-md"
36
46
/>
37
47
</ div >
38
48
< div >
@@ -42,16 +52,34 @@ const Resources = () => {
42
52
</ a >
43
53
) ;
44
54
} ) }
55
+ </ div >
56
+ </ div >
45
57
46
- { stage2 . map ( ( item : resourceCards ) => {
58
+ < a href = "https://devsoc.app/" target = "_blank" rel = "noopener noreferrer" >
59
+ < div
60
+ className = { `flex grow-on-hover cursor-pointer transform transition-transform duration-300 hover:scale-105` }
61
+ >
62
+ < span className = "text-lg" > Made by</ span >
63
+ < Image
64
+ src = "/assets/devsoc_logo.svg"
65
+ alt = "DevSoc Logo"
66
+ width = { 110 }
67
+ height = { 110 }
68
+ className = "pl-1"
69
+ />
70
+ </ div >
71
+ </ a >
72
+ < div className = "py-8 bg-no-repeat bg-center" >
73
+ < div className = "grid grid-cols-4 1 gap-x-9 gap-y-5" >
74
+ { stage1 . map ( ( item : resourceCards ) => {
47
75
return (
48
76
< a
49
77
key = { item . id }
50
78
href = { item . href }
51
79
target = "_blank"
52
- className = { `xl: col-span-1 col-span- 4 p-5 ${ boxStyling } ` }
80
+ className = { `col-span-4 p-5 ${ boxStyling } flex ` }
53
81
>
54
- < div className = "flex align-middle items-center pt -2 pb-4 " >
82
+ < div className = "flex justify-center align-middle items-center pl -2 pr-10 " >
55
83
< Image
56
84
src = { item . svg }
57
85
alt = { item . alt }
@@ -68,22 +96,21 @@ const Resources = () => {
68
96
) ;
69
97
} ) }
70
98
71
- { stage3 . map ( ( item : resourceCards ) => {
99
+ { stage2 . map ( ( item : resourceCards ) => {
72
100
return (
73
101
< a
74
102
key = { item . id }
75
103
href = { item . href }
76
104
target = "_blank"
77
- className = { `md :col-span-2 col-span-4 p-5 ${ boxStyling } flex ` }
105
+ className = { `xl :col-span-1 col-span-4 p-5 ${ boxStyling } ` }
78
106
>
79
- < div className = "flex align-middle items-center pt-2 pb-4 pr-10 " >
107
+ < div className = "flex align-middle items-center pt-2 pb-4" >
80
108
< Image
81
109
src = { item . svg }
82
110
alt = { item . alt }
83
111
draggable = "false"
84
112
width = { item . width }
85
113
height = { item . height }
86
- className = "rounded-md"
87
114
/>
88
115
</ div >
89
116
< div >
0 commit comments