Skip to content

Commit 34dfbf2

Browse files
ryan-williamsclaude
andcommitted
demo: combine title + direct-manipulation demo on /1
Drops the separate cover-image title slide; the deck now opens directly into the interactive showcase: - Title shrunk to `h2`-sized mono `Open-Athena/slidev` (top-left) - Subtitle on the same slide explains what the fork adds and prompts "Try it ↓" - 8 demo cards fit underneath in the existing 4×2 grid - GH link stays absolute-bottom-left; hotkey hint stays absolute-bottom-center - Drops the seriph cover-image background (`background: https://cover.sli.dev`) and the `text-center` class — text-on-photo plus 8 colorful cards was too busy. Default seriph styling on a plain dark background Slides shift: the former /3 ("Upstream slidev deck follows" interstitial) becomes /2; the upstream starter deck starts at /3. `slides.coords.yaml` keys move from `"2":` to `"1":` accordingly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c209729 commit 34dfbf2

2 files changed

Lines changed: 17 additions & 38 deletions

File tree

demo/starter/slides.coords.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Tracked in git by default; add to .gitignore if you'd rather keep positions personal.
33
# Top-level keys are slide numbers (1-based); values are dragId → posStr.
44
"1":
5-
ClZua: 530,460,160,72
6-
"2":
75
feat-reorder-2: 503,228,180,105,0,1000
86
feat-crop: 287,172,180,105,0,100,16,16,10,7
97
feat-crop-2: 288,251,180,105,0,100,28,9,28,28

demo/starter/slides.md

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
---
2-
# try also 'default' to start simple
32
theme: seriph
4-
# random image from a curated Unsplash collection by Anthony
5-
# like them? see https://unsplash.com/collections/94734566/slidev
6-
background: https://cover.sli.dev
7-
# some information about your slides (markdown enabled)
8-
title: Slidev — Open-Athena fork
3+
title: Open-Athena/slidev
94
info: |
10-
## Slidev — Open-Athena fork
11-
Adds direct manipulation: click + drag, snap, crop, undo, multi-tab live edits.
5+
## Open-Athena/slidev
6+
A fork of sli.dev that adds direct manipulation: click + drag, snap, crop, undo, multi-tab live edits.
127
Source: https://github.com/Open-Athena/slidev
13-
# apply UnoCSS classes to the current slide
14-
class: text-center
15-
# https://sli.dev/features/drawing
8+
layout: default
169
drawings:
1710
persist: false
18-
# slide transition: https://sli.dev/guide/animations.html#slide-transitions
1911
transition: slide-left
20-
# enable Comark Syntax: https://comark.dev/syntax/markdown
2112
comark: true
22-
# duration of the presentation
2313
duration: 35min
2414
# make markdown images draggable by default (fork feature)
2515
draggableImages: true
@@ -31,29 +21,9 @@ publish:
3121
format: jpg
3222
---
3323

34-
# <span class="font-mono">Open&#8209;Athena<span class="opacity-50">/</span>slidev</span>
35-
36-
A fork of <a href="https://sli.dev" target="_blank" class="text-white font-semibold underline underline-offset-4 decoration-white/40 hover:decoration-white">sli.dev</a> that adds <span class="text-white font-semibold">direct manipulation</span> — click + drag, snap, crop, undo, multi-tab live edits.
37-
38-
<div class="abs-bl m-6 text-sm">
39-
<a href="https://github.com/Open-Athena/slidev" target="_blank" class="text-white !text-opacity-90 hover:!text-opacity-100 underline underline-offset-4 decoration-white/40 hover:decoration-white">
40-
github.com/Open-Athena/slidev
41-
</a>
42-
</div>
43-
44-
<!--
45-
This deck is upstream slidev's starter, with the OA fork's runtime additions layered in.
46-
Press space / → to advance.
47-
-->
48-
49-
---
50-
layout: default
51-
title: Direct manipulation
52-
---
53-
54-
# Direct manipulation
24+
<h1 class="!text-3xl !mt-0 !mb-1 font-mono">Open&#8209;Athena<span class="opacity-50">/</span>slidev</h1>
5525

56-
In OA/slidev, click any image to **drag**, **resize**, **rotate**, or **reorder** it; **double-click** to enter **crop** mode. Try it on the cards below.
26+
A fork of <a href="https://sli.dev" target="_blank" class="font-semibold underline underline-offset-4 decoration-current/40 hover:decoration-current">sli.dev</a> that adds <span class="font-semibold">direct manipulation</span> — click any image to **drag**, **resize**, **rotate**, or **reorder** it; **double-click** to **crop**. Try it
5727

5828
<img v-drag="'feat-rotate'" src="/feature-rotate.svg">
5929
<img v-drag="'feat-drag'" src="/feature-drag.svg">
@@ -68,6 +38,17 @@ In OA/slidev, click any image to **drag**, **resize**, **rotate**, or **reorder*
6838
Reorder: <kbd>⌘↑</kbd> / <kbd>⌘↓</kbd> forward/back · <kbd>⇧⌘↑</kbd> / <kbd>⇧⌘↓</kbd> to-front/back &nbsp;·&nbsp; Undo / redo: <kbd>⌘Z</kbd> / <kbd>⇧⌘Z</kbd>
6939
</div>
7040

41+
<div class="abs-bl m-6 text-sm">
42+
<a href="https://github.com/Open-Athena/slidev" target="_blank" class="underline underline-offset-4 decoration-current/40 hover:decoration-current">
43+
github.com/Open-Athena/slidev
44+
</a>
45+
</div>
46+
47+
<!--
48+
This deck is upstream slidev's starter, with the OA fork's direct-manipulation features layered in.
49+
Press space / → to advance.
50+
-->
51+
7152
---
7253
layout: center
7354
class: text-center

0 commit comments

Comments
 (0)