GRID
GRID
College event directory, club check-in, and arts festival scoreboard built with Next.js and Convex.

Campus operations and event platform built on Next.js, TypeScript, and Convex reactive backend. Features a college club directory, event creation and approval workflows, QR/form participant check-ins, campus navigation (Find My Way), and a live Varnam arts festival leaderboard with a 3D podium.


Scattered Google Forms & club announcements
College club events, venue approvals, participant registrations, and arts festival scoreboards were split across Google Forms and WhatsApp groups with no central campus calendar or live results page.

Real-time Convex campus calendar & club portal
Built a real-time platform using Next.js and Convex (database, server functions, and Convex Auth). Added role-based club management, event approval queues, live form response tracking, and a dedicated Varnam festival control panel with real-time house standings.

Convex Real-Time Sync & Varnam Scoreboard
System Core · Admin Access Control with Convex Auth
import { useQuery, useConvexAuth } from "convex/react";
import { api } from "@/convex/_generated/api";
import { useRouter } from "next/navigation";
import { useEffect, useState } from "react";
export default function AdminLayout({
children,
}: {
children: React.ReactNode;
}) {
const router = useRouter();
const { isAuthenticated, isLoading } = useConvexAuth();
const user = useQuery(api.profile.getCurrentUserFromId);
const [isAuthorized, setIsAuthorized] = useState(false);
useEffect(() => {
if (isLoading) return; // Wait for auth to initialize
if (!isAuthenticated) {
router.push("/login");
return;
}
if (user) {
if (user.role === "super_admin" || user.role === "principal") {
setIsAuthorized(true);
} else {
router.push("/"); // Redirect unauthorized users
}
} else if (user === null) {
router.push("/login"); // Authenticated but no profile
}
}, [isLoading, isAuthenticated, user, router]);
if (isLoading || (isAuthenticated && user === undefined) || !isAuthorized) {
// ... loading state UI
}
return (
// ... main layout with PermissionsProvider
);
}
Next Case Study