Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/components/CodeBlock.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const {
---

<div
class="relative group"
class="relative group bg-slate-50 dark:bg-slate-900/50 rounded-lg border border-slate-200 dark:border-slate-600 overflow-x-auto"
data-code={code}
>
<!-- Light theme for light mode, hidden in dark -->
Expand All @@ -36,8 +36,7 @@ const {
inline={inline}
theme={lightTheme}
defaultColor={false}

class="text-sm block dark:hidden"
class="text-sm block dark:hidden !bg-transparent"
/>

<!-- Dark theme for dark mode, hidden in light -->
Expand All @@ -48,6 +47,6 @@ const {
inline={inline}
theme={darkTheme}
defaultColor={false}
class="hidden dark:block text-sm"
class="hidden dark:block text-sm !bg-transparent"
/>
</div>
15 changes: 9 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -464,19 +464,20 @@ Lux # For Neovim`;
>
1
</div>
<div>
<div class="flex-1 min-w-0">
<h3
class="text-xl font-semibold mb-2 text-slate-900 dark:text-white"
>
Clone the Repository
</h3>
<p class="text-slate-700 dark:text-slate-300 mb-3">
<p class="text-slate-700 dark:text-slate-300 mb-4">
Download LuxVim to your local machine:
</p>

<div
data-controller="copy_to_clipboard"
data-copy-to-clipboard-code-value={installCode}
class="w-full"
>
<CodeBlock code={installCode} lang="bash" />

Expand All @@ -491,19 +492,20 @@ Lux # For Neovim`;
>
2
</div>
<div>
<div class="flex-1 min-w-0">
<h3
class="text-xl font-semibold mb-2 text-slate-900 dark:text-white"
>
Run Installation
</h3>
<p class="text-slate-700 dark:text-slate-300 mb-3">
<p class="text-slate-700 dark:text-slate-300 mb-4">
The install script handles everything automatically:
</p>

<div
data-controller="copy_to_clipboard"
data-copy-to-clipboard-code-value={runInstallCode}
class="w-full"
>
<CodeBlock code={runInstallCode} lang="bash" />

Expand All @@ -518,18 +520,19 @@ Lux # For Neovim`;
>
3
</div>
<div>
<div class="flex-1 min-w-0">
<h3
class="text-xl font-semibold mb-2 text-slate-900 dark:text-white"
>
Launch LuxVim
</h3>
<p class="text-slate-700 dark:text-slate-300 mb-3">
<p class="text-slate-700 dark:text-slate-300 mb-4">
Start coding with your new setup:
</p>
<div
data-controller="copy_to_clipboard"
data-copy-to-clipboard-code-value={launchCode}
class="w-full"
>
<CodeBlock code={launchCode} lang="bash" />

Expand Down