passion_retro/static/themes/80s/banner.css
2025-09-12 11:11:44 +02:00

258 lines
No EOL
5.7 KiB
CSS
Executable file

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
.banner {
width: 100%;
min-width: 1000px;
height: 300px;
background: linear-gradient(180deg, #000033 0%, #330066 100%);
border-top: 3px solid #ff00ff;
border-bottom: 3px solid #00ffff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
margin: auto;
}
/* Soleil rétro */
.sun {
position: absolute;
top: 12%; /* Ajusté pour mieux positionner le soleil plus grand */
left: 50%;
transform: translateX(-50%);
width: 400px; /* Doublé la largeur */
height: 200px; /* Doublé la hauteur */
background: linear-gradient(to top, #ff6b6b, #ffd93d);
border-radius: 200px 200px 0 0; /* Ajusté pour maintenir la forme en demi-cercle */
overflow: hidden;
z-index: 1;
}
/* Barres horizontales du soleil */
.sun::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(
to bottom,
transparent 0%,
transparent 10%,
rgba(0, 0, 0, 0.2) 10%,
rgba(0, 0, 0, 0.2) 20%
);
mask: linear-gradient(
to bottom,
transparent,
black 50%
);
-webkit-mask: linear-gradient(
to bottom,
transparent,
black 50%
);
}
/* Grille au sol */
.grid {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 150px;
background:
linear-gradient(to top,
rgba(255, 0, 255, 1) 0%,
rgba(255, 0, 255, 0) 100%
),
linear-gradient(
90deg,
rgb(255, 255, 255) 1px,
transparent 1px
) 0 0,
linear-gradient(
rgb(255, 255, 255) 1px,
transparent 1px
) 0 0;
background-size: 100% 100%, 40px 40px, 40px 40px;
transform: perspective(500px) rotateX(60deg);
transform-origin: bottom;
z-index: 2;
}
/* Arrière-plan galaxie */
.galaxy-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
linear-gradient(90deg,
rgba(255, 0, 255, 0.1) 0%,
rgba(0, 255, 255, 0.1) 100%
),
linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
z-index: 0;
}
/* Texte principal */
.banner-text {
font-family: 'Press Start 2P', cursive;
word-spacing: 10px;
font-size: 60px;
color: #ff00ff;
text-shadow:
3px 3px 0 #00ffff,
-3px -3px 0 #ff00ff,
0 0 10px rgba(255, 0, 255, 0.8),
0 0 20px rgba(0, 255, 255, 0.8);
z-index: 2;
position: relative;
animation: text-flicker 2s infinite;
}
@keyframes text-flicker {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; }
}
/* Slogan */
.slogan {
color: #00ffff;
font-family: 'Press Start 2P', cursive;
font-size: 14px;
text-shadow:
2px 2px 0 #ff00ff,
0 0 5px rgba(0, 255, 255, 0.8);
z-index: 1;
position: relative;
white-space: nowrap;
animation: slide 30s linear infinite;
}
@keyframes slide {
0% { transform: translateX(100%); }
50% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
/* Vaisseau spatial */
.spaceship {
position: absolute;
width: 60px;
height: 30px;
z-index: 3;
animation: fly 15s linear infinite;
}
/* Corps principal du vaisseau */
.spaceship::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
clip-path: polygon(
100% 50%, /* Point droit */
80% 20%, /* Haut droit */
60% 20%, /* Haut milieu arrière */
40% 0%, /* Pointe avant */
20% 20%, /* Haut milieu avant */
0% 30%, /* Haut avant */
0% 70%, /* Bas avant */
20% 80%, /* Bas milieu avant */
40% 100%, /* Pointe arrière */
60% 80%, /* Bas milieu arrière */
80% 80% /* Bas droit */
);
filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.8));
}
/* Cockpit */
.spaceship::after {
content: '';
position: absolute;
width: 15px;
height: 15px;
right: 40%;
left: auto;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 255, 255, 0.8);
border-radius: 50%;
box-shadow:
0 0 10px #00ffff,
inset 0 0 5px #ffffff;
}
/* Réacteur */
.spaceship .engine {
position: absolute;
left: -15px;
right: auto;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 10px;
overflow: hidden;
}
.spaceship .engine::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(-90deg, #ff6b6b, #ffd93d); /* Direction inversée */
animation: thrust 0.2s linear infinite;
clip-path: polygon(
0 0,
100% 50%,
0 100%
);
transform: rotate(180deg); /* Rotation complète au lieu du scaleX */
filter: blur(2px);
}
@keyframes thrust {
0%, 100% {
opacity: 1;
transform: rotate(180deg) scaleX(1);
}
50% {
opacity: 0.5;
transform: rotate(180deg) scaleX(0.8);
}
}
@keyframes fly {
0% {
right: -100px;
top: 30%;
transform: rotate(175deg);
}
25% {
right: 25%;
top: 20%;
transform: rotate(185deg);
}
50% {
right: 50%;
top: 15%;
transform: rotate(175deg);
}
75% {
right: 75%;
top: 25%;
transform: rotate(185deg);
}
100% {
right: 100%;
top: 30%;
transform: rotate(175deg);
}
}