Skip to content

Commit

Permalink
Add Video teaser
Browse files Browse the repository at this point in the history
  • Loading branch information
enyo committed Oct 20, 2024
1 parent 8666d4a commit a5d3919
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions src/lib/MenoTeaser.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<script>
import ContentSection from './ContentSection.svelte'
import Heading from './Heading.svelte'
</script>

<ContentSection>
<Heading subtitle="New music video">Don’t look back</Heading>

<p>
I just released a new music video: <strong>Don’t look back</strong>. Maybe
you want to check it out.
</p>

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/zZ3tTxN7imk"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
/>
</ContentSection>

<style lang="postcss">
iframe {
display: block;
max-width: 100%;
}
</style>
5 changes: 4 additions & 1 deletion src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import Intro from '$lib/Intro.svelte'
import MainFeature from '$lib/MainFeature.svelte'
import MainFeatures from '$lib/MainFeatures.svelte'
import MenoTeaser from '$lib/MenoTeaser.svelte'
import Seo from '$lib/Seo.svelte'
import StyledLink from '$lib/StyledLink.svelte'
import PlusIcon from '~icons/ion/plus-round'
Expand Down Expand Up @@ -86,7 +87,9 @@
</MainFeatures>
</ContentSection>

<ContentSection>
<MenoTeaser />

<ContentSection backgroundColor="white">
<Heading subtitle="And it's easy to add the features you want"
>Dropzone.js comes feature packed</Heading
>
Expand Down

0 comments on commit a5d3919

Please sign in to comment.