Skip to content

Commit

Permalink
Merge pull request #109 from 2004yash/main
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySingh04 authored Nov 7, 2024
2 parents 203deba + a15d97d commit 3f8b2df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
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

0 comments on commit 3f8b2df

Please sign in to comment.