Codice PHP:
@import url('https://fonts.googleapis.com/css2?family=Mr+Dafoe&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@900&display=swap');
body, html {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background: radial-gradient(rgba(#7f00fd, 0.5) 0%, transparent 70%), linear-gradient(black 40%, black 70%);
perspective: 700px;
font-size: clamp(10px, 2vw, 20px);
}
.lines {
$color: green;
position: fixed;
width: 100vw;
height: 4em;
background: linear-gradient(rgba($color, 0.2) 20%, $color 40%, $color 60%, rgba($color, 0.2) 80%);
background-size: 1px 0.5em;
box-shadow: 0 0 1em rgba($color, 0.4);
transform: translateY(-1em);
left: 0;
}
h1 {
position: relative;
font-family: 'Exo';
font-size: 9em;
margin: 0;
transform: skew(-15deg);
letter-spacing: 0.03em;
&::after {
content: '';
position: absolute;
top: -0.1em;
right: 0.05em;
width: 0.4em;
height: 0.4em;
background:
radial-gradient(white 3%, rgba(white, 0.3) 15%, rgba(white, 0.05) 60%, transparent 80%),
radial-gradient(rgba(white, 0.2) 50%, transparent 60%) 50% 50% / 5% 100%,
radial-gradient(rgba(white, 0.2) 50%, transparent 60%) 50% 50% / 70% 5%;
background-repeat: no-repeat;
}
span:first-child {
display: block;
text-shadow: 0 0 0.1em #8ba2d0, 0 0 0.2em black, 0 0 5em green;
-webkit-text-stroke: 0.06em rgba(black, 0.5);
}
span:last-child {
position: absolute;
left: 0;
top: 0;
background-image: linear-gradient(#00cc88 25%, green 35%, #00cc88 50%, #00cc88 55%, green 75%);
-webkit-text-stroke: 0.01em black;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
h2 {
font-family: 'Mr Dafoe';
margin: 0;
font-size: 5.5em;
margin-top: -0.6em;
color: white;
text-shadow: 0 0 0.05em #fff, 0 0 0.2em green, 0 0 0.2em #00cc88;
transform: rotate(-6deg);
}
.grid {
$main: #7f00fd;
$glow: rgba(black, 0.4);
background:
linear-gradient(transparent 65%, $glow 75%, $main 80%, $glow 85%, transparent 95%),
linear-gradient(90deg, transparent 65%, $glow 75%, $main 80%, $glow 85%, transparent 95%);
background-size: 30px 30px;
width: 200vw;
height: 300vh;
position: absolute;
bottom: -120vh;
transform: rotateX(-100deg);
-webkit-mask-image: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0) 80%);
}