<style> | |
header { | |
position: absolute; | |
} | |
.home .site-logo { | |
color: #ffffff; | |
} | |
.content-scroll #menu-main-menu > li > a:not(:hover), | |
.content-scroll .site-logo { | |
color: #333333; | |
} | |
.page-layer { | |
overflow: hidden; | |
} | |
.hero { | |
position: relative; | |
overflow: hidden; | |
max-width: 100vw; | |
box-sizing: border-box; | |
padding: 0 0 6rem; | |
color: #ffffff; | |
background-color: #00253D; | |
z-index: 1; | |
top: -30rem; | |
padding-top: 45rem; | |
margin-bottom: -30rem; | |
} | |
.hero h1 { | |
font-size: 4.8rem; | |
font-weight: 500; | |
letter-spacing: 0.006rem; | |
text-align: center; | |
line-height: 1.04167; | |
} | |
.hero p { | |
font-size: 2.2rem; | |
line-height: 1.45455; | |
letter-spacing: 0.016em; | |
font-weight: 300; | |
text-align: center; | |
margin-top: 1.65rem; | |
} | |
.hero a { | |
color: #0af; | |
} | |
#fade { | |
position: absolute; | |
width: 100%; | |
height: 1261px; | |
background-image: radial-gradient(ellipse closest-corner at center center,hsl(198, 100%, 20%) 0%,hsla(204, 100%, 20%,0) 100%); | |
z-index: 4; | |
transform: translateY(-45rem); | |
} | |
#template { | |
opacity: 0.1; | |
position: absolute; | |
top: 0px; | |
width: 100%; | |
height: 195.5rem; | |
background-repeat: no-repeat; | |
background-position: 50% 49.5%; | |
background-size: 101.5%; | |
z-index: 3; | |
transform: translateY(-40rem); } | |
#compass { | |
position: absolute; | |
top: 0px; | |
width: 100%; | |
height: 1950px; | |
background-repeat: no-repeat; | |
background-position: 50% 50%; | |
background-size: 98%; | |
opacity: 0.3; | |
-webkit-animation: bgspin 360s ease-out; | |
animation: bgspin 360s ease-out; | |
z-index: 2; | |
will-change: transform; | |
} | |
@keyframes bgspin { | |
from { | |
transform: translateY(-400px) rotate(0); | |
-webkit-transform: translateY(-400px) rotate(0deg); | |
} | |
to { | |
transform: translateY(-400px) rotate(360); | |
-webkit-transform: translateY(-400px) rotate(360deg); | |
} | |
} | |
@-webkit-keyframes bgspin { | |
from { | |
transform: translateY(-400px) rotate(0); | |
-webkit-transform: translateY(-400px) rotate(0deg); | |
} | |
to { | |
transform: translateY(-400px) rotate(360); | |
-webkit-transform: translateY(-400px) rotate(360deg); | |
} | |
} | |
.hero .content { | |
position: relative; | |
max-width: 800px; | |
padding: 0 3rem; | |
margin: 0 auto; | |
z-index: 10; | |
} | |
main { | |
position: relative; | |
z-index: 10; | |
} | |
@media only screen and (max-width: 920px) { | |
.hero { | |
padding-top: 40rem; | |
padding-bottom: 3rem; | |
} | |
} | |
@media only screen and (max-width: 690px) { | |
.hero h1 { | |
font-size: 4rem; | |
line-height: 1.1; | |
} | |
.hero p { | |
font-size: 2rem; | |
line-height: 1.4; | |
letter-spacing: -0.016rem; | |
} | |
#compass { | |
background-size: 150%; | |
} | |
} | |
@media only screen and (max-width: 320px) { | |
.hero h1 { | |
font-size: 2.5rem; | |
letter-spacing: -0.016rem; | |
} | |
} | |
</style> | |
<?php if ( is_front_page() && have_posts()): the_post(); ?> | |
<div class="hero"> | |
<div id="template"></div> | |
<div id="compass"></div> | |
<div id="fade"></div> | |
<div class="content"> | |
<?php the_content(); ?> | |
</div> | |
</div> | |
<?php endif; ?> | |
<div class="page-layer"> |