Skip to content

Commit 5ce1b77

Browse files
committed
feat(index.html, style.css): add video and style video for homepage
1 parent b385484 commit 5ce1b77

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

assets/Code Magic.mp4

448 KB
Binary file not shown.

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ <h2>
159159
EASILY create Gradient Backgrounds, Gradient Text, Gradient Borders,
160160
and more <br />for your applications <span>With Just One Click</span>
161161
</h2>
162+
<video autoplay muted loop>
163+
<source src="./assets/Code Magic.mp4" type="video/mp4" />
164+
Your browser does not support the video tag.
165+
</video>
162166
</section>
163167
<section>
164168
<div class="generators">

src/style.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,29 @@ main > section:first-of-type {
128128
}
129129

130130
main > section:first-of-type h1 {
131-
font-size: clamp(1rem, 10vw, 2.5rem);
131+
font-size: clamp(1rem, 10vw, 2rem);
132132
text-align: center;
133133
}
134134

135135
main > section:first-of-type h2 {
136136
margin-top: 10px;
137-
font-size: clamp(0.5rem, 10vw, 1.5rem);
137+
font-size: clamp(0.5rem, 10vw, 1rem);
138138
text-align: center;
139139
}
140140

141141
main > section:first-of-type span {
142142
color: var(--tertiary-color);
143143
}
144144

145+
main > section:first-of-type video {
146+
min-height: 20%;
147+
min-width: 30%;
148+
max-height: 30%;
149+
max-width: 40%;
150+
margin-top: 10px;
151+
border: 2px solid var(--text-color);
152+
}
153+
145154
.generators {
146155
min-height: var(--content-container);
147156
min-width: var(--content-container);

0 commit comments

Comments
 (0)