Update database connection details and enhance course management functionality. Changed DATABASE_URL in deployment workflow to a direct connection string. Added course pruning logic in seed script to maintain database integrity. Updated faculty and registration forms to include additional fields for better data capture. Refined layout components for improved user experience and responsiveness.

This commit is contained in:
smhk1376 committed 2026-09-29 04:25:30 +03:30
1 parent 0874b968ba
commit 6909a935fd
74 files changed
+1506 -420

No files matched your search

+2 -8
View File
@@ -6,7 +6,7 @@ import {
HomeRest,
type HomeLabels,
} from "@/components/templates/HomeTemplate";
import { getArticles, getFeaturedArticle } from "@/lib/data/articles";
import { getFeaturedArticle } from "@/lib/data/articles";
import { getEvents } from "@/lib/data/events";
import { getPrograms } from "@/lib/data/programs";
import { getSiteStats, getTopics } from "@/lib/data/site";
@@ -39,15 +39,9 @@ async function HeroSection() {
getFeaturedArticle(),
getLabels(),
]);
if (!featured) return null;
return <HomeHero featured={featured} eyebrow={labels.ideasEyebrow} />;
}
async function IdeasSection() {
const [articles, labels] = await Promise.all([getArticles(), getLabels()]);
return <HomeIdeas articles={articles} title={labels.ideasTitle} />;
}
async function EventsSection() {
const [events, labels] = await Promise.all([getEvents(), getLabels()]);
return (
@@ -90,7 +84,7 @@ export default function HomePage() {
return (
<main id="main-content">
<HeroSection />
<IdeasSection />
<HomeIdeas />
<EventsSection />
<RestSection />
</main>