Skip to content

Commit

Permalink
Codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Nov 22, 2023
1 parent ee51173 commit e99f49c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/website/src/components/Highlight.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
height: 180vh;
}
}

</style>

<div class="wrapper"></div>
3 changes: 2 additions & 1 deletion packages/website/src/components/LandingPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import FeatureCard from './FeatureCard.astro';
import Section from './Section.astro';
import Highlight from './Highlight.astro';
import AstroShowcase from './AstroShowcase.astro';
import {Content as CodeBlock} from './codeblock.mdx';
---

<Highlight />
Expand All @@ -12,7 +13,7 @@ import AstroShowcase from './AstroShowcase.astro';
title="Navigate your errors with ease"
description=" Sed a porttitor nulla. Nam tempus imperdiet fringilla. Maecenas et velit dui. Integer sit amet libero ut sapien congue volutpat et ut odio. Fusce viverra, nulla sit amet suscipit varius."
>
<img class="block rounded-lg" src="/images/init.png" width="100%" style={{ maxWidth: 'unset' }} />
<CodeBlock />
</FeatureCard>
</Section>

Expand Down
8 changes: 8 additions & 0 deletions packages/website/src/components/codeblock.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Setup Codeblock
---

```js
import * as Spotlight from '@spotlightjs/core';
Spotlight.init();
```

0 comments on commit e99f49c

Please sign in to comment.