Skip to content
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
bb23a25
Add GitHub link to footer
raj-aryan-official Mar 30, 2026
22d7396
chore: add StablePay favicon and head link
raj-aryan-official Mar 30, 2026
3354d50
chore: use file-based favicon; move favicon to app; export viewport; …
raj-aryan-official Mar 30, 2026
3bf4ab4
fix: add github icon + remove out-of-scope public favicon; add docstr…
raj-aryan-official Mar 30, 2026
d82db0d
chore(ci): revert out-of-scope Footer change; remove github.svg; add …
raj-aryan-official Mar 30, 2026
e506bec
feat(svg): add SVG logo and use in Header/Footer
raj-aryan-official Mar 30, 2026
8273836
feat(logo-spinner): add Stability Nexus and Djed Alliance SVGs; wire …
raj-aryan-official Mar 30, 2026
219b463
feat: add light mode
raj-aryan-official Mar 30, 2026
ab397e4
chore(docs): add JSDoc comments for components to improve doc coverage
raj-aryan-official Mar 30, 2026
87bf31d
fix(footer): replace placeholder hrefs with Next.js Link routes
raj-aryan-official Mar 30, 2026
944762a
docs: add License.md (MIT)
raj-aryan-official Mar 30, 2026
38e9de4
feat(footer): make social icons clickable and add share links
raj-aryan-official Mar 30, 2026
01d7ad6
fix(header): lower z-index to avoid overlapping mobile modals/images
raj-aryan-official Mar 30, 2026
6224a29
fix(button): accept HTML button props and default type='button'
raj-aryan-official Mar 30, 2026
f60d033
fix(nav): remove unused Fraunces font and implement smooth scroll for…
raj-aryan-official Mar 30, 2026
8e0eea9
fix(footer): place 'use client' at top for Next.js
raj-aryan-official Mar 30, 2026
89564eb
feat(seo): add Open Graph, Twitter card and SEO metadata
raj-aryan-official Mar 30, 2026
2fb1df4
feat(button): add responsive hover/scale and focus styles
raj-aryan-official Mar 30, 2026
9f8f63f
feat(nav): smooth-scroll navbar links (desktop + mobile) and remove u…
raj-aryan-official Mar 30, 2026
6751b03
fix(header): ensure mobile menu button is clickable (larger touch are…
raj-aryan-official Mar 30, 2026
658d066
feat(about): add About page and navbar/footer link
raj-aryan-official Mar 30, 2026
7d4ea46
feat: add About section and navbar link
raj-aryan-official Mar 30, 2026
0de34fe
feat: add About section and navbar link
raj-aryan-official Mar 30, 2026
787c11c
fix(ui): accessibility, pointer-events, reduced-motion, and navigatio…
raj-aryan-official Mar 30, 2026
ed3b49d
fix(a11y): reduced-motion, mobile drawer focus trap, RAF throttling, …
raj-aryan-official Mar 31, 2026
15386f2
fix: correct 'use client' directive and remove stray comment
raj-aryan-official Mar 31, 2026
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
21 changes: 21 additions & 0 deletions License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 raj-aryan-official

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions src/app/apple-touch-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/app/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 48 additions & 11 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Metadata } from 'next'
import { Inter, Fraunces, Caudex } from 'next/font/google'
import { Inter, Caudex } from 'next/font/google'
import { twMerge } from 'tailwind-merge'
import './globals.css'

Expand All @@ -9,12 +9,7 @@ const inter = Inter({
display: 'swap',
})

const fraunces = Fraunces({
subsets: ['latin'],
variable: '--font-fraunces',
display: 'swap',
weight: ['400', '500', '600', '700'],
})
// Removed unused Fraunces font to avoid unnecessary load

const caudex = Caudex({
subsets: ['latin'],
Expand All @@ -24,10 +19,52 @@ const caudex = Caudex({
})

export const metadata: Metadata = {
title: 'StablePay Landing Page',
description: 'A landing page for StablePay',
title: 'StablePay — Open-source SDK for Djed stablecoins',
description: 'An open-source SDK enabling merchants to accept payments in Djed stablecoins.',
keywords: ['StablePay', 'Djed', 'stablecoin', 'payments', 'SDK'],
authors: [{ name: 'Djed Alliance' }],
openGraph: {
title: 'StablePay — Open-source SDK for Djed stablecoins',
description: 'An open-source SDK enabling merchants to accept payments in Djed stablecoins.',
url: 'https://github.com/DjedAlliance/StablePay-LandingPage',
siteName: 'StablePay',
images: [
{
// public currently does not contain og.png; use repo logo as fallback
url: '/favicon.svg',
width: 1200,
height: 630,
alt: 'StablePay — Open-source SDK',
},
],
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: 'StablePay — Open-source SDK for Djed stablecoins',
description: 'An open-source SDK enabling merchants to accept payments in Djed stablecoins.',
images: ['/favicon.svg'],
Comment on lines +29 to +44

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

SVG is not supported for OpenGraph/Twitter card images.

Most social platforms (Facebook, Twitter/X, LinkedIn, Slack, etc.) require raster formats (PNG, JPG, WebP) for OG images and will not render SVG. Using /favicon.svg will result in missing or broken preview images when the page is shared.

Consider creating a proper OG image at the standard dimensions (1200×630) in PNG/JPG format, or remove the images fields until a proper asset is available to avoid misleading metadata.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/layout.tsx` around lines 29 - 44, The OpenGraph/Twitter image fields
in the metadata object (the images array and twitter.images in layout.tsx)
currently point to an SVG ('/favicon.svg'), which most social platforms won't
render; replace those references with a raster image (e.g., '/og.png' or
'/og.jpg') at the recommended 1200x630 resolution or remove the images entries
until a proper PNG/JPG/WebP asset exists so social previews render correctly.
Ensure you update both the images entry inside the metadata OpenGraph section
and the twitter.images value to the new raster filename.

},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
},
},
}

// Configure theme color and viewport-related settings via export
export const viewport = {
// Theme color used by some browsers and OS UI when using file-based favicons
themeColor: '#0ea5a1',
}

/**
* RootLayout wraps all pages and provides global styles and fonts.
* It also exports `viewport` and `metadata` used by Next.js.
*/
export default function RootLayout({
children,
}: Readonly<{
Expand All @@ -38,11 +75,11 @@ export default function RootLayout({
<body
className={twMerge(
inter.variable,
fraunces.variable,
caudex.variable,
'font-inter bg-black text-white antialiased'
'font-inter antialiased bg-white text-black dark:bg-black dark:text-white'
)}
>
<script dangerouslySetInnerHTML={{__html: `(function(){try{var s=localStorage.getItem('theme');var p=window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;var t=s|| (p? 'dark':'light'); if(t==='dark'){document.documentElement.classList.add('dark')}else{document.documentElement.classList.remove('dark')}}catch(e){}})();`}} />
{children}
</body>
</html>
Expand Down
5 changes: 5 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import { Header } from '@/sections/Header'
import { Hero } from '@/sections/Hero'
import { LogoTicker } from '@/sections/LogoTicker'
import { About } from '@/sections/About'
import { Features } from '@/sections/Features'

import { CallToAction } from '@/sections/CallToAction'
import { Footer } from '@/sections/Footer'

/**
* Home — landing page root component assembling page sections.
*/
export default function Home() {
return (
<>
<Header />
<Hero />
<About />
<LogoTicker />
<Features />

Expand Down
8 changes: 8 additions & 0 deletions src/assets/djed-alliance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/stability-nexus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/svg/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 18 additions & 10 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
function Button(props: React.PropsWithChildren) {
/**
* Button — small styled button used throughout the site.
* Accepts children to be rendered inside the button element.
*/
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>

function Button(props: ButtonProps) {
const { children, className = '', type = 'button', style, ...rest } = props

const baseClass = 'relative py-1.5 px-2.5 sm:py-2 sm:px-3 md:py-3 md:px-4 rounded-lg font-medium text-xs sm:text-sm md:text-base bg-gradient-to-b from-[#331500] to-[#FF863B] text-white transform-gpu transition-transform duration-200 hover:scale-105 active:scale-95 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-amber-400'
const mergedStyle = Object.assign({ boxShadow: '0 0 12px #FF863B' }, style || {})

return (
<button
className="relative py-1.5 px-2.5 sm:py-2 sm:px-3 rounded-lg font-medium text-xs sm:text-sm bg-gradient-to-b from-[#331500] to-[#FF863B]"
style={{ boxShadow: '0 0 12px #FF863B' }}
>
<div className="absolute inset-0 rounded-lg">
<div className="rounded-lg border border-white/20 absolute inset-0 [mask-image:linear-gradient(to_bottom,black,transparent)]"></div>
<div className="rounded-lg border absolute inset-0 border-white/40 [mask-image:linear-gradient(to_top,black,transparent)]"></div>
<div className="absolute inset-0 shadow-[0px_0px_10px_0px_rgba(255,134,59,0.7)_inset] rounded-lg"></div>
<button type={type} className={`${baseClass} ${className}`} style={mergedStyle} {...rest}>
<div className="absolute inset-0 rounded-lg pointer-events-none">
<div className="rounded-lg border border-white/20 absolute inset-0 [mask-image:linear-gradient(to_bottom,black,transparent)] pointer-events-none"></div>
<div className="rounded-lg border absolute inset-0 border-white/40 [mask-image:linear-gradient(to_top,black,transparent)] pointer-events-none"></div>
<div className="absolute inset-0 shadow-[0px_0px_10px_0px_rgba(255,134,59,0.7)_inset] rounded-lg pointer-events-none"></div>
</div>
<span>{props.children}</span>
<span>{children}</span>
</button>
)
}
Expand Down
81 changes: 81 additions & 0 deletions src/components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
"use client";

import { useEffect, useState } from 'react';
import { motion } from 'framer-motion';
import { Sun, Moon } from 'lucide-react';

/**
* ThemeToggle — client component that toggles between light and dark themes.
* Persists selection to `localStorage` and applies the `dark` class to the root element.
*/
export default function ThemeToggle() {
const [theme, setTheme] = useState<'light' | 'dark'>('dark');
const [mounted, setMounted] = useState(false);

// Read initial theme and apply classes
useEffect(() => {
setMounted(true);
const storedTheme = localStorage.getItem('theme') as 'light' | 'dark' | null;
const initialTheme = storedTheme || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
setTheme(initialTheme);
}, []);

useEffect(() => {
if (!mounted) return;
const root = document.documentElement;
if (theme === 'dark') {
root.classList.add('dark');
} else {
root.classList.remove('dark');
}
localStorage.setItem('theme', theme);
}, [theme, mounted]);
Comment thread
coderabbitai[bot] marked this conversation as resolved.

const toggleTheme = () => {
setTheme(prev => (prev === 'dark' ? 'light' : 'dark'));
};

if (!mounted) {
// Prevent hydration mismatch by rendering a placeholder of the exact same size
return <div className="w-[60px] h-[32px] rounded-full bg-white/10" />;
}

const isDark = theme === 'dark';

return (
<button
type="button"
onClick={toggleTheme}
aria-pressed={isDark}
aria-label={isDark ? 'Switch to light theme' : 'Switch to dark theme'}
className={`relative flex items-center w-[60px] h-[32px] rounded-full p-1 transition-colors duration-500 ease-in-out border border-white/10
${isDark ? 'bg-white/10 shadow-[inset_0px_0px_10px_rgba(255,255,255,0.1)]' : 'bg-black/5 shadow-[inset_0px_0px_10px_rgba(0,0,0,0.05)]'}`}
style={{
WebkitTapHighlightColor: 'transparent',
}}
>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
<motion.div
className={`absolute flex items-center justify-center w-6 h-6 rounded-full shadow-md z-10
${isDark ? 'bg-[#331500]' : 'bg-white'} border border-white/20`}
layout
transition={{ type: 'spring', stiffness: 700, damping: 30 }}
initial={false}
animate={{
x: isDark ? 26 : 0,
}}
>
{isDark ? (
<Moon className="w-3.5 h-3.5 text-[#FF863B]" />
) : (
<Sun className="w-3.5 h-3.5 text-amber-500" />
)}
</motion.div>

{/* Background Icons */}
<div className="absolute inset-x-2 flex justify-between pointer-events-none text-black/30 dark:text-white/30 text-xs">
<Sun className={`w-3.5 h-3.5 transition-opacity duration-300 ${!isDark ? 'opacity-0' : 'opacity-100'}`} />
<Moon className={`w-3.5 h-3.5 transition-opacity duration-300 ${isDark ? 'opacity-0' : 'opacity-100'}`} />
</div>
</button>
);
}
66 changes: 66 additions & 0 deletions src/sections/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import React from 'react'

/**
* About section — brief overview of StablePay for onboarding users and contributors.
*/
export const About = () => {
return (
<section id="about" className="scroll-mt-24 py-12 md:py-20">
<div className="container px-4 sm:px-6">
<div className="max-w-5xl mx-auto">
<div className="bg-white/80 dark:bg-gray-900/60 border border-black/5 dark:border-white/5 rounded-2xl p-6 sm:p-10 shadow-md backdrop-blur-md">
<div className="text-center">
<h2 className="text-2xl sm:text-3xl font-semibold mb-3 text-black dark:text-white">About StablePay</h2>
<p className="text-base sm:text-lg text-black/70 dark:text-white/75 max-w-2xl mx-auto">
StablePay is an open, developer-friendly payments solution focused on reliable, predictable value transfer. It helps applications accept and manage stable-value payments with minimal integration work and clear developer tooling.
</p>
</div>

<div className="mt-8 grid gap-8 sm:grid-cols-2">
<div className="flex flex-col gap-4">
<h3 className="text-lg font-medium text-black dark:text-white">Core Use Cases</h3>
<ul className="list-inside space-y-2 text-black/70 dark:text-white/75">
<li className="flex items-start gap-3">
<span className="flex-shrink-0 h-3 w-3 rounded-full bg-black/80 dark:bg-white" />
<span>Accept stable-value token payments in web and mobile apps</span>
</li>
<li className="flex items-start gap-3">
<span className="flex-shrink-0 h-3 w-3 rounded-full bg-black/80 dark:bg-white" />
<span>Automate recurring and subscription-style flows</span>
</li>
<li className="flex items-start gap-3">
<span className="flex-shrink-0 h-3 w-3 rounded-full bg-black/80 dark:bg-white" />
<span>Provide transparent payment rails for marketplaces and services</span>
</li>
</ul>
</div>

<div className="flex flex-col gap-4">
<h3 className="text-lg font-medium text-black dark:text-white">How It Works (High level)</h3>
<ul className="list-inside space-y-2 text-black/70 dark:text-white/75">
<li className="flex items-start gap-3">
<span className="flex-shrink-0 h-3 w-3 rounded-full bg-black/80 dark:bg-white" />
<span>Integrate via a small SDK or HTTP endpoints for payment creation and verification.</span>
</li>
<li className="flex items-start gap-3">
<span className="flex-shrink-0 h-3 w-3 rounded-full bg-black/80 dark:bg-white" />
<span>Payments are denominated in stable assets and settled via on-chain or off-chain relayers depending on configuration.</span>
</li>
<li className="flex items-start gap-3">
<span className="flex-shrink-0 h-3 w-3 rounded-full bg-black/80 dark:bg-white" />
<span>Developers receive webhooks and tooling to reconcile and monitor payment state.</span>
</li>
</ul>
</div>
</div>

<div className="mt-8 text-center">
<p className="text-sm text-black/60 dark:text-white/60 mb-4">For contributors: read the repository README and developer docs for architecture, API reference, and local development instructions.</p>
<a href="https://github.com/DjedAlliance/StablePay" target="_blank" rel="noreferrer" className="inline-block bg-black text-white px-4 py-2 rounded-lg text-sm hover:opacity-95 transition">View repository</a>
</div>
</div>
</div>
</div>
</section>
)
}
Loading