-
-
Notifications
You must be signed in to change notification settings - Fork 29
Fix/UI accessibility and navigation #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
raj-aryan-official
wants to merge
26
commits into
DjedAlliance:main
Choose a base branch
from
raj-aryan-official:fix/ui-accessibility-and-navigation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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 22d7396
chore: add StablePay favicon and head link
raj-aryan-official 3354d50
chore: use file-based favicon; move favicon to app; export viewport; …
raj-aryan-official 3bf4ab4
fix: add github icon + remove out-of-scope public favicon; add docstr…
raj-aryan-official d82db0d
chore(ci): revert out-of-scope Footer change; remove github.svg; add …
raj-aryan-official e506bec
feat(svg): add SVG logo and use in Header/Footer
raj-aryan-official 8273836
feat(logo-spinner): add Stability Nexus and Djed Alliance SVGs; wire …
raj-aryan-official 219b463
feat: add light mode
raj-aryan-official ab397e4
chore(docs): add JSDoc comments for components to improve doc coverage
raj-aryan-official 87bf31d
fix(footer): replace placeholder hrefs with Next.js Link routes
raj-aryan-official 944762a
docs: add License.md (MIT)
raj-aryan-official 38e9de4
feat(footer): make social icons clickable and add share links
raj-aryan-official 01d7ad6
fix(header): lower z-index to avoid overlapping mobile modals/images
raj-aryan-official 6224a29
fix(button): accept HTML button props and default type='button'
raj-aryan-official f60d033
fix(nav): remove unused Fraunces font and implement smooth scroll for…
raj-aryan-official 8e0eea9
fix(footer): place 'use client' at top for Next.js
raj-aryan-official 89564eb
feat(seo): add Open Graph, Twitter card and SEO metadata
raj-aryan-official 2fb1df4
feat(button): add responsive hover/scale and focus styles
raj-aryan-official 9f8f63f
feat(nav): smooth-scroll navbar links (desktop + mobile) and remove u…
raj-aryan-official 6751b03
fix(header): ensure mobile menu button is clickable (larger touch are…
raj-aryan-official 658d066
feat(about): add About page and navbar/footer link
raj-aryan-official 7d4ea46
feat: add About section and navbar link
raj-aryan-official 0de34fe
feat: add About section and navbar link
raj-aryan-official 787c11c
fix(ui): accessibility, pointer-events, reduced-motion, and navigatio…
raj-aryan-official ed3b49d
fix(a11y): reduced-motion, mobile drawer focus trap, RAF throttling, …
raj-aryan-official 15386f2
fix: correct 'use client' directive and remove stray comment
raj-aryan-official File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]); | ||
|
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', | ||
| }} | ||
| > | ||
|
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> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| ) | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.svgwill 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
imagesfields until a proper asset is available to avoid misleading metadata.🤖 Prompt for AI Agents