Skip to content

Commit 1f49489

Browse files
authored
Add the app preview video (#21)
* Add app preview video as carousel item * Import screenshot as static image * Update carousel with indicator buttons
1 parent 9d97567 commit 1f49489

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

public/preview.mp4

990 KB
Binary file not shown.

src/app/page.tsx

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Linux from "@/components/icons/Linux";
1212
import Apple from "super-tiny-icons/images/svg/apple.svg";
1313
import IconLink from "@/components/IconLink";
1414
import FAQ from "@/components/FAQ";
15+
import screenshot from 'public/screenshot-full.jpg';
1516

1617
export default function Home() {
1718
const downloadUrl = "https://github.com/rabrain/ai-chat/releases/latest"
@@ -52,13 +53,27 @@ export default function Home() {
5253
</Link>
5354
</div>
5455
</div>
55-
<Image
56-
src="/screenshot-full.jpg"
57-
width={960}
58-
height={580}
59-
alt="banner"
60-
className="mx-auto shadow-xl"
61-
/>
56+
<div>
57+
<div className="carousel carousel-center w-full">
58+
<div id="slide1" className="carousel-item w-full">
59+
<video controls>
60+
<source src="/preview.mp4" type="video/mp4" />
61+
Your browser does not support the video tag.
62+
</video>
63+
</div>
64+
<div id="slide2" className="carousel-item w-full">
65+
<Image
66+
src={screenshot}
67+
alt="banner"
68+
className="mx-auto shadow-xl rounded-box"
69+
/>
70+
</div>
71+
</div>
72+
<div className="flex justify-center w-full py-2 gap-2">
73+
<a href="#slide1" className="btn btn-xs">1</a>
74+
<a href="#slide2" className="btn btn-xs">2</a>
75+
</div>
76+
</div>
6277
</div>
6378
</section>
6479
{/* Home section */}

0 commit comments

Comments
 (0)