代码优先的演示形式:每个演示是独立 Web 应用,可包含实时演示、真实密码学与 3D 场景
Distributed_Consensus_in_Blockchain — Vite 企业官网模板
作者 Drago-03
一个基于 Vite、React 与 Three.js 的代码优先演示仓库,首个演示用 22 张幻灯片、84 个步骤讲解区块链分布式共识,并包含一个可搜索的演示中心。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
首个演示共 22 张幻灯片、84 个步骤,分基础、机制、现实世界三部分
演示中心模仿 Google Slides 首页,支持按主题搜索和筛选,并可从模板开始
共享引擎包含步骤时间线、相机在幻灯片站点间飞行、步骤栏与演讲者窗口
新增演示只需在 PPTs/<Topic>/<Deck_Name>/ 下放置含 deck.json 的文件夹即可被自动构建和列出
推送到 main 后通过 GitHub Actions 重新构建并部署到 GitHub Pages
模板详细介绍
该仓库托管一组「代码优先」的演示文稿,每个演示都是独立的 Web 应用,因此可以在幻灯片中嵌入实时演示、真实密码学逻辑和 3D 场景,而不是静态页面。首个演示《Distributed Consensus in Blockchain》共 22 张幻灯片,分为三部分:A 部分(第 1–11 页)介绍区块链、网络、共识与三难困境等基础;B 部分(第 12–16 页)讲解工作量证明、权益证明及其他机制;C 部分(第 17–22 页)讨论分叉、攻击、采用情况与后续发展。站点入口是一个模仿 Google Slides 首页的深色演示中心,可按主题搜索和筛选、从模板开始,每次推送到 main 都会重新构建并部署到 GitHub Pages。
仓库按 PPTs/<Topic>/<Deck_Name>/ 组织演示,每个含 deck.json 的文件夹会被自动构建并列入中心。演示共享同一套引擎:步骤时间线、在幻灯片「站点」之间飞行的相机装置、步骤栏和演讲者窗口。README 也说明了如何复制现有演示或使用 degit 创建新演示,并指出演示以相对 base 构建,公共资源应通过 import.meta.env.BASE_URL 加载。
README 未提供关于浏览器兼容性、无障碍支持程度或生产环境性能的说明。
适合你的项目吗?
适用场景
- 在浏览器中讲解区块链分布式共识概念,配合 3D 场景与分步演示
- 作为创建新代码优先演示文稿的模板,复制现有演示并替换幻灯片内容
- 在演示中心按主题搜索、筛选并播放多个演示
- 通过 GitHub Pages 发布演示中心与所有演示,并借助 CI 自动构建
适合人群
- 需要制作可交互、含 3D 场景的演示文稿的开发者
- 希望以代码方式维护幻灯片内容与演讲者备注的技术讲师
- 需要将多个演示集中在一个可搜索中心里发布的团队
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Bun 1.3 或更新版本,Node 20+ 配合 npm 也可运行
- 2
克隆仓库后进入 PPTs/Blockchain_Concepts/Distributed_Consensus_in_Blockchain 执行 bun install 和 bun run dev
- 3
本地预览完整站点可运行 bun scripts/build-site.mjs 构建到 _site/,再用 bunx serve _site 打开
- 4
新增演示时复制现有演示文件夹或使用 npx degit,并更新 deck.json、src/slides/meta.ts、src/slides/notes.ts 和 src/slides/registry.ts
- 5
演示以相对 base 构建,公共资源应通过 import.meta.env.BASE_URL 加载
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/Drago-03/Distributed_Consensus_in_Blockchain/blob/main/LICENSEhttps://github.com/Drago-03/Distributed_Consensus_in_Blockchain/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-16。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 85 / 100
- 技术栈
- Vite · React
- 网站类型
- 企业官网
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-10-16
- 截图检查日期
- 2026-10-16
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Vite。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261017 · 2026-10-16
查看当时使用的来源资料
SHA-256: 7ea1ee322f20703dc2f3d7e91e522f37d56f89111b6364189d8540ccb328b370
2026-10-16T16:04:43.240Z
来源文件 / 仓库<div align="center">
# Distributed Consensus in Blockchain
**An interactive, 3D, step-driven presentation that explains how thousands of computers agree on one truth without anyone in charge.**
### [▶ Open the presentation hub](https://drago-03.github.io/Distributed_Consensus_in_Blockchain/)
[](https://drago-03.github.io/Distributed_Consensus_in_Blockchain/)
[](https://github.com/Drago-03/Distributed_Consensus_in_Blockchain/actions/workflows/ci.yml)
[](LICENSE)
[](https://react.dev)
[](https://threejs.org)
[](https://vite.dev)
[](CONTRIBUTING.md)
</div>
---
## Overview
This repository hosts a collection of **code-first presentations**. Each one is a standalone web app, so a deck can contain live demos, real cryptography and 3D scenes instead of static slides.
The first deck, **Distributed Consensus in Blockchain**, covers 22 slides in three parts:
| Part | Theme | Slides |
| :--: | ----- | :----: |
| **A** | Foundations: blockchain, networks, consensus, the trilemma | 1–11 |
| **B** | Mechanisms: Proof of Work, Proof of Stake and other methods | 12–16 |
| **C** | Real world: forks, attacks, adoption, what comes next | 17–22 |
## Live hub
**<https://drago-03.github.io/Distributed_Consensus_in_Blockchain/>**
The site opens on a presentation hub modelled on the Google Slides home screen, in dark mode. Pick a deck to play, search and filter by topic, or start from a template. Every push to `main` rebuilds the hub and all decks and redeploys them to GitHub Pages.
## Repository structure
```text
.
├── PPTs/
│ └── Blockchain_Concepts/
│ └── Distributed_Consensus_in_Blockchain/ ← a deck (Vite + React + Three.js app) + deck.json
├── hub/ ← the presentation hub (static HTML/CSS/JS)
├── scripts/build-site.mjs ← builds the hub + every deck into _site/
├── .github/ ← CI, Pages deploy, issue and PR templates
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
├── SECURITY.md
├── CHANGELOG.md
└── LICENSE
```
Decks are grouped as `PPTs/<Topic>/<Deck_Name>/`, which leaves room for future topics and decks.
## Quick start
Requirements: [Bun](https://bun.sh) 1.3 or newer (Node 20+ with npm also works).
```bash
git clone https://github.com/Drago-03/Distributed_Consensus_in_Blockchain.git
cd Distributed_Consensus_in_Blockchain/PPTs/Blockchain_Concepts/Distributed_Consensus_in_Blockchain
bun install
bun run dev
```
Then open the URL Vite prints, usually <http://localhost:5173>.
See the [deck README](PPTs/Blockchain_Concepts/Distributed_Consensus_in_Blockchain/README.md) for controls, presenter mode, architecture, and how to build your own deck from this template.
### Preview the full site locally
```bash
bun scripts/build-site.mjs # builds the hub and every deck into _site/
bunx serve _site # open the printed URL
```
## Adding a deck to the hub
Any folder at `PPTs/<Topic>/<Deck_Name>/` that contains a `deck.json` is built and listed automatically:
```json
{
"title": "Distributed Consensus in Blockchain",
"topic": "Blockchain Concepts",
"description": "One or two sentences shown in the hub and the template dialog.",
"slides": 22,
"steps": 84,
"minutes": 80,
"tags": ["blockchain", "consensus"],
"accent": "#3ed6c5",
"thumbnail": "thumbnail.webp",
"template": true
}
```
| Field | Required | Purpose |
| ----- | :------: | ------- |
| `title`, `topic`, `description` | ✓ | Card title, topic filter, search text |
| `slides`, `steps`, `minutes` | | Badges and list-view length |
| `tags` | | Extra search keywords |
| `accent` | | Card icon colour |
| `thumbnail` | | 16:9 image in the deck folder (1200×675 WebP recommended) |
| `template` | | `true` also lists the deck under **Start a new presentation** |
Decks are built with a relative base (`vite build --base ./`), so load public assets through `import.meta.env.BASE_URL` instead of absolute `/` paths.
## Using this as a template
Every deck shares the same engine: a step timeline, a camera rig that flies between slide "stations", a step rail and a presenter window. To start a new deck:
1. Copy `PPTs/Blockchain_Concepts/Distributed_Consensus_in_Blockchain/` to `PPTs/<Your_Topic>/<Your_Deck>/`, or run `npx degit Drago-03/Distributed_Consensus_in_Blockchain/PPTs/Blockchain_Concepts/Distributed_Consensus_in_Blockchain my-deck`.
2. Update `deck.json` so the deck shows up in the hub.
3. Edit `src/slides/meta.ts` (titles, step counts, timings) and `src/slides/notes.ts` (speaker notes).
4. Replace the `SlideNN.tsx` files with your own scenes and register them in `src/slides/registry.ts`.
## Contributing
Contributions are welcome: content corrections, new slides, accessibility fixes or entirely new decks. Please read [CONTRIBUTING.md](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md) first.
## License
Source code is released under the [MIT License](LICENSE). Third-party packages keep their own licenses; see [Third-party notices](PPTs/Blockchain_Concepts/Distributed_Consensus_in_Blockchain/README.md#third-party-notices).
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

business-website-template
Modern UI/UX business website design made with React.
Vite · 企业官网

kiaalap
Free admin dashboard template focused on education, online course and school management. Build using Bootstrap…
Vite · 后台

saasboard
Free and open-source SaaS dashboard template for startups, businesses, and AI Tools. | Built with Meku, React,…
Vite · 后台

crowdup
Crowdfunding website template built using React, Vite, Mantine & Typescript.
Vite · 企业官网

vite-react-ts-shadcn-ui
Boilerplate template designed to quickly bootstrap a React.js Web App, SPA, website or landing page with React…
Vite · 企业官网

vite-vanilla-ts
Start a Vanilla TS Web App, SPA, website or landing page using TypeScript, Tailwind CSS 4, ESLint, Husky, Vite…
Vite · 企业官网
