Skip to content
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
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ Please ensure the following before submitting your PR:

## Screenshots (if applicable)
<!-- Add screenshots to help explain your changes -->

## Closes
<!-- Close your Issue here -->

74 changes: 74 additions & 0 deletions app/(main)/components/HeroPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import Link from "next/link";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "Home",
description: "StellarAid — Empowering communities through technology",
};

const HeroPage = () => {
return (
<section className="w-full max-w-3xl mx-auto text-center relative overflow-hidden rounded-2xl">
{/* Foreground content sits above the canvas */}
<div className="relative z-10 py-20 px-6">
{/* Heading */}
<h1 className="text-4xl sm:text-5xl font-extrabold text-gray-900 leading-tight mb-5 tracking-tight">
Know that your donation
<br />
is making a difference
</h1>

{/* Sub-copy */}
<p className="text-sm sm:text-base text-gray-500 max-w-lg mx-auto mb-8 leading-relaxed">
StellarAid uses blockchain transparency to prove every single project
you fund, complete with verification and real-time impact tracking.
</p>

{/* CTA Buttons */}
<div className="flex flex-wrap justify-center gap-3 mb-14">
<Link
href="/dashboard"
className="px-6 py-2.5 rounded-lg text-white text-sm font-semibold shadow-sm transition-colors"
style={{ backgroundColor: "#5575df" }}
>
Donate Now
</Link>
<Link
href="/about"
className="px-6 py-2.5 rounded-lg border border-gray-300 bg-white text-gray-700 text-sm font-semibold hover:bg-gray-50 transition-colors"
>
Learn More
</Link>
</div>

{/* Stats Card — frosted glass so particles show through */}
<div className="bg-white/80 backdrop-blur-sm rounded-2xl shadow-sm border border-gray-100 py-7 px-6 flex flex-wrap justify-center gap-10 sm:gap-16">
<div className="flex flex-col items-center gap-1">
<span className="text-3xl font-extrabold text-blue-600">$2.4M</span>
<span className="text-xs text-gray-400 font-medium uppercase tracking-wide">
Donated
</span>
</div>
<div className="hidden sm:block w-px bg-gray-100 self-stretch" />
<div className="flex flex-col items-center gap-1">
<span className="text-3xl font-extrabold text-yellow-500">
12.5K
</span>
<span className="text-xs text-gray-400 font-medium uppercase tracking-wide">
Projects
</span>
</div>
<div className="hidden sm:block w-px bg-gray-100 self-stretch" />
<div className="flex flex-col items-center gap-1">
<span className="text-3xl font-extrabold text-green-500">89K</span>
<span className="text-xs text-gray-400 font-medium uppercase tracking-wide">
Donors
</span>
</div>
</div>
</div>
</section>
);
};

export default HeroPage;
2 changes: 1 addition & 1 deletion app/(main)/components/WhyChooseUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const WhyChooseUs: React.FC = () => {
{features.map((feature, index) => (
<div
key={index}
className="bg-white p-8 rounded-xl border border-[#E2E8F0] shadow-sm
className="bg-white cursor-pointer p-8 rounded-xl border border-[#E2E8F0] shadow-sm
transition-all duration-300 ease-in-out
hover:shadow-md hover:-translate-y-1 hover:border-[#CBD5E1]"
>
Expand Down
63 changes: 2 additions & 61 deletions app/(main)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,71 +1,12 @@
import type { Metadata } from "next";
import Link from "next/link";
import { WhyChooseUs } from "./components/WhyChooseUs";
import Footer from "./components/Footer";


export const metadata: Metadata = {
title: "Home",
description: "StellarAid — Empowering communities through technology",
};
import HeroPage from "./components/HeroPage";

export default function HomePage() {
return (
<div className="min-h-screen bg-[#f0f4fa] flex flex-col">
{/* ── Hero ─────────────────────────────────────────────────────── */}
<section className="w-full max-w-3xl mx-auto text-center relative overflow-hidden rounded-2xl">

{/* Foreground content sits above the canvas */}
<div className="relative z-10 py-20 px-6">
{/* Heading */}
<h1 className="text-4xl sm:text-5xl font-extrabold text-gray-900 leading-tight mb-5 tracking-tight">
Know that your donation
<br />
is making a difference
</h1>

{/* Sub-copy */}
<p className="text-sm sm:text-base text-gray-500 max-w-lg mx-auto mb-8 leading-relaxed">
StellarAid uses blockchain transparency to prove every single project you fund,
complete with verification and real-time impact tracking.
</p>

{/* CTA Buttons */}
<div className="flex flex-wrap justify-center gap-3 mb-14">
<Link
href="/dashboard"
className="px-6 py-2.5 rounded-lg text-white text-sm font-semibold shadow-sm transition-colors"
style={{ backgroundColor: "#1e40af" }}
>
Donate Now
</Link>
<Link
href="/about"
className="px-6 py-2.5 rounded-lg border border-gray-300 bg-white text-gray-700 text-sm font-semibold hover:bg-gray-50 transition-colors"
>
Learn More
</Link>
</div>

{/* Stats Card — frosted glass so particles show through */}
<div className="bg-white/80 backdrop-blur-sm rounded-2xl shadow-sm border border-gray-100 py-7 px-6 flex flex-wrap justify-center gap-10 sm:gap-16">
<div className="flex flex-col items-center gap-1">
<span className="text-3xl font-extrabold text-blue-600">$2.4M</span>
<span className="text-xs text-gray-400 font-medium uppercase tracking-wide">Donated</span>
</div>
<div className="hidden sm:block w-px bg-gray-100 self-stretch" />
<div className="flex flex-col items-center gap-1">
<span className="text-3xl font-extrabold text-yellow-500">12.5K</span>
<span className="text-xs text-gray-400 font-medium uppercase tracking-wide">Projects</span>
</div>
<div className="hidden sm:block w-px bg-gray-100 self-stretch" />
<div className="flex flex-col items-center gap-1">
<span className="text-3xl font-extrabold text-green-500">89K</span>
<span className="text-xs text-gray-400 font-medium uppercase tracking-wide">Donors</span>
</div>
</div>
</div>
</section>
<HeroPage />
<section>
<WhyChooseUs />
</section>
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading