Skip to content

Commit d1f1307

Browse files
committed
💄 update showcase slides with brand theme
1 parent 125b731 commit d1f1307

2 files changed

Lines changed: 93 additions & 17 deletions

File tree

showcase/slides.md

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,60 @@
11
---
2+
layout: none
23
addons:
34
- livecode
45
livecode:
56
defaultPort: 9000
67
---
78

8-
# 🛶 slidev-addon-livecode
9+
<div class="absolute inset-0 flex items-center justify-center bg-white">
910

10-
Live VS Code IDE sessions in your presentations
11+
<div class="absolute top-14 right-28 text-[28px] font-bold text-[#1a1a1a]" style="font-family: 'Neuzeit Grotesk', sans-serif;">
12+
MA
13+
</div>
14+
15+
<div class="flex flex-col items-center gap-4 text-center pb-20">
16+
<div class="text-[56px]">🛶</div>
17+
<h1 class="text-[48px] font-bold text-[#1a1a1a] m-0 tracking-tight leading-tight" style="font-family: 'Neuzeit Grotesk', sans-serif;">
18+
slidev-addon-livecode
19+
</h1>
20+
<p class="text-[20px] text-[#525866] m-0">Live VS Code IDE sessions in your presentations</p>
21+
<p class="text-[14px] text-[#525866] m-0">powered with coderaft</p>
22+
<code class="font-mono text-[15px] text-[#1a1a1a] bg-[#f1f1f1] rounded-lg px-5 py-2.5 mt-2 select-text cursor-text">
23+
pnpm add slidev-addon-livecode coderaft
24+
</code>
25+
</div>
26+
27+
<div class="absolute bottom-14 left-28 text-[18px] text-[#525866]">mickaelalvs.dev</div>
28+
29+
<div class="absolute bottom-14 right-28 flex items-center gap-4 text-[#525866]">
30+
<span class="text-[16px]">@mickaelalvs</span>
31+
<svg width="20" height="18" viewBox="0 0 256 226" fill="currentColor">
32+
<path d="M55.491 15.172c29.35 22.035 60.917 66.712 72.509 90.686 11.592-23.974 43.159-68.651 72.509-90.686C221.686-.727 256-13.028 256 26.116c0 7.818-4.482 65.674-7.111 75.068-9.138 32.654-42.436 40.983-72.057 35.942 51.775 8.812 64.946 38 36.501 67.187-54.021 55.433-77.644-13.908-83.696-31.676-1.11-3.257-1.63-4.78-1.637-3.485-.008-1.296-.527.228-1.637 3.485-6.052 17.768-29.675 87.11-83.696 31.676-28.445-29.187-15.274-58.375 36.5-67.187-29.62 5.041-62.918-3.288-72.056-35.942C4.482 91.79 0 33.934 0 26.116 0-13.028 34.314-.727 55.491 15.172Z" />
33+
</svg>
34+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
35+
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
36+
</svg>
37+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
38+
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
39+
</svg>
40+
</div>
41+
42+
</div>
1143

1244
---
1345

1446
# 🚀 Basic usage
1547

16-
<div class="h-96 mt-4 rounded-xl overflow-hidden">
48+
<div class="flex-1 rounded-xl overflow-hidden border border-gray-200">
1749
<Editor session="demo" />
1850
</div>
1951

2052
---
2153

2254
# 📂 Specific workspace
2355

24-
<div class="h-96 mt-4 rounded-xl overflow-hidden">
25-
<Editor session="my-project" defaultFolder="/Users/malves.externe/Projects/addons/slidev-addon-livecode" />
56+
<div class="flex-1 rounded-xl overflow-hidden border border-gray-200">
57+
<Editor session="my-project" defaultFolder=".." />
2658
</div>
2759

2860
---
@@ -31,25 +63,20 @@ Live VS Code IDE sessions in your presentations
3163

3264
State is preserved when navigating away and back.
3365

34-
<div class="h-80 mt-4 rounded-xl overflow-hidden">
66+
<div class="flex-1 rounded-xl overflow-hidden border border-gray-200">
3567
<Editor session="demo" persist />
3668
</div>
3769

3870
---
3971

40-
# 🪟 Two editors side by side
72+
# 📐 Custom height
4173

42-
<div class="grid grid-cols-2 gap-4 h-80 mt-4">
43-
<div class="rounded-xl overflow-hidden">
44-
<Editor session="client" defaultFolder="/Users/malves.externe/Projects/addons/slidev-addon-livecode" />
45-
</div>
46-
<div class="rounded-xl overflow-hidden">
47-
<Editor session="server" defaultFolder="/Users/malves.externe/Projects/addons/slidev-addon-liveshell" />
48-
</div>
49-
</div>
74+
<Editor session="small" height="300px" />
5075

5176
---
5277

53-
# 📐 Custom height
78+
# 🔍 Zoom
5479

55-
<Editor session="small" height="300px" />
80+
<div class="flex-1 rounded-xl overflow-hidden border border-gray-200">
81+
<Editor session="zoomed" :zoom="0.5" />
82+
</div>

showcase/style.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* ===== Fonts ===== */
2+
3+
@font-face {
4+
font-family: 'Biotif';
5+
src: url('https://mickaelalvs.dev/static/font/Biotif-Regular.woff2') format('woff2');
6+
font-weight: 400;
7+
font-display: swap;
8+
}
9+
10+
@font-face {
11+
font-family: 'Neuzeit Grotesk';
12+
src: url('https://mickaelalvs.dev/static/font/NeuzeitGrotesk-Bold.woff2') format('woff2');
13+
font-weight: 700;
14+
font-display: swap;
15+
}
16+
17+
@font-face {
18+
font-family: 'Fira Code';
19+
src: url('https://mickaelalvs.dev/static/font/FiraCode-Regular.woff2') format('woff2');
20+
font-weight: 400;
21+
font-display: swap;
22+
}
23+
24+
/* ===== Layout ===== */
25+
26+
.slidev-layout.default {
27+
display: flex;
28+
flex-direction: column;
29+
}
30+
31+
/* ===== Slidev font overrides ===== */
32+
33+
.slidev-layout {
34+
font-family: 'Biotif', sans-serif;
35+
}
36+
37+
.slidev-layout h1,
38+
.slidev-layout h2,
39+
.slidev-layout h3,
40+
.slidev-layout h4 {
41+
font-family: 'Neuzeit Grotesk', sans-serif;
42+
font-weight: 700;
43+
font-size: 1.8rem;
44+
}
45+
46+
.slidev-layout code,
47+
.slidev-layout pre {
48+
font-family: 'Fira Code', monospace;
49+
}

0 commit comments

Comments
 (0)