Skip to content

Commit 2387062

Browse files
committed
fix import and video player media queries
1 parent 8343e3f commit 2387062

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

opensaas-sh/blog/src/assets/turboreel/interface.mp4 renamed to opensaas-sh/blog/src/assets/turboreel/studio-interface.mp4

File renamed without changes.
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
interface Props {
33
src: string;
4+
lgWidth?: string;
5+
smWidth?: string;
46
}
57
6-
const { src } = Astro.props;
8+
const { src, lgWidth = '55%', smWidth = '100%' } = Astro.props;
79
---
810

911
<video
@@ -13,15 +15,21 @@ const { src } = Astro.props;
1315
muted
1416
controls
1517
loop
18+
class="video-player"
1619
>
1720
<track kind="captions">
1821
</video>
1922

20-
<style>
23+
<style define:vars={{ lgWidth, smWidth }}>
2124
.video-player {
22-
width: 100%;
23-
max-width: 800px;
25+
width: var(--lgWidth);
2426
margin: 2rem auto;
2527
border-radius: 8px;
2628
}
29+
30+
@media (max-width: 425px) {
31+
.video-player {
32+
width: var(--smWidth);
33+
}
34+
}
2735
</style>

opensaas-sh/blog/src/content/docs/blog/2024-12-10-turboreel-os-ai-video-generator-built-with-open-saas.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors: milica
1111
import VideoPlayer from '../../../components/VideoPlayer.astro';
1212
import { Image } from 'astro:assets';
1313
import landing from '../../../assets/turboreel/landing.webp';
14-
import interface from '../../../assets/turboreel/interface.mp4';
14+
import studioInterface from '../../../assets/turboreel/studio-interface.mp4';
1515
import opensaas from '../../../assets/turboreel/opensaas.mp4';
1616

1717
<Image src={landing} alt="Landing page" loading="lazy" />
@@ -36,7 +36,7 @@ Here’s a video presenting Open SaaS, generated with TurboReel 🐝
3636

3737
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.
3838

39-
<VideoPlayer src={interface} />
39+
<VideoPlayer src={studioInterface} />
4040

4141
The platform’s **open-source foundation** unlocks development potential, while the **paid SaaS layer** helps with funding.
4242

0 commit comments

Comments
 (0)