The match head is painted in the other gym's colours with a strip in this site's accent; below 992px it is a slashed band at the bottom of the open menu (menu height from the real header height). The CrossFit page gets the centred logo crossfade, the hero logo has a fixed 52px height, and the hero h1 shadow is softer with the frosted blur at .8.
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<div class="clearfix"></div>
|
|
<div class="video fade-in">
|
|
<div class="overlay"></div>
|
|
<video playsinline autoplay muted loop poster="<?= base_url($header_video_img) ?>">
|
|
<source src="<?= base_url($header_video_video) ?>" type="video/mp4">
|
|
</video>
|
|
<div class="container h-100">
|
|
<div class="d-flex h-100 text-center align-items-center">
|
|
<div class="w-100 text-white">
|
|
<h1 class="visually-hidden">CrossFit 3070 — box de CrossFit em Mira</h1>
|
|
<p class="lead mb-0"></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.video {
|
|
position: relative; background-color: #000;
|
|
height: 75vh; min-height: 25rem; width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
.video video {
|
|
position: absolute; top: 50%; left: 50%;
|
|
min-width: 100%; min-height: 100%;
|
|
width: auto; height: auto; z-index: 0;
|
|
transform: translate(-50%, -50%);
|
|
object-fit: cover;
|
|
}
|
|
.video .container { position: relative; z-index: 2; }
|
|
/* Fallback poster for touch devices */
|
|
@media (pointer: coarse) and (hover: none) {
|
|
.video {
|
|
background: url('<?= base_url($header_video_img) ?>') #000 center/cover no-repeat;
|
|
}
|
|
.video video { display: none; }
|
|
}
|
|
</style>
|