Now In Code
Get access

Daily Globe Quiz Card Stack

Home is a stack of daily cards, each with its own orthographic globe. Play opens a draggable, pinch-zoomable map with zoom-based labels; quizzes use a pulsing crosshair, distance and score ring, or live country highlight. d3-geo, shared HTML and Skia core.

Inspired by a design by @SebCornelius on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "daily-globe-quiz-card-stack" to this project.

The full source is attached at the end of this prompt. Put the files under components/daily-globe-quiz-card-stack/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
23 Oct 2026
License
Unlimited commercial projects
Original design
@SebCornelius on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A daily geography quiz in dark mode. The home screen shows a stack of three cards with a weekday and date, a small globe and a Play pill, plus a date strip with progress rings and a streak pill. Pressing Play zooms the globe to a full-screen question. In find-the-place questions the user pans and pinches a rotating globe, drops a crosshair on a guess, and sees a line to the true spot with a distance that counts up, a score ring and a result label from Spot on to Way off. In pick-the-country questions, regions highlight under the touch, and the chosen one zooms and fills with colour. Next loads another question, and closing returns to the home with a Continue count and a progress ring. Cards can be swiped sideways.

How it's built

The globe is vector, not a texture. A shared core uses the orthographic projection, clipping and point-in-polygon tests of d3-geo with country and border data from topojson-client, switching between a coarse and a detailed resolution when the sphere gets large. In React Native the path strings from d3-geo are turned into Skia paths and drawn in a Skia canvas, and the paths are rebuilt every frame while dragging. Cards and the date strip use PanResponder, and the globe forwards native touches per finger to the core for rotate, pinch and tap. A requestAnimationFrame loop drives the model. Score follows an exponential decay in kilometres, and the design size is scaled to the screen width.

Good for

  • Geography, travel or trivia apps with a daily challenge and a streak
  • Map pickers where users pin a place on a rotating globe
  • Any home screen that combines a card stack, a date strip and a game launch

Dependencies

@shopify/react-native-skiad3-geotopojson-clientreact-native

Tags

3D RotationButtonCardCard StackCarouselCrossfadeDark ModeDragEditorial LayoutEducation and LearningExpand and CollapseFly In / Fly OutGames and EntertainmentGlowGradientHome ScreenLiquid GlassMapMorphingNeon TechNumber RollNumeric DisplayPress FeedbackProductivity and HabitsProgress BarReading and ContentScreen TransitionSpring PhysicsStaggered EntranceState TransitionSwipe GestureText AnimationTravel and Transport

Related