Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made events page responsive and added community route #109

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/(default)/community/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// page.tsx
"use client";

import { useEffect } from "react";
import { useRouter } from "next/navigation";

export default function Page() {
const router = useRouter();

useEffect(() => {
window.location.href = "https://chat.whatsapp.com/IvpDqELtAfW5S2WElLgnlJ";
}, []);

return null; // No need to render anything as it will redirect immediately
}
2 changes: 1 addition & 1 deletion app/(default)/myevents/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const EventsPage = () => {
{/* Past Events */}
<h2 className="text-3xl font-bold mb-8 mt-16 ml-4 text-center">Past Events</h2>
{pastEvents.length > 0 ? (
<div className="flex justify-around">
<div className="sm:flex justify-around">
{pastEvents.map((event) => (
<EventCard
key={event.id}
Expand Down
2 changes: 1 addition & 1 deletion components/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const EventCard: React.FC<EventCardProps> = ({

return (
<div
className="relative bg-gray-900 shadow-lg rounded-xl overflow-hidden transform transition duration-300 hover:scale-105 hover:shadow-xl cursor-pointer w-1/4"
className="relative bg-gray-900 shadow-lg rounded-xl overflow-hidden transform transition duration-300 hover:scale-105 hover:shadow-xl cursor-pointer w-full mb-4 sm:w-1/3 sm:mb-0 md:w-3/12"
onClick={() => onSelect(event)}
>
{/* Event Date Badge */}
Expand Down
Loading