Skip to content
项目

nirnejak/react-presentation

在 GitHub 查看

关于

Use your React components as presentation slides

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

React Presentation Maker


Included Slide Components

  • <Cover /> - A cover slide component with the title and subtitle
  • <QuoteBlock /> - A component to show quote with author name
  • <CodeBlock /> - A component to show some code
  • <Points /> - A slide component for bullet points
  • <Profile /> - A slide component for showing profiles of people
  • <SingleImage /> - A slide component for showing single large image
  • <MultiImage /> - A slide component for showing multiple images
  • <About /> - A slide component to tell about yourself
  • <End /> - An outro slide component with social links (pass links to customise, {username} is replaced)

Other Included Components

  • <Wrapper></Wrapper> - A wrapper components with appropriate spacing to wrap your slide/regular components

Controls

Key Action
→ / D / PageDown Next slide
← / A / PageUp Previous slide
Shift + F Toggle fullscreen
F Toggle footer
C Toggle controls
P Toggle page numbers
S Open presenter view

Swipe left/right to navigate on touch screens. The current slide is kept in the URL (?slide=3), so refreshing or sharing a link opens the same slide.

Adding Slides

Slides are defined in app/page.tsx:

const slides: Slide[] = [
  {
    id: "cover",
    content: <Cover title="Welcome" />,
    notes: "Speaker notes, shown in the presenter view",
  },
]

Presenter View

Press S to open the presenter view in a new window: a timer (R to reset), the current and next slide, and the speaker notes. Navigating in either window moves both.

Export to PDF

Print the page (Cmd/Ctrl + P) and save as PDF. Each slide becomes its own 16:9 page.

Additional Packages Used

  • Tailwind CSS - for styling
  • Motion(prev Framer Motion) - for animations
  • Akar Icons - for icons

Available Scripts

Install Dependencies

bun install

Setup Pre-commit

bun run prepare

Start Development Server

bun run dev

Lint all the files

bun run lint

Format all files with oxfmt

bun run format

Run tests

bun run test

Check TypeScript issues

bun run type-check

Build for Production

bun run build

Start Production Server

bun start

探索相关项目

加载中…