Skip to content

Commit

Permalink
added mobile css to events page, added winners section
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshsawant05 authored Aug 6, 2024
1 parent ba56fb5 commit 7c780a3
Show file tree
Hide file tree
Showing 6 changed files with 358 additions and 4 deletions.
Binary file added public/event_poster.avif
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/event/[id]/components/event.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function GenerateEvent({props:event}){
};
}, []);

const eventPoster = "https://media.licdn.com/dms/image/D4D22AQHTRDh3tAk0wA/feedshare-shrink_800/0/1713529970610?e=1725494400&v=beta&t=1BamLpGDgW7rWUcYBUFRkm_35Y1wseXAE9VZS80XbtE";
const eventPoster = "/event_poster.avif";
return (
<div className="event-div">
<div className={`event-poster ${eventPosterFixed}`}>
Expand Down
8 changes: 7 additions & 1 deletion src/app/event/[id]/components/eventDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import EventRequirements from "./eventRequirements";
import EventPrizes from "./eventPrizes";
import EventConvenors from "./eventConvenors";
import EventVenue from "./eventVenue";
import EventWinners from "./eventWinners";

import { Montserrat } from "next/font/google";
const montserratFont = Montserrat({weight: ["100","400"], subsets: ["latin"]});

Expand All @@ -31,6 +33,8 @@ function EventDetails(props){
const [eventRequirements, setEventRequirements] = useState(event.requirements);
const [eventPrizes , setEventPrizes] = useState(event.prizes);
const [eventConvenors,setEventConvenors] = useState(event.convenors);
const [eventWinners,setEventWinners] = useState(event.winners);

//To update the remaining registration time each second
useEffect(()=>{
setInterval(()=>{
Expand Down Expand Up @@ -65,7 +69,9 @@ function EventDetails(props){
</div>

<hr style={{width : "100%"}}/>

<div className="event-winner-div rounded-lg shadow-sm bg-secondary p-6 gap-6">
{(eventWinners === null || Object.keys(eventWinners).length === 0) ? null:<EventWinners eventWinners={eventWinners}/>}
</div>
<div className={`event-details-description ${montserratFont.className}`}>
<p className="event-description-title">About Event</p>
<pre className={`event-description ${montserratFont.className}`}>{eventDescription}</pre>
Expand Down
3 changes: 2 additions & 1 deletion src/app/event/[id]/components/eventPoster.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react";

import Image from "next/image";
function EventPoster(props){
return <>
<img style={props.style} src={props.posterUrl}></img>

</>
}

Expand Down
Loading

1 comment on commit 7c780a3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for iiitvcc ready!

✅ Preview
https://iiitvcc-i93r65ug6-iiitv-coding-clubs-projects.vercel.app

Built with commit 7c780a3.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.