Skip to content

CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.

feat: tutorials page with the Bilibili walkthroughs, promo video in the README

codingFeng10187905fc2cfda
diff --git a/README.md b/README.md
index 278aba7..adaef6e 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,8 @@
<a href="README.zh-CN.md">Chinese</a>
</p>
+https://github.com/user-attachments/assets/582c70ae-38df-4949-913c-c3f4369a7c8c
+
<p align="center">
<strong>⭐ If CanvasAnvil helps your workflow, please star the repo and fork it for your own canvas experiments.</strong>
</p>
@@ -166,7 +168,18 @@ Current online access URL:
## Video Tutorial
-- Bilibili tutorial: [https://b23.tv/pFWv7iI](https://b23.tv/pFWv7iI)
+One walkthrough per canvas on Bilibili (narrated in Chinese). In the app, the **Tutorials** button at the top of the home page plays them in place.
+
+<table>
+ <tr>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV1wyxs66EEd"><img src="public/tutorials/diagram.jpg" alt="A whole architecture diagram from one sentence, and edits that touch only what you name" width="100%" /></a><br/><strong>🔷 Diagram</strong> · <a href="https://www.bilibili.com/video/BV1wyxs66EEd">A whole architecture diagram from one sentence, and edits that touch only what you name</a></td>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV1ryxs6zEtN"><img src="public/tutorials/cad.jpg" alt="A full set of renovation drawings from one request, plus a 3D walkthrough" width="100%" /></a><br/><strong>🏠 Interior Design</strong> · <a href="https://www.bilibili.com/video/BV1ryxs6zEtN">A full set of renovation drawings from one request, plus a 3D walkthrough</a></td>
+ </tr>
+ <tr>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV1oGxs6hEf6"><img src="public/tutorials/ppt.jpg" alt="An 8-slide deck from one sentence, with 200+ templates to choose from" width="100%" /></a><br/><strong>📑 PPT</strong> · <a href="https://www.bilibili.com/video/BV1oGxs6hEf6">An 8-slide deck from one sentence, with 200+ templates to choose from</a></td>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV17Gxs6aETm"><img src="public/tutorials/canvas.jpg" alt="Circle a spot and only that changes; the rest of the image stays put" width="100%" /></a><br/><strong>🖌️ Free Canvas</strong> · <a href="https://www.bilibili.com/video/BV17Gxs6aETm">Circle a spot and only that changes; the rest of the image stays put</a></td>
+ </tr>
+</table>
## 🧰 Skills
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 03ea5b5..33bf4c5 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -27,6 +27,8 @@
<a href="README.md">English</a>
</p>
+https://github.com/user-attachments/assets/582c70ae-38df-4949-913c-c3f4369a7c8c
+
<p align="center">
<strong>⭐ 如果 CanvasAnvil 对你有帮助,欢迎给仓库点个 Star,也可以 Fork 一份继续扩展你自己的画布工作流。</strong>
</p>
@@ -166,7 +168,18 @@
## 🎬 视频教程
-- Bilibili 教程:[https://b23.tv/pFWv7iI](https://b23.tv/pFWv7iI)
+每个画布一段 B 站完整演示。在应用里,首页顶部的「教程」按钮可以直接播放。
+
+<table>
+ <tr>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV1wyxs66EEd"><img src="public/tutorials/diagram.jpg" alt="一句话画出整张架构图,改图只动你说的地方" width="100%" /></a><br/><strong>🔷 图表绘制</strong> · <a href="https://www.bilibili.com/video/BV1wyxs66EEd">一句话画出整张架构图,改图只动你说的地方</a></td>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV1ryxs6zEtN"><img src="public/tutorials/cad.jpg" alt="一句需求出整套装修图纸,还能 3D 漫游" width="100%" /></a><br/><strong>🏠 室内设计</strong> · <a href="https://www.bilibili.com/video/BV1ryxs6zEtN">一句需求出整套装修图纸,还能 3D 漫游</a></td>
+ </tr>
+ <tr>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV1oGxs6hEf6"><img src="public/tutorials/ppt.jpg" alt="一句话生成 8 页 PPT,200 多套模板随便挑" width="100%" /></a><br/><strong>📑 PPT 演示</strong> · <a href="https://www.bilibili.com/video/BV1oGxs6hEf6">一句话生成 8 页 PPT,200 多套模板随便挑</a></td>
+ <td width="50%" align="center"><a href="https://www.bilibili.com/video/BV17Gxs6aETm"><img src="public/tutorials/canvas.jpg" alt="圈哪里改哪里,AI 改图不动其他地方" width="100%" /></a><br/><strong>🖌️ 自由画布</strong> · <a href="https://www.bilibili.com/video/BV17Gxs6aETm">圈哪里改哪里,AI 改图不动其他地方</a></td>
+ </tr>
+</table>
## 🧰 Skills
diff --git a/client/app/App.tsx b/client/app/App.tsx
index 30a08f7..547bdea 100644
--- a/client/app/App.tsx
+++ b/client/app/App.tsx
@@ -1,4 +1,4 @@
-import { Suspense, useEffect, useState } from "react";
+import { Suspense, useEffect, useRef, useState } from "react";
import { Monitor, Moon, Sun } from "lucide-react";
import { AnimatePresence, MotionConfig, motion } from "motion/react";
import { Toaster } from "sonner";
@@ -7,6 +7,7 @@ import { ErrorBoundary } from "@/app/ErrorBoundary";
import { DEFAULT_WORKSPACE, WORKSPACES, isWorkspaceId, type WorkspaceId } from "@/app/workspaces";
import { SettingsDialog } from "@/app/SettingsDialog";
import { LandingPage } from "@/pages/LandingPage";
+import { TutorialsPage } from "@/pages/tutorials/TutorialsPage";
import { cn } from "@/shared/lib/utils";
import { setUiLanguage, t, useUiLanguage, type UiLanguage } from "@/shared/i18n";
import { SPRING, TWEEN } from "@/shared/motion";
@@ -15,6 +16,15 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "@/shared/ui/tooltip";
const APP_VIEW_STORAGE_KEY = "CanvasAnvil-app-view-v1";
const APP_WORKSPACE_STORAGE_KEY = "CanvasAnvil-active-workspace-v1";
+/** The tutorials page lives at a hash so it can be linked to and left with the back button. */
+const TUTORIALS_HASH = "#tutorials";
+
+const isTutorialsHash = () => typeof window !== "undefined" && window.location.hash === TUTORIALS_HASH;
+
+/** Drop the hash without adding a history entry. */
+function clearHash() {
+ window.history.replaceState(null, "", window.location.pathname + window.location.search);
+}
function readStoredWorkspace(): WorkspaceId {
if (typeof window === "undefined") return DEFAULT_WORKSPACE;
@@ -191,6 +201,31 @@ export default function App() {
return localStorage.getItem(APP_VIEW_STORAGE_KEY) !== "workspace";
});
const [activeWorkspace, setActiveWorkspace] = useState<WorkspaceId>(readStoredWorkspace);
+ const [showTutorials, setShowTutorials] = useState(isTutorialsHash);
+ // Whether this session pushed the tutorials entry, so leaving can go back
+ // to it instead of stacking another entry on top.
+ const openedTutorialsRef = useRef(false);
+
+ useEffect(() => {
+ const onHashChange = () => setShowTutorials(isTutorialsHash());
+ window.addEventListener("hashchange", onHashChange);
+ return () => window.removeEventListener("hashchange", onHashChange);
+ }, []);
+
+ const openTutorials = () => {
+ openedTutorialsRef.current = true;
+ window.location.hash = TUTORIALS_HASH;
+ };
+
+ const closeTutorials = () => {
+ if (openedTutorialsRef.current) {
+ openedTutorialsRef.current = false;
+ window.history.back();
+ return;
+ }
+ clearHash();
+ setShowTutorials(false);
+ };
// The inline script in index.html sets the class before first paint; this
// keeps it correct across a hot reload that drops the class.
@@ -206,6 +241,23 @@ export default function App() {
localStorage.setItem(APP_WORKSPACE_STORAGE_KEY, activeWorkspace);
}, [activeWorkspace]);
+ if (showTutorials) {
+ return (
+ <MotionConfig reducedMotion="user">
+ <TutorialsPage
+ onBack={closeTutorials}
+ onEnterWorkspace={(workspace) => {
+ openedTutorialsRef.current = false;
+ clearHash();
+ setShowTutorials(false);
+ setActiveWorkspace(workspace);
+ setShowLanding(false);
+ }}
+ />
+ </MotionConfig>
+ );
+ }
+
if (showLanding) {
return (
<MotionConfig reducedMotion="user">
@@ -214,6 +266,7 @@ export default function App() {
if (workspace) setActiveWorkspace(workspace);
setShowLanding(false);
}}
+ onOpenTutorials={openTutorials}
/>
</MotionConfig>
);
diff --git a/client/pages/LandingPage.tsx b/client/pages/LandingPage.tsx
index 6f443b1..e167d39 100644
--- a/client/pages/LandingPage.tsx
+++ b/client/pages/LandingPage.tsx
@@ -3,8 +3,9 @@ import type { PortalWorkspace } from "@/pages/portal/data";
interface LandingPageProps {
onStart: (workspace?: PortalWorkspace) => void;
+ onOpenTutorials: () => void;
}
-export function LandingPage({ onStart }: LandingPageProps) {
- return <PortalPage onEnterWorkspace={(workspace) => onStart(workspace)} />;
+export function LandingPage({ onStart, onOpenTutorials }: LandingPageProps) {
+ return <PortalPage onEnterWorkspace={(workspace) => onStart(workspace)} onOpenTutorials={onOpenTutorials} />;
}
diff --git a/client/pages/portal/PortalPage.tsx b/client/pages/portal/PortalPage.tsx
index 8d8c8e4..4dfeb10 100644
--- a/client/pages/portal/PortalPage.tsx
+++ b/client/pages/portal/PortalPage.tsx
@@ -5,6 +5,7 @@ import {
Blocks,
ChartNoAxesCombined,
CheckCircle2,
+ CirclePlay,
Code2,
FileText,
Github,
@@ -29,6 +30,7 @@ import { portalCanvasItems, type PortalCanvasItem, type PortalWorkspace } from "
type PortalPageProps = {
onEnterWorkspace: (workspace: PortalWorkspace) => void;
+ onOpenTutorials: () => void;
};
type PortalSection = "home" | PortalWorkspace;
@@ -350,13 +352,15 @@ function Header({
setActiveSection,
setActiveCanvas,
setUiLang,
+ onOpenTutorials,
}: {
uiLang: UiLanguage;
- copy: { home: string; openRepo: string };
+ copy: { home: string; openRepo: string; tutorials: string };
activeSection: PortalSection;
setActiveSection: (section: PortalSection) => void;
setActiveCanvas: (workspace: PortalWorkspace) => void;
setUiLang: Dispatch<SetStateAction<UiLanguage>>;
+ onOpenTutorials: () => void;
}) {
const isChinese = uiLang === "zh";
@@ -365,7 +369,7 @@ function Header({
{/* Below xl: logo and buttons share the first row, the nav takes the
second. It used to stack all three, spending a third row -- about
60px of an already short page -- on two small buttons. */}
- <div className="grid grid-cols-[1fr_auto] items-center gap-x-4 gap-y-2 xl:grid-cols-[220px_minmax(0,1fr)_132px] xl:gap-3">
+ <div className="grid grid-cols-[1fr_auto] items-center gap-x-2 gap-y-2 sm:gap-x-4 xl:grid-cols-[220px_minmax(0,1fr)_220px] xl:gap-3">
<button
className="group col-start-1 row-start-1 flex items-center gap-3 justify-self-start text-left"
onClick={() => {
@@ -418,10 +422,20 @@ function Header({
</div>
</nav>
- <div className="col-start-2 row-start-1 flex justify-end gap-2 xl:col-start-3">
+ <div className="col-start-2 row-start-1 flex justify-end gap-1.5 sm:gap-2 xl:col-start-3">
+ {/* Icon only on phones, where the label pushed the GitHub button off the edge. */}
<Button
variant="outline"
- className="h-9 rounded-full px-4"
+ className="h-9 w-9 rounded-full px-0 sm:w-auto sm:px-4"
+ onClick={onOpenTutorials}
+ aria-label={copy.tutorials}
+ >
+ <CirclePlay className="h-4 w-4" />
+ <span className="hidden sm:inline">{copy.tutorials}</span>
+ </Button>
+ <Button
+ variant="outline"
+ className="h-9 rounded-full px-3 sm:px-4"
onClick={() => setUiLang((prev) => (prev === "zh" ? "en" : "zh"))}
>
{uiLang === "zh" ? "EN" : "\u4e2d\u6587"}
@@ -578,7 +592,7 @@ function SimpleCanvasDetailPage({
);
}
-export function PortalPage({ onEnterWorkspace }: PortalPageProps) {
+export function PortalPage({ onEnterWorkspace, onOpenTutorials }: PortalPageProps) {
const [uiLang, setUiLang] = useState<UiLanguage>(() => getUiLanguage());
const [activeCanvas, setActiveCanvas] = useState<PortalWorkspace>("diagram");
const [activeSection, setActiveSection] = useState<PortalSection>("home");
@@ -664,6 +678,7 @@ export function PortalPage({ onEnterWorkspace }: PortalPageProps) {
tagB: "\u7ed3\u6784\u5316\u751f\u6210",
tagC: "\u5c40\u90e8\u4fee\u6539",
openRepo: "GitHub",
+ tutorials: "教程",
footerLicense: "\u5f00\u6e90\u534f\u8bae\uff1aMIT",
footerContact: "\u8054\u7cfb\u65b9\u5f0f",
hub: "CanvasAnvil",
@@ -685,6 +700,7 @@ export function PortalPage({ onEnterWorkspace }: PortalPageProps) {
tagB: "Structured output",
tagC: "Partial edits",
openRepo: "GitHub",
+ tutorials: "Tutorials",
footerLicense: "License: MIT",
footerContact: "Contact",
hub: "CanvasAnvil",
@@ -772,6 +788,7 @@ export function PortalPage({ onEnterWorkspace }: PortalPageProps) {
setActiveSection={setActiveSection}
setActiveCanvas={setActiveCanvas}
setUiLang={setUiLang}
+ onOpenTutorials={onOpenTutorials}
/>
</div>
diff --git a/client/pages/tutorials/TutorialsPage.tsx b/client/pages/tutorials/TutorialsPage.tsx
new file mode 100644
index 0000000..8455554
--- /dev/null
+++ b/client/pages/tutorials/TutorialsPage.tsx
@@ -0,0 +1,145 @@
+import { useState } from "react";
+import { ArrowLeft, ArrowRight, Blocks, ExternalLink, Home, Paintbrush, Play, Presentation } from "lucide-react";
+import type { WorkspaceId } from "@/app/workspaces";
+import { BrandIcon } from "@/app/BrandIcon";
+import { portalCanvasItems } from "@/pages/portal/data";
+import { Button } from "@/shared/ui/button";
+import { setUiLanguage, useUiLanguage } from "@/shared/i18n";
+import { Stagger, StaggerItem } from "@/shared/motion";
+import { bilibiliPlayerUrl, bilibiliVideoUrl, tutorials, type Tutorial } from "./data";
+
+const workspaceIcons: Record<WorkspaceId, typeof Blocks> = {
+ diagram: Blocks,
+ cad: Home,
+ ppt: Presentation,
+ canvas: Paintbrush,
+};
+
+const formatDuration = (seconds: number) =>
+ `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, "0")}`;
+
+/**
+ * The cover until it is clicked, then Bilibili's player. The embedded player
+ * shows the video's first frame -- black for these -- rather than the cover,
+ * and four players loading at once is a lot for a page nobody has played yet.
+ */
+function TutorialPlayer({ tutorial, title, playLabel }: { tutorial: Tutorial; title: string; playLabel: string }) {
+ const [playing, setPlaying] = useState(false);
+
+ return (
+ <div className="aspect-video overflow-hidden rounded-xl border border-border/50 bg-sunken">
+ {playing ? (
+ <iframe
+ src={bilibiliPlayerUrl(tutorial.bvid)}
+ title={title}
+ allow="autoplay; fullscreen; picture-in-picture"
+ allowFullScreen
+ className="h-full w-full"
+ />
+ ) : (
+ <button
+ type="button"
+ aria-label={`${playLabel}: ${title}`}
+ onClick={() => setPlaying(true)}
+ className="group relative block h-full w-full focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-inset focus-visible:ring-ring/40"
+ >
+ <img src={tutorial.cover} alt="" loading="lazy" className="h-full w-full object-cover" />
+ <span className="absolute inset-0 bg-black/0 transition-colors duration-base ease-out-soft group-hover:bg-black/15" />
+ <span className="absolute left-1/2 top-1/2 flex size-16 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-soft-lg transition-transform duration-base ease-out-soft group-hover:scale-110">
+ <Play className="ml-1 size-7 fill-current" />
+ </span>
+ <span className="absolute bottom-2.5 right-2.5 rounded-md bg-black/65 px-2 py-0.5 text-xs font-medium tabular-nums text-white">
+ {formatDuration(tutorial.duration)}
+ </span>
+ </button>
+ )}
+ </div>
+ );
+}
+
+type TutorialsPageProps = {
+ onBack: () => void;
+ onEnterWorkspace: (workspace: WorkspaceId) => void;
+};
+
+/** One Bilibili walkthrough per canvas, playable in place. */
+export function TutorialsPage({ onBack, onEnterWorkspace }: TutorialsPageProps) {
+ const uiLang = useUiLanguage();
+ const isChinese = uiLang === "zh";
+
+ return (
+ <div className="h-screen overflow-y-auto bg-background font-sans text-foreground">
+ <div className="mx-auto w-full max-w-[1280px] px-4 pb-12 pt-4 sm:px-6 lg:px-10">
+ <header className="flex items-center justify-between gap-4 rounded-2xl border border-border/60 bg-card/85 px-3 py-2.5 shadow-soft backdrop-blur-xl lg:px-5">
+ <Button variant="ghost" className="h-9 rounded-full px-3" onClick={onBack}>
+ <ArrowLeft className="size-4" />
+ {isChinese ? "返回" : "Back"}
+ </Button>
+ <div className="flex items-center gap-2.5">
+ <BrandIcon className="h-8 w-8" />
+ <span className="font-display text-[19px] font-semibold tracking-[-0.015em]">CanvasAnvil</span>
+ </div>
+ <Button
+ variant="outline"
+ className="h-9 rounded-full px-4"
+ onClick={() => setUiLanguage(isChinese ? "en" : "zh")}
+ >
+ {isChinese ? "EN" : "中文"}
+ </Button>
+ </header>
+
+ <Stagger className="mt-10 short:mt-6" stagger={0.06}>
+ <StaggerItem>
+ <h1 className="font-display text-[clamp(32px,3.6vw,48px)] font-semibold leading-tight">
+ {isChinese ? "视频教程" : "Video Tutorials"}
+ </h1>
+ </StaggerItem>
+ <StaggerItem>
+ <p className="mt-3 max-w-[680px] text-[16px] leading-7 text-muted-foreground">
+ {isChinese
+ ? "每个画布一段完整演示:从一句话开始,到改图、导出。"
+ : "One full walkthrough per canvas, from the first sentence to edits and export. The videos are narrated in Chinese."}
+ </p>
+ </StaggerItem>
+
+ <div className="mt-8 grid gap-6 md:grid-cols-2">
+ {tutorials.map((tutorial) => {
+ const canvas = portalCanvasItems.find((item) => item.id === tutorial.workspace);
+ const Icon = workspaceIcons[tutorial.workspace];
+ const canvasTitle = canvas ? (isChinese ? canvas.zhTitle : canvas.enTitle) : tutorial.workspace;
+ const title = isChinese ? tutorial.zhTitle : tutorial.enTitle;
+
+ return (
+ <StaggerItem key={tutorial.bvid}>
+ <article className="flex h-full flex-col rounded-[22px] border border-border/60 bg-card p-4 shadow-soft">
+ <TutorialPlayer tutorial={tutorial} title={title} playLabel={isChinese ? "播放" : "Play"} />
+
+ <div className="mt-4 flex items-center gap-2 text-[13px] font-medium text-muted-foreground">
+ <span className="h-2.5 w-2.5 rounded-full" style={{ backgroundColor: canvas?.accent }} />
+ <Icon className="size-4" />
+ {canvasTitle}
+ </div>
+ <h2 className="mt-1.5 flex-1 text-[18px] font-semibold leading-snug">{title}</h2>
+
+ <div className="mt-4 flex flex-wrap items-center gap-2">
+ <Button className="group h-10 rounded-xl px-4" onClick={() => onEnterWorkspace(tutorial.workspace)}>
+ {isChinese ? `进入${canvasTitle}` : `Open ${canvasTitle}`}
+ <ArrowRight className="size-4 transition-transform duration-fast ease-out-soft group-hover:translate-x-0.5" />
+ </Button>
+ <Button asChild variant="ghost" className="h-10 rounded-xl px-3 text-muted-foreground">
+ <a href={bilibiliVideoUrl(tutorial.bvid)} target="_blank" rel="noreferrer">
+ {isChinese ? "在 B 站打开" : "Watch on Bilibili"}
+ <ExternalLink className="size-4" />
+ </a>
+ </Button>
+ </div>
+ </article>
+ </StaggerItem>
+ );
+ })}
+ </div>
+ </Stagger>
+ </div>
+ </div>
+ );
+}
diff --git a/client/pages/tutorials/data.ts b/client/pages/tutorials/data.ts
new file mode 100644
index 0000000..d4827a0
--- /dev/null
+++ b/client/pages/tutorials/data.ts
@@ -0,0 +1,54 @@
+import type { WorkspaceId } from "@/app/workspaces";
+
+export type Tutorial = {
+ workspace: WorkspaceId;
+ /** Bilibili video id; the page embeds the player and links out by it. */
+ bvid: string;
+ /** The video's Bilibili cover, kept in public/ (Bilibili's CDN refuses foreign referrers). */
+ cover: string;
+ /** Length in seconds. */
+ duration: number;
+ zhTitle: string;
+ enTitle: string;
+};
+
+export const tutorials: Tutorial[] = [
+ {
+ workspace: "diagram",
+ bvid: "BV1wyxs66EEd",
+ cover: "/tutorials/diagram.jpg",
+ duration: 314,
+ zhTitle: "一句话画出整张架构图,改图只动你说的地方",
+ enTitle: "A whole architecture diagram from one sentence, and edits that touch only what you name",
+ },
+ {
+ workspace: "cad",
+ bvid: "BV1ryxs6zEtN",
+ cover: "/tutorials/cad.jpg",
+ duration: 363,
+ zhTitle: "一句需求出整套装修图纸,还能 3D 漫游",
+ enTitle: "A full set of renovation drawings from one request, plus a 3D walkthrough",
+ },
+ {
+ workspace: "ppt",
+ bvid: "BV1oGxs6hEf6",
+ cover: "/tutorials/ppt.jpg",
+ duration: 303,
+ zhTitle: "一句话生成 8 页 PPT,200 多套模板随便挑",
+ enTitle: "An 8-slide deck from one sentence, with 200+ templates to choose from",
+ },
+ {
+ workspace: "canvas",
+ bvid: "BV17Gxs6aETm",
+ cover: "/tutorials/canvas.jpg",
+ duration: 203,
+ zhTitle: "圈哪里改哪里,AI 改图不动其他地方",
+ enTitle: "Circle a spot and only that changes; the rest of the image stays put",
+ },
+];
+
+export const bilibiliVideoUrl = (bvid: string) => `https://www.bilibili.com/video/${bvid}`;
+
+/** Only loaded once the cover is clicked, so it can start playing straight away. */
+export const bilibiliPlayerUrl = (bvid: string) =>
+ `https://player.bilibili.com/player.html?bvid=${bvid}&autoplay=1&high_quality=1`;
diff --git a/public/tutorials/cad.jpg b/public/tutorials/cad.jpg
new file mode 100644
index 0000000..aac6fd4
Binary files /dev/null and b/public/tutorials/cad.jpg differ
diff --git a/public/tutorials/canvas.jpg b/public/tutorials/canvas.jpg
new file mode 100644
index 0000000..61aaad3
Binary files /dev/null and b/public/tutorials/canvas.jpg differ
diff --git a/public/tutorials/diagram.jpg b/public/tutorials/diagram.jpg
new file mode 100644
index 0000000..d22cd16
Binary files /dev/null and b/public/tutorials/diagram.jpg differ
diff --git a/public/tutorials/ppt.jpg b/public/tutorials/ppt.jpg
new file mode 100644
index 0000000..59ffc2f
Binary files /dev/null and b/public/tutorials/ppt.jpg differ