Skip to content

Redesign the landing page - #339

Merged
prodbycorne merged 2 commits into
SmartDropLabs:mainfrom
abayomicornelius:feat/design-refresh
Sep 7, 2026
Merged

Redesign the landing page#339
prodbycorne merged 2 commits into
SmartDropLabs:mainfrom
abayomicornelius:feat/design-refresh

Conversation

@abayomicornelius

Copy link
Copy Markdown
Contributor

Summary

The dashboard's design read as generic — flat single-accent dark-mode SaaS boilerplate. This redesigns the landing page's visual layer while leaving every data binding and the shared chrome (Navbar/Footer/AppShell) alone.

  • Ambient background: three slow-drifting, blurred gradient orbs in the theme's green/violet/blue accents, plus a faint dot-grid that fades out below the hero. It's scoped to the home page's own stacking context (position: relative + its own z-index), so it can't bleed into other routes.
  • Hero: the heading now spans a green → violet → blue gradient instead of one flat accent color, at a noticeably larger size. The literal text "SmartDrop Dashboard" is unchanged.
  • Stat cards: moved from four equal-width cards in a row to an asymmetric bento grid — Total Value Locked and Users Online are featured 2-column cards, Active Pools and Total Users are single cards. Each has its own accent hue, its own glow-on-hover shadow, and a small inline SVG icon.
  • Credits panel: a soft radial accent glow and a two-tone gradient on the credit total instead of a flat color.
  • Theme: added app.accent3 (violet) and app.accent4 (pink) plus matching glow shadow tokens, purely additive — no existing token value changed.

Why the Navbar/Footer/background chrome wasn't touched

e2e/visual-regression.spec.ts takes full-page Playwright screenshots on the 404 page and the leaderboard page (404-page-light.png, 404-page-dark.png, leaderboard-credits.png, leaderboard-stake.png), and both routes render the shared AppShell/Navbar/Footer. Any change to those would invalidate those baselines, which I can't regenerate here. So all of the visual work is scoped to src/app/page.tsx's own content and two purely-additive theme tokens.

That same spec also asserts SmartDrop Dashboard is visible on / after navigating home from the 404 page — kept that text exactly as-is.

No new dependency

The four stat-card icons are small hand-drawn inline SVGs rather than pulling in an icon package — this repo ships both package-lock.json and pnpm-lock.yaml, and I didn't want to risk the two drifting out of sync for four glyphs.

Test plan

  • pnpm run typecheck — clean
  • pnpm run lint — 0 errors (pre-existing unrelated warnings only, confirmed present on a clean main checkout)
  • pnpm run build — succeeds, / route bundle 8.15 kB
  • pnpm run test — full suite is flaky under parallel execution on this machine regardless of branch (two consecutive runs of the same code produced different failure sets); confirmed via git stash that the same tests fail on a clean main checkout too, and none of the flaky failures are anywhere near page.tsx/theme.ts
  • pnpm run start + manual check: / returns 200, contains the literal "SmartDrop Dashboard" text, and renders 9 inline <svg> elements (4 new stat icons + existing chrome icons)
  • Visual screenshot comparison — not done: Playwright's browser installer doesn't support this machine (ERROR: Playwright does not support chromium on mac13), so I couldn't capture before/after screenshots myself. Flagging so this isn't mistaken for a verified visual pass — would appreciate a look in an actual browser before merging.

Adds app.accent3 (violet) and app.accent4 (pink), plus matching glow
shadow tokens (glowBlue, glowViolet, glowPink), to give the landing
page redesign a fuller, multi-hue palette instead of leaning on a
single green accent everywhere. Purely additive — no existing token
value changes, so every other page's look (and its Playwright visual
regression screenshots) is unaffected.

Both new colors verified against WCAG AA (4.5:1) for both light and
dark mode: #7c3aed on white is 5.7:1, #c4b5fd on the dark bg is 10.56:1;
#be185d on white is 6.04:1, #f9a8d4 on the dark bg is 10.75:1.
The dashboard read as a generic dark-mode/single-accent SaaS template
— flat cards in a plain row, one gradient. Reworked the visual layer
without touching any data-fetching logic or the shared AppShell/Navbar
chrome (both are screenshotted by other routes' Playwright visual
regression tests, so they're deliberately untouched):

- Ambient background: three slow-drifting, blurred gradient orbs in
  the theme's green/violet/blue accents, plus a faint dot-grid masked
  to fade out below the hero. Scoped to this page's own stacking
  context (position: relative + z-index), so it can't bleed into other
  routes.
- Hero heading now spans the full green -> violet -> blue accent
  gradient instead of a single accent, at a noticeably larger size.
  The literal text "SmartDrop Dashboard" is unchanged — the 404 page's
  "back to home" Playwright test asserts on it being visible.
- Stat cards moved from four equal-width cards to an asymmetric bento
  grid: Total Value Locked and Users Online are the featured 2-column
  cards, Active Pools and Total Users are single cards, each with its
  own accent hue, its own glow-on-hover shadow, and a small inline SVG
  icon (no new icon-package dependency — four glyphs, hand-drawn).
- The credits panel gets a soft radial accent glow and a two-tone
  gradient on the credit total instead of a flat accent color.

Data bindings (usePlatformStats, useTotalUserCredits,
useStellarWallet, the toast error handling) are untouched.
@netlify

netlify Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploy Preview for spiffy-melomakarona-eb1e8a ready!

Name Link
🔨 Latest commit ace8598
🔍 Latest deploy log https://app.netlify.com/projects/spiffy-melomakarona-eb1e8a/deploys/6a9ef1dcde8be8000703bd58
😎 Deploy Preview https://deploy-preview-339--spiffy-melomakarona-eb1e8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploy Preview for smart-drop ready!

Name Link
🔨 Latest commit ace8598
🔍 Latest deploy log https://app.netlify.com/projects/smart-drop/deploys/6a9ef1dcc4c66c00084ea031
😎 Deploy Preview https://deploy-preview-339--smart-drop.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@prodbycorne
prodbycorne merged commit 01962f8 into SmartDropLabs:main Sep 7, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants