mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-18 03:16:57 +02:00
* feat: Add GeyserFundAlertOverlay component for donation initiative * feat: Add GeyserFundDonation component and update Home page layout * feat: Add environment variable support for Geyser Fund feature visibility --------- Co-authored-by: highperfocused <highperfocused@pm.me>
29 lines
799 B
TypeScript
29 lines
799 B
TypeScript
"use client";
|
|
|
|
import { Search } from "@/components/Search";
|
|
import { TrendingImagesNew } from "@/components/TrendingImagesNew";
|
|
import { GeyserFundDonation } from "@/components/GeyserFundDonation";
|
|
import { useEffect } from "react";
|
|
|
|
export default function Home() {
|
|
useEffect(() => {
|
|
document.title = `LUMINA`;
|
|
}, []);
|
|
|
|
// Check for environment variable - Next.js exposes public env vars with NEXT_PUBLIC_ prefix
|
|
const showGeyserFund = process.env.NEXT_PUBLIC_SHOW_GEYSER_FUND === 'true';
|
|
|
|
return (
|
|
<>
|
|
{showGeyserFund && (
|
|
<div className="flex flex-col items-center px-6">
|
|
<GeyserFundDonation />
|
|
</div>
|
|
)}
|
|
<div className="flex flex-col items-center py-4 px-6">
|
|
<Search />
|
|
</div>
|
|
<TrendingImagesNew />
|
|
</>
|
|
);
|
|
} |