Skip to content

Commit fd4733f

Browse files
feat(home): place video and CTA side-by-site in hero
1 parent bcaee0d commit fd4733f

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

components/HomeHero.vue

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
<template>
2-
<div class="relative">
3-
<!-- Video Background -->
4-
<div class="absolute inset-0 z-0 overflow-hidden">
5-
<video class="w-full h-full object-cover" autoplay muted loop poster="~/assets/videos/video.jpg">
6-
<source src="~/assets/videos/video.mp4" type="video/mp4">
7-
<track label="English" kind="subtitles" srclang="en" src="/_nuxt/assets/videos/video.en.vtt" default="">
8-
</video>
9-
<div class="absolute inset-0 bg-black bg-opacity-50"></div>
10-
</div>
11-
12-
<!-- Content -->
13-
<div class="relative z-10 max-w-6xl mx-auto px-4 py-24 text-center">
14-
<img src="~/assets/img/logo-square.svg" alt="Code for Philly" class="h-48 mx-auto mb-8">
15-
<div class="max-w-2xl mx-auto">
16-
<h1 class="text-2xl font-bold text-white mb-2">
2+
<div class="max-w-6xl mx-auto px-4 py-12">
3+
<div class="grid md:grid-cols-2 gap-8 items-center">
4+
<!-- Content -->
5+
<div class="text-center md:text-left">
6+
<img src="~/assets/img/logo-square.svg" alt="Code for Philly" class="h-32 mx-auto md:mx-0 mb-8">
7+
<h1 class="text-2xl font-bold text-blue-700 mb-2">
178
Contribute towards technology-related projects that benefit the City of Philadelphia.
189
</h1>
19-
<p class="text-xl text-white mb-6">
10+
<p class="text-xl text-red-600 mb-6">
2011
No coding experience required.
2112
</p>
2213
<button class="bg-red-600 text-white px-6 py-2 rounded hover:bg-red-700">
2314
Volunteer!
2415
</button>
2516
</div>
17+
18+
<!-- Video -->
19+
<div class="relative aspect-video overflow-hidden rounded-lg shadow-xl">
20+
<video class="w-full h-full object-cover" autoplay muted loop poster="~/assets/videos/video.jpg">
21+
<source src="~/assets/videos/video.mp4" type="video/mp4">
22+
<track label="English" kind="subtitles" srclang="en" src="/_nuxt/assets/videos/video.en.vtt" default="">
23+
</video>
24+
</div>
2625
</div>
2726
</div>
2827
</template>

0 commit comments

Comments
 (0)