fix responsiveness

This commit is contained in:
2024-12-12 20:34:18 +01:00
parent c3ffc9cf79
commit e15ba7de17

View File

@@ -1,26 +1,31 @@
<div class="flex bg-transparent pt-16 pb-10 justify-center"> <div class="flex bg-transparent pt-16 pb-10 justify-center relative isolate overflow-hidden">
<div class="lg:max-w-7xl max-w-2xl p-8 mx-auto text-center"> <div class="max-w-7xl mx-auto text-center px-4 sm:px-6 lg:px-8">
<!-- Main Heading --> <!-- Main Heading -->
<h2 class="fade-in text-pretty lg:text-6xl text-4xl leading-tight font-normal tracking-tight text-white"> <h2 class="fade-in text-pretty text-3xl sm:text-4xl lg:text-6xl leading-tight font-normal tracking-tight text-white">
Join the Web4 Revolution Join the Web4 Revolution
</h2> </h2>
<!-- Subtext --> <!-- Subtext -->
<p class="mx-auto mt-6 max-w-2xl text-pretty lg:text-xl text-base font-light text-gray-200 fade-in fade-in-delay"> <p class="mx-auto mt-6 max-w-xl text-pretty text-xl lg:text-2xl font-light text-gray-200 fade-in fade-in-delay">
Join us on our journey to the decentralized internet. Watch the video below to learn more about our mission and products. Join us on our journey to the decentralized internet. <br>Watch the video below to learn more about our mission and products.
</p> </p>
<br> <br>
<!-- Embed YouTube Video --> <!-- Embed YouTube Video -->
<div class="mt-8 flex justify-center"> <div class="mt-8 flex justify-center">
<iframe width="800" height="450" src="https://www.youtube.com/embed/64mbEewI0Ag?si=I0m_ShxlTUk3mok-" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> <div class="responsive-iframe">
<iframe src="https://www.youtube.com/embed/64mbEewI0Ag?si=I0m_ShxlTUk3mok-" title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>
</iframe>
</div>
</div> </div>
<!-- Call to Action Button --> <!-- Call to Action Button -->
<div class="mt-12 fade-in flex items-center justify-center gap-x-6"> <div class="mt-12 fade-in flex items-center justify-center gap-x-4">
<a href="/signup" target="_blank" <a href="/signup" target="_blank"
class="fade-in rounded-2xl bg-white px-4 py-2.5 text-sm font-semibold text-black shadow-sm hover:text-gray-800 hover:bg-green focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 blinking-effect"> class="fade-in rounded-2xl bg-white px-4 py-2.5 text-sm sm:text-base font-semibold text-black shadow-sm hover:text-gray-800 hover:bg-green focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 blinking-effect">
Pre-register Now Pre-register Now
</a> </a>
</div> </div>
@@ -46,11 +51,12 @@
/* Responsive iframe for YouTube video */ /* Responsive iframe for YouTube video */
.responsive-iframe { .responsive-iframe {
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
position: relative; position: relative;
border: none; width: 100%;
max-width: 800px; /* Max width for large screens */
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
height: 0;
overflow: hidden;
} }
.responsive-iframe iframe { .responsive-iframe iframe {
position: absolute; position: absolute;
@@ -66,6 +72,16 @@
justify-content: center; justify-content: center;
} }
/* Responsive text and spacing */
.text-pretty {
word-wrap: break-word;
}
@media (max-width: 640px) {
.text-pretty {
padding: 0 1rem;
}
}
/* Style for the button */ /* Style for the button */
.blinking-effect { .blinking-effect {
animation: blink 1.5s step-start infinite; animation: blink 1.5s step-start infinite;