Skip to content

Commit 9a7b68b

Browse files
committed
Done with alignment
1 parent 9f9cae0 commit 9a7b68b

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed
8.88 MB
Loading

Frontend/src/components/events/Event.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const Event = ({ index, idx, Name, date, description, icon, register }) => {
9898

9999
return (
100100
<div>
101-
<div className={index === 1 ? "event1" : "event"}>
101+
<div className="event">
102102
<div className="event-image">
103103
<img src={icon} alt="" />
104104
</div>
@@ -216,7 +216,7 @@ const Event = ({ index, idx, Name, date, description, icon, register }) => {
216216
<div className="modal-content">
217217
<span className="close" onClick={() => setDescp(false)}>
218218
&times;
219-
</span>
219+
</span>
220220
<div
221221
className="event-descp"
222222
style={{
@@ -225,7 +225,7 @@ const Event = ({ index, idx, Name, date, description, icon, register }) => {
225225
justifyContent: "center",
226226
alignItems: "center",
227227
marginLeft: isSmallScreen ? "0rem" : "20rem",
228-
gap: isSmallScreen ? "0rem" : "10rem",
228+
gap: isSmallScreen ? "1rem" : "10rem",
229229
fontSize: isSmallScreen ? "4rem" : "1rem",
230230
fontWeight: isSmallScreen ? "normal" : "bold",
231231
}}

Frontend/src/components/events/allEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const events = [
44
Name: 'Yuvarang 2025',
55
description:
66
'Yuvarang is the signature event of Art Circle. It is the only cultural mega event of WCE Sangli. The event is open to all colleges and for all trades. Art Circle tries to cover and enhance all the artforms in all the domains (eg- drama, dance, music or content writing like poetry sketching colouring and many more. Art Circle also gives an opportunity to school going children to showcase their talent.We members of Art Circle always try to preserve the culture,promote and encourage the artforms of India and always try to do our best in this initiative',
7-
icon: "https://github.com/wce-artcircle/Assets/blob/main/events/yuvarang-2025.png?raw=true",
7+
icon: "https://github.com/wce-artcircle/Assets/blob/main/events/yuvarang-final-2025.png?raw=true",
88
register: "https://konfhub.com/yuvarang-2025"
99
},
1010
{

Frontend/src/components/events/events.css

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
flex-direction: column;
223223
justify-content: center;
224224
align-items: center;
225-
width: 15rem;
225+
width: 20rem;
226226
text-align: center;
227227
margin: 0px;
228228
}
@@ -276,28 +276,21 @@
276276
color: white;
277277
}
278278
.modal {
279-
position: fixed;
280-
top: 20rem;
281-
left: 2.5rem;
282279
width: 10rem;
283-
height: 15rem;
284-
margin-left: 2rem;
285-
background-color: rgba(0, 0, 0, 0.7);
280+
height: 20rem;
281+
}
282+
283+
.modal-content {
286284
display: flex;
285+
flex-direction: column;
287286
justify-content: center;
288287
align-items: center;
289-
}
290-
291-
.modal-content {
292-
position: fixed;
293288
overflow-y:auto;
294289
background-color: #7c48dc;
295290
color: rgb(255, 255, 255);
296-
width: 15rem;
297291
border-radius: 10px;
298292
font-weight: 300;
299-
padding-left: 1.5rem;
300-
padding-right: 1.5rem;
293+
301294
}
302295

303296
.close {
@@ -338,6 +331,8 @@
338331
height: 100%;
339332
overflow: auto;
340333
background-color: rgba(0, 0, 0, 0.8);
334+
align-items: center;
335+
justify-content: center;
341336
}
342337

343338
/* Close button for the modal */
@@ -368,6 +363,9 @@
368363
width: auto;
369364
height: auto;
370365
border-radius: 0.7rem;
366+
align-items: center;
367+
justify-content: center;
368+
371369
}
372370

373371
/* Caption for the expanded image */
@@ -386,13 +384,17 @@
386384
.modal1-content {
387385
max-width: 85%;
388386
max-height: 75vh;
387+
align-items: center;
388+
justify-content: center;
389389
}
390390
}
391391

392392
@media (max-width: 480px) {
393393
.modal1-content {
394394
max-width: 80%;
395395
max-height: 70vh;
396+
align-items: center;
397+
justify-content: center;
396398
}
397399
}
398400

Frontend/src/components/yuvarang/Toplink.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function Toplink() {
2222
<a
2323
href="https://konfhub.com/yuvarang-2025"
2424
target="_blank"
25+
rel="noopener noreferrer"
2526
style={{
2627
color: "black",
2728
fontWeight: "bold",

0 commit comments

Comments
 (0)