File tree 2 files changed +7
-8
lines changed
frontend/src/components/Event
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { previousEvents } from '../.. /../public/data/events' ;
2
+ import { previousEvents } from '@ /../public/data/events' ;
3
3
4
4
const EventGallery = ( ) => {
5
-
6
5
return (
7
- < div className = "flex flex-wrap px-14 py-10 mb-14 gap-16 justify-center my-10" >
6
+ < div className = "flex flex-wrap mb-14 gap-8 justify-center my-10" >
8
7
{ previousEvents . map ( ( event , index ) => {
9
8
return (
10
9
< div key = { index } >
11
- < div className = "w-full h-40 text-center" >
12
- < a href = { event . link } target = "_blank" rel = "noopener noreferrer" className = "relative block w-full h-64 group transition-opacity duration-3000" >
10
+ < div className = "w-full h-48 text-center" >
11
+ < a href = { event . link } target = "_blank" rel = "noopener noreferrer" className = "relative block w-full h-48 group transition-opacity duration-3000" >
13
12
< img
14
13
src = { event . image }
15
14
alt = { event . title }
16
- className = "w-full h-40 object-contain"
15
+ className = "w-full h-48 object-contain"
17
16
/>
18
- < div className = "w-full h-40 absolute inset-0 bg-black bg-opacity-60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center" >
17
+ < div className = "w-full h-48 absolute inset-0 bg-black bg-opacity-60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center" >
19
18
< div className = "text-white text-center p-4" >
20
19
< h2 className = "font-extrabold text-xl mb-2" > { event . title } </ h2 >
21
20
< h3 className = "font-bold text-lg" > { event . location } </ h3 >
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const Event = () => {
11
11
</ div >
12
12
< div className = "flex items-center" >
13
13
< div className = "flex flex-col text-center" >
14
- < p className = "text-center text-3xl " >
14
+ < p className = "text-center text-2xl " >
15
15
We run a wide-variety of events for fun, learning new skills and careers. For full
16
16
listings, check out our { ' ' }
17
17
< a
You can’t perform that action at this time.
0 commit comments