Skip to content

Commit 02f04be

Browse files
🐛 Landing: Remove import string from frontmatter (#2975)
1 parent f40091d commit 02f04be

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

landing/src/pages/index.astro

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,43 @@
11
---
22
import { Code } from 'astro:components';
33
import MainPage from '@layouts/MainPage.astro';
4-
const shepherdIncludeCode = `
5-
<link rel="stylesheet" href="shepherd.js/dist/css/shepherd.css"/>
6-
<script type="module" src="shepherd.js/dist/shepherd.mjs"></script>
7-
8-
`;
94
---
105

116
<MainPage isHome={true}>
127
<div
13-
class='font-heading mt-8 text-6xl text-center uppercase w-full'
14-
slot='hero-heading'
8+
class="font-heading mt-8 text-6xl text-center uppercase w-full"
9+
slot="hero-heading"
1510
>
1611
<img
17-
class='inline p-4 w-full lg:mt-4 lg:p-0 lg:w-auto'
18-
src='/img/demo.svg'
19-
alt='Demo'
12+
class="inline p-4 w-full lg:mt-4 lg:p-0 lg:w-auto"
13+
src="/img/demo.svg"
14+
alt="Demo"
2015
/>
2116
</div>
2217

23-
<div slot='content'>
24-
<div class='hero-including mt-8'>
25-
<h3 class='demo-heading font-heading text-2xl uppercase'>
18+
<div slot="content">
19+
<div class="hero-including mt-8">
20+
<h3 class="demo-heading font-heading text-2xl uppercase">
2621
01. How to Include
2722
</h3>
28-
<div class='hero-example-code text-left'>
29-
<Code code={shepherdIncludeCode} lang='js' theme='nord' wrap />
23+
<div class="hero-example-code text-left">
24+
<Code
25+
code={`
26+
<link rel="stylesheet" href="shepherd.js/dist/css/shepherd.css"/>
27+
<script type="module" src="shepherd.js/dist/shepherd.mjs"></script>
28+
29+
`}
30+
lang="js"
31+
theme="nord"
32+
wrap
33+
/>
3034
</div>
3135
</div>
3236

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

36-
<div class='hero-example-code text-left'>
40+
<div class="hero-example-code text-left">
3741
<Code
3842
code={`
3943
const tour = new Shepherd.Tour({
@@ -73,8 +77,8 @@ const shepherdIncludeCode = `
7377
7478
tour.start();
7579
`}
76-
lang='js'
77-
theme='nord'
80+
lang="js"
81+
theme="nord"
7882
wrap
7983
/>
8084
</div>

0 commit comments

Comments
 (0)