mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-26 08:50:37 +01:00
fix import and video player media queries
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
interface Props {
|
interface Props {
|
||||||
src: string;
|
src: string;
|
||||||
|
lgWidth?: string;
|
||||||
|
smWidth?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { src } = Astro.props;
|
const { src, lgWidth = '55%', smWidth = '100%' } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<video
|
<video
|
||||||
@@ -13,15 +15,21 @@ const { src } = Astro.props;
|
|||||||
muted
|
muted
|
||||||
controls
|
controls
|
||||||
loop
|
loop
|
||||||
|
class="video-player"
|
||||||
>
|
>
|
||||||
<track kind="captions">
|
<track kind="captions">
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<style>
|
<style define:vars={{ lgWidth, smWidth }}>
|
||||||
.video-player {
|
.video-player {
|
||||||
width: 100%;
|
width: var(--lgWidth);
|
||||||
max-width: 800px;
|
|
||||||
margin: 2rem auto;
|
margin: 2rem auto;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 425px) {
|
||||||
|
.video-player {
|
||||||
|
width: var(--smWidth);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -11,7 +11,7 @@ authors: milica
|
|||||||
import VideoPlayer from '../../../components/VideoPlayer.astro';
|
import VideoPlayer from '../../../components/VideoPlayer.astro';
|
||||||
import { Image } from 'astro:assets';
|
import { Image } from 'astro:assets';
|
||||||
import landing from '../../../assets/turboreel/landing.webp';
|
import landing from '../../../assets/turboreel/landing.webp';
|
||||||
import interface from '../../../assets/turboreel/interface.mp4';
|
import studioInterface from '../../../assets/turboreel/studio-interface.mp4';
|
||||||
import opensaas from '../../../assets/turboreel/opensaas.mp4';
|
import opensaas from '../../../assets/turboreel/opensaas.mp4';
|
||||||
|
|
||||||
<Image src={landing} alt="Landing page" loading="lazy" />
|
<Image src={landing} alt="Landing page" loading="lazy" />
|
||||||
@@ -36,7 +36,7 @@ Here’s a video presenting Open SaaS, generated with TurboReel 🐝
|
|||||||
|
|
||||||
TurboReel lets users generate short explainer videos with minimal effort. Starting with a single text prompt describing the video’s purpose (e.g. “Create a video on building your SaaS with OpenSaaS”), you can produce professional grade TikTok and YT shorts without needing any video editing skills.
|
TurboReel lets users generate short explainer videos with minimal effort. Starting with a single text prompt describing the video’s purpose (e.g. “Create a video on building your SaaS with OpenSaaS”), you can produce professional grade TikTok and YT shorts without needing any video editing skills.
|
||||||
|
|
||||||
<VideoPlayer src={interface} />
|
<VideoPlayer src={studioInterface} />
|
||||||
|
|
||||||
The platform’s **open-source foundation** unlocks development potential, while the **paid SaaS layer** helps with funding.
|
The platform’s **open-source foundation** unlocks development potential, while the **paid SaaS layer** helps with funding.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user