-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Schedule UI for Club Pages, complete Schedule Component for App.
- Loading branch information
1 parent
038d6f4
commit dc67f8e
Showing
10 changed files
with
100 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import React from 'react' | ||
import OurProjects from '@/components/ClubPageComponents/OurProjects' | ||
import OurTeam from '@/components/ClubPageComponents/OurTeam' | ||
import OurBlogs from '@/components/ClubPageComponents/OurBlogs' | ||
import Gallery from '@/components/ClubPageComponents/Gallery' | ||
import React from "react"; | ||
import OurProjects from "@/components/ClubPageComponents/OurProjects"; | ||
import OurTeam from "@/components/ClubPageComponents/OurTeam"; | ||
import OurBlogs from "@/components/ClubPageComponents/OurBlogs"; | ||
import Gallery from "@/components/ClubPageComponents/Gallery"; | ||
import OurSchedule from "@/components/ClubPageComponents/OurSchedule"; | ||
|
||
const page = ({params}) => { | ||
const club=params.clubname | ||
const page = ({ params }) => { | ||
const club = params.clubname; | ||
return ( | ||
<> | ||
<Gallery club={club}/> | ||
<OurTeam club={club}/> | ||
<OurProjects club={club}/> | ||
<OurBlogs club={club}/> | ||
<Gallery club={club} /> | ||
<OurSchedule club={club} /> | ||
<OurTeam club={club} /> | ||
<OurProjects club={club} /> | ||
<OurBlogs club={club} /> | ||
</> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default page | ||
export default page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from "react"; | ||
import { getEventsForClub } from "@/app/actions/EventData"; | ||
import Calendar from "../ui/MonthCalendar"; | ||
|
||
const OurSchedule = async ({club}) => { | ||
const fetchedEvents = await getEventsForClub(club); | ||
const monthNames = [ | ||
"January", | ||
"February", | ||
"March", | ||
"April", | ||
"May", | ||
"June", | ||
"July", | ||
"August", | ||
"September", | ||
"October", | ||
"November", | ||
"December", | ||
]; | ||
const month = new Date().getMonth(); // Call the function to get the month | ||
const year = new Date().getFullYear(); | ||
const monthName = monthNames[month]; | ||
return ( | ||
<div className="w-full min-h-[50vh] py-12 flex items-center flex-col justify-center"> | ||
<div className="flex flex-col items-center justify-center space-y-4 text-center"> | ||
<div className="space-y-2 mb-12"> | ||
<h2 className="text-4xl font-bold tracking-tighter sm:text-5xl"> | ||
{monthName} {year} Schedule | ||
</h2> | ||
<p className="max-w-[900px] text-gray-500 md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed"> | ||
Click on a coloured cell to see event details | ||
</p> | ||
</div> | ||
</div> | ||
<Calendar serializedEvents={JSON.stringify(fetchedEvents)}/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default OurSchedule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters