A slideshow application built with React Router 7, TypeScript, and MDX. Features dynamic slide discovery, smooth transitions, and PowerPoint-inspired designs.
- Bun 1.0+
- Clone the repository:
git clone <repository-url>
cd rr7-slides- Install dependencies:
bun install- Start the development server:
bun run dev- Open your browser to
http://localhost:5173
/- Home page with navigation to start slideshow/slides/{slide-id}- Full-screen presentation mode (e.g.,/slides/intro)
In presentation mode:
- Left/Right Arrow Keys - Navigate between slides
- Navigation buttons - Click previous/next buttons on screen
- Slide indicators - Click dots at bottom to jump to specific slides
- Create a new
.mdxfile inapp/routes/slides/ - Add frontmatter with
titleandorderfields - Write your slide content using MDX:
---
title: Your Slide Title
order: 7
---
<div className="h-full flex flex-col justify-center items-center text-center">
<h1 className="text-7xl font-bold text-white mb-8">Your Slide Title</h1>
<p className="text-2xl text-gray-300">Your content here</p>
</div>- The slide will be automatically discovered and added to the presentation
Slides are ordered by the order field in frontmatter:
intro.mdx(order: 1) - Introduction slidealfa.mdx(order: 2) - Title & photo layoutbeta.mdx(order: 3) - Section title with two columnscharlie.mdx(order: 4) - Photo & content layoutdelta.mdx(order: 5) - Key statementend.mdx(order: 6) - Closing slide
app/
├── routes/
│ ├── slides/ # MDX slide files
│ ├── home.tsx # Landing page
│ └── stage.tsx # Presentation component
├── utils/
│ ├── slide-discovery.ts # Dynamic slide discovery using Vite glob
│ └── slides.server.ts # Server-side slide navigation
├── types/
│ └── mdx.d.ts # MDX module type declarations
├── app.css # Global styles with view transitions
├── root.tsx # App root component
└── routes.ts # Route configuration
- React Router 7 - File-based routing and SSR
- MDX - Markdown with React components
- TailwindCSS 4 - Utility-first CSS framework
- TypeScript - Type safety
- Vite - Build tool and dev server
The application uses Vite's import.meta.glob to automatically discover slides:
- Scans
app/routes/slides/*.mdxfiles - Extracts ordering from the
orderfield in frontmatter - Lazy loads slide components for performance
- Caches metadata to avoid repeated discovery
bun run dev # Start development server
bun run build # Build for production
bun start # Start production server
bun run typecheck # Type checking (includes React Router type generation)A multi-stage Dockerfile is included. Build and run:
docker build -t rr7-slides .
docker run -p 3000:3000 rr7-slidesbun run build
bun startThis project is open source and available under the MIT License.
Built with ❤️ using React Router 7, TypeScript, and MDX.