FreeMIT LicenseFeatured

Marketly – Trading platform landing page

A market-data landing page template with its dependent pages, built to be re-skinned: every color, type size, radius and shadow is a design token, every section is a data-driven component fed by typed mock JSON, and all copy lives in one file.

by UpFork, built by Ramin ValadanLanding pageUpdated 27 Oct 2026

Read how it was madeBehind the build3 lessons
Watch0
Preview of Marketly – Trading platform landing page

Code

94 files · 13 packages · 40 assets

import type { Metadata } from "next";
import { MarketlyShell } from "@/components/marketly/layout/MarketlyShell";
import { BrokersPage } from "@/components/marketly/routes/brokers";
import { getSearchData } from "@/lib/marketly/api";

export const metadata: Metadata = { title: "Brokers" };

export default async function Page() {
  return (
    <MarketlyShell searchData={await getSearchData()}>
      <BrokersPage />
    </MarketlyShell>
  );
}
94 files40 assets15 packages

From the workbench

Written about Marketly – Trading platform landing page

By the developer who built it: how it works, with its real code and live preview in the text, and the lessons learned along the way.

About

A market-data landing page template with its dependent pages, built to be re-skinned: every color, type size, radius and shadow is a design token, every section is a data-driven component fed by typed mock JSON, and all copy lives in one file.

StackNext.js 16 (App Router, TypeScript strict) · React 19 · Tailwind CSS 4 · shadcn/ui (Base UI) · framer-motion · three + @react-three/fiber + @react-three/drei · embla-carousel · d3-geo + world-atlas · lucide-react · flag-icons
Pages/ landing · /pricing · /markets · /ideas · /brokers · /features · /news · /signin · 404
HeroA pinned scrollytelling block: a procedurally rendered Earth (day/night textures, city lights, sunrise flare, atmosphere, stars, animated "price lines"), the headline scene parallaxing away while the Earth blurs into a warm bokeh and the showcase title and a glass video frame pin
HeaderTransparent with white text over dark surfaces (the hero, the sub-pages' black bands); turns white with dark text the moment the page's white sheet scrolls under it
ThemesLight and dark (data-theme on <html>, persisted, no flash); the hero stays black in both
Responsive390px phones to 1920px desktops; header collapses to a full-screen drawer below 1024px
A11yKeyboard-navigable menus and carousels, aria-expanded/role="menu", visible focus rings, prefers-reduced-motion honoured (no parallax, no rotation), RTL-ready logical properties

Run it

pnpm install
pnpm dev          # http://localhost:3000
pnpm lint && pnpm build && pnpm start

Node.js 20.9+ (22 recommended) and pnpm. The build fetches the Plus Jakarta Sans font from Google Fonts once; to go fully offline, switch app/layout.tsx to next/font/local.

Project layout

app/                  routes: layout (fonts, theme, header, footer), the landing, the sub-pages, not-found
components/
  layout/             Header, HeaderBackdrop, MegaMenu, MobileDrawer, LangMenu, UserMenu, Search*, Footer, Logo, ThemeProvider
  hero/               HeroScroller (scroll choreography), EarthScene (R3F), Starfield, FloatingPill, PlatformVideo, …
  ui/                 the kit: SlashButton, Card, SymbolRow, SymbolLogo, TickerChip, PillTabs, Carousel, Sparkline, bars, Skeleton, Empty, …
  sections/           MarketSummary, FeaturedIpos, IdeasSection, NewsList, MarketCategory, GainersLosers, EarningsCalendar,
                      PerformanceBars, Economy (WorldMap, EconomicCalendar), TradingBrokers
  pages/              the sub-pages' interactive parts (pricing toggle, ideas grid, brokers filters, news tabs, markets anchors)
data/                 types.ts, copy.ts (all text), nav.ts (menus, languages, footer), *.json (mock data), markets/*.json
lib/                  api.ts (data layer stubs), format.ts (numbers, %, time ago), hooks.ts, cn.ts
styles/               globals.css (tokens + utilities + the slash button), themes.css (light/dark aliases)
scripts/              generators for the idea thumbnails, the platform poster and the market summary's series
public/               textures/, ideas/, hero/, avatars/

Re-skin it

  1. Brand. data/copy.ts → brand (name, tagline, legal name). The logo mark is components/layout/Logo.tsx (LogoMark); the browser icon is app/icon.svg.
  2. Palette. styles/globals.css → the @theme block holds the raw scales (--color-cold-gray-*, --color-brand-*, market greens and reds). styles/themes.css maps them onto roles (--bg-page, --fg-primary, --link, --border-subtle …) for light and dark. Change the roles to re-color the whole site; change a scale to swap the brand hue. Components never carry a hex.
  3. Fonts. app/layout.tsx loads the display font (--font-plus-jakarta); the body stack is --font-body in globals.css. Type sizes are --text-* tokens (text-display, text-h1, text-h2, text-body, text-meta …).
  4. Spacing and shape. Radii (--radius-card, --radius-chip, --radius-pill …), the gutter (--spacing-gutter, 40px desktop / 16px phones) and shadows are tokens too.
  5. Copy. Everything a visitor reads is in data/copy.ts; menus, languages and footer columns in data/nav.ts. The footer's legal lines (footer.legal) are placeholders: name your own data providers there.
  6. Direction. The layout uses logical properties (ps-, pe-, start-, end-): set dir="rtl" on <html> in app/layout.tsx for a right-to-left language.

Replace the mock data

lib/api.ts exposes the data the way a backend would (getMarketSummary(), getMarketCategory("crypto"), getNews("top"), getBrokers() …) and currently returns the JSON under data/. Replace the function bodies with fetches (CoinGecko, Binance, Finnhub …) and keep the return types from data/types.ts; no component changes. The Market summary's charts read plain number lists: the big one is a trading day (hero.spark with hero.session: the time of the first point and the minutes between points, from which the hourly axis and the tooltip times are derived), the three small ones a month each. node scripts/gen-market-series.mjs regenerates the mock curves. Every section also takes a loading prop that renders its skeleton at the same height, and shows "No data here yet" when a list is empty.

Logos are described, not uploaded: { kind: "text", text: "500", bg: "#cc2f3c" }, { kind: "icon", icon: "gold" }, { kind: "flag", country: "us" }, { kind: "flags", countries: ["eu", "us"] } or { kind: "image", src }.

Media placeholders

WhatWhereReplace with
Platform demo (the glass frame)public/hero/platform-poster.png (rendered from the SVG scripts/gen-platform-poster.mjs writes)Your platform.mp4 / .webm + poster: set the paths in data/copy.ts → hero.platformDemo
Earth fallback (no WebGL / low memory)public/hero/earth-poster.jpg (a render of the 3D scene)Any earth-from-orbit clip: hero.earthFallback
Story pill portraitpublic/avatars/placeholder.svgA 44×44 photo: hero.avatar
Idea thumbnailspublic/ideas/idea-0*.png (generated by scripts/gen-idea-thumbs.mjs)Real chart screenshots, referenced from the ideas JSON

The Earth

components/hero/EarthScene.tsx. Camera, sun direction, the spin (axis latitude, speed, starting point), atmosphere colors, flare size and the line colors are constants at the top of the file. The planet turns about its own axis, laid across the frame with north to the right: the camera hangs over 37°N looking west, the way an evening is seen from orbit. The ground comes over the horizon in the evening light (land, deserts and clouds showing through a blue veil of air), runs down the frame, crosses the terminator, and its towns light up one by one as they pass into the night: each cell of NASA's Black Marble switches on at its own moment in the dusk, and up close the lights break into points of different brightness. Along 37°N the frame sweeps the Mediterranean, Europe, the United States, Japan, China, India and the Middle East; it starts over the Middle East. The sun sits just behind the horizon with rays all round, two sets turning slowly against each other.

The "price lines" are charts standing up from the planet: each leaves one lit town, climbs in a jagged rising run and drops onto another town's lights, which flare up as it lands. The lit spots are read from the night texture itself; pairs are picked on the visible night side and across the frame, two lines at a time, clear of each other; each draws in, holds, fades and starts again between two other towns. The scene pauses when the hero leaves the viewport, renders a single still with prefers-reduced-motion, and hands over to EarthFallbackVideo when WebGL is unavailable or navigator.deviceMemory < 4. Textures are in public/textures/ (day at 2k, clouds at 1k, night lights at 4k). EarthSceneLazy loads the three.js chunk separately and mounts the scene after the first idle moment, so the headline and the rest of the page come first.

Licenses

  • Earth textures (public/textures/): the day and clouds maps from the three.js examples (MIT), themselves derived from NASA's Blue Marble; the night lights downscaled from NASA's Black Marble 2016 (public domain).
  • Country flags: flag-icons (MIT). Brand marks: simple-icons (CC0). Icons: lucide (ISC).
  • World map: world-atlas (ISC), Natural Earth data (public domain).
  • Font: Plus Jakarta Sans (SIL Open Font License), via next/font/google.
  • Everything else in this folder is the template itself. The brand name "Marketly", its mark, the mock data and the generated images are placeholders for you to replace.
  • The mock data names real companies, tickers and brokers only as sample content; it implies no affiliation or endorsement, and its prices, ratings, headlines and ideas are made up.

Reviews and bugs

0 reviews · 0 bugs

Ship it0With fixes0Skip0· 0 reviews

0 bugs0 open0 fixed

Members who have it review it and report its bugs. Sign in

No reviews or bugs yet.

Manual installation

Without the CLI

  1. 01

    Install the packages

    npm install @base-ui/react @react-three/drei @react-three/fiber @react-three/postprocessing class-variance-authority d3-geo embla-carousel-react framer-motion lucide-react simple-icons three topojson-client world-atlas
  2. 02

    And their TypeScript types

    npm install -D @types/d3-geo @types/topojson-client
  3. 03

    Copy the files into your project

    • app/brokers/page.tsx
    • app/features/page.tsx
    • app/ideas/page.tsx
    • app/markets/page.tsx
    • app/news/page.tsx
    • app/page.tsx
    • app/pricing/page.tsx
    • app/signin/page.tsx
    • components/marketly/hero/EarthFallbackVideo.tsx
    • components/marketly/hero/EarthScene.tsx
    • components/marketly/hero/EarthSceneLazy.tsx
    • components/marketly/hero/FloatingPill.tsx
    • components/marketly/hero/HeroCopy.tsx
    • components/marketly/hero/HeroScroller.tsx
    • components/marketly/hero/PlatformVideo.tsx
    • components/marketly/hero/ShowcaseScene.tsx
    • components/marketly/hero/Starfield.tsx
    • components/marketly/layout/DarkTop.tsx
    • components/marketly/layout/Footer.tsx
    • components/marketly/layout/FooterTagline.tsx
    • components/marketly/layout/Header.tsx
    • components/marketly/layout/HeaderBackdrop.tsx
    • components/marketly/layout/LangMenu.tsx
    • components/marketly/layout/Logo.tsx
    • components/marketly/layout/MarketlyShell.tsx
    • components/marketly/layout/MegaMenu.tsx
    • components/marketly/layout/MobileDrawer.tsx
    • components/marketly/layout/RocketIllustration.tsx
    • components/marketly/layout/SearchDialog.tsx
    • components/marketly/layout/SearchTrigger.tsx
    • components/marketly/layout/Sheet.tsx
    • components/marketly/layout/ThemeProvider.tsx
    • components/marketly/layout/UserMenu.tsx
    • components/marketly/pages/BrokersContent.tsx
    • components/marketly/pages/IdeasGrid.tsx
    • components/marketly/pages/MarketsNav.tsx
    • components/marketly/pages/NewsContent.tsx
    • components/marketly/pages/PricingContent.tsx
    • components/marketly/routes/brokers.tsx
    • components/marketly/routes/features.tsx
    • components/marketly/routes/home.tsx
    • components/marketly/routes/ideas.tsx
    • components/marketly/routes/markets.tsx
    • components/marketly/routes/news.tsx
    • components/marketly/routes/not-found.tsx
    • components/marketly/routes/pricing.tsx
    • components/marketly/routes/signin.tsx
    • components/marketly/sections/BrokerCard.tsx
    • components/marketly/sections/EarningsCalendar.tsx
    • components/marketly/sections/EconomicCalendar.tsx
    • components/marketly/sections/Economy.tsx
    • components/marketly/sections/FeaturedIpos.tsx
    • components/marketly/sections/GainersLosers.tsx
    • components/marketly/sections/IdeaCard.tsx
    • components/marketly/sections/IdeasSection.tsx
    • components/marketly/sections/IpoCard.tsx
    • components/marketly/sections/MarketCategory.tsx
    • components/marketly/sections/MarketSummary.tsx
    • components/marketly/sections/NewsList.tsx
    • components/marketly/sections/PerformanceBars.tsx
    • components/marketly/sections/TradingBrokers.tsx
    • components/marketly/sections/WorldMap.tsx
    • components/marketly/ui/accordion.tsx
    • components/marketly/ui/BrandIcon.tsx
    • components/marketly/ui/button.tsx
    • components/marketly/ui/Card.tsx
    • components/marketly/ui/Carousel.tsx
    • components/marketly/ui/CarouselArrow.tsx
    • components/marketly/ui/Change.tsx
    • components/marketly/ui/dialog.tsx
    • components/marketly/ui/Empty.tsx
    • components/marketly/ui/Flag.tsx
    • components/marketly/ui/Icon.tsx
    • components/marketly/ui/PageHeader.tsx
    • components/marketly/ui/PillTabs.tsx
    • components/marketly/ui/popover.tsx
    • components/marketly/ui/ProgressBar.tsx
    • components/marketly/ui/SectionHeading.tsx
    • components/marketly/ui/SeeAllLink.tsx
    • components/marketly/ui/sheet.tsx
    • components/marketly/ui/Skeleton.tsx
    • components/marketly/ui/SlashButton.tsx
    • components/marketly/ui/Sparkline.tsx
    • components/marketly/ui/switch.tsx
    • components/marketly/ui/SymbolLogo.tsx
    • components/marketly/ui/SymbolRow.tsx
    • components/marketly/ui/TickerChip.tsx
    • lib/marketly/api.ts
    • lib/marketly/data/copy.ts
    • lib/marketly/data/mock.ts
    • lib/marketly/data/nav.ts
    • lib/marketly/data/types.ts
    • lib/marketly/format.ts
    • lib/marketly/hooks.ts

    The paths follow the shadcn/ui layout, with @/ as your project’s import alias.

  4. 04

    Its pictures load from UpFork

    The code above points at UpFork’s copies (1.6 MB), so there’s nothing to copy. To host them yourself, use Download source: its ZIP has the files where the code expects them, and a README on the switch.

    It shows pictures with next/image, which loads only from hosts it’s told about. Add this to next.config:

    images: {
      remotePatterns: [{ protocol: "https", hostname: "upfork.dev", pathname: "/assets/**" }],
    },
  5. 05

    Add its styles to your stylesheet

    Copy the rules of globals.css (in the code above) into your global stylesheet, app/globals.css in Next.js, after its @import lines. The CLI does this for you.

Before you buy

Everything you need to know

How this landing page gets from the preview into your project, and what buyers ask most.

How to use it

From the preview to your project

  1. 01

    Try it in the preview

    Switch between light and dark, and resize it to phone and tablet widths, before you decide.

  2. 02

    Get it

    Free products are yours with a free account. Paid ones settle in USDT on TRON, sent straight to the wallet on your order.

  3. 03

    Install it

    Components go into your project with one shadcn command, dependencies included. Everything else downloads with a checksum.

  4. 04

    Make it yours

    It's your code now: rename it, restyle it and wire in your real data.

  5. 05

    Or hand it to your AI

    Copy the prompt and let your coding assistant place it in your project, following your conventions.

Building with an AI assistant?

Copy a ready-made prompt with the code, its dependencies and a demo, and your assistant can put it in place for you.

Copy AI prompt

Selling your own work?

Get approved once, then publish components, templates and mobile components, paid in USDT straight to your own wallet.