Skip to content

Commit

Permalink
🐛 Landing: Remove import string from frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcarpenter committed Sep 17, 2024
1 parent f40091d commit 2034c77
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions landing/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
---
import { Code } from 'astro:components';
import MainPage from '@layouts/MainPage.astro';
const shepherdIncludeCode = `
<link rel="stylesheet" href="shepherd.js/dist/css/shepherd.css"/>
<script type="module" src="shepherd.js/dist/shepherd.mjs"></script>
`;
---

<MainPage isHome={true}>
<div
class='font-heading mt-8 text-6xl text-center uppercase w-full'
slot='hero-heading'
class="font-heading mt-8 text-6xl text-center uppercase w-full"
slot="hero-heading"
>
<img
class='inline p-4 w-full lg:mt-4 lg:p-0 lg:w-auto'
src='/img/demo.svg'
alt='Demo'
class="inline p-4 w-full lg:mt-4 lg:p-0 lg:w-auto"
src="/img/demo.svg"
alt="Demo"
/>
</div>

<div slot='content'>
<div class='hero-including mt-8'>
<h3 class='demo-heading font-heading text-2xl uppercase'>
<div slot="content">
<div class="hero-including mt-8">
<h3 class="demo-heading font-heading text-2xl uppercase">
01. How to Include
</h3>
<div class='hero-example-code text-left'>
<Code code={shepherdIncludeCode} lang='js' theme='nord' wrap />
<div class="hero-example-code text-left">
<Code
code={`
<link rel="stylesheet" href="shepherd.js/dist/css/shepherd.css"/>
<script type="module" src="shepherd.js/dist/shepherd.mjs"></script>
`}
lang="js"
theme="nord"
wrap
/>
</div>
</div>

<div class='hero-example mt-8'>
<h3 class='demo-heading font-heading text-2xl uppercase'>02. Example</h3>
<div class="hero-example mt-8">
<h3 class="demo-heading font-heading text-2xl uppercase">02. Example</h3>

<div class='hero-example-code text-left'>
<div class="hero-example-code text-left">
<Code
code={`
const tour = new Shepherd.Tour({
Expand Down Expand Up @@ -73,8 +77,8 @@ const shepherdIncludeCode = `
tour.start();
`}
lang='js'
theme='nord'
lang="js"
theme="nord"
wrap
/>
</div>
Expand Down

0 comments on commit 2034c77

Please sign in to comment.