diff --git a/public/images/php8/hero-bg.svg b/public/images/php8/hero-bg.svg new file mode 100644 index 0000000000..9dc8095e72 --- /dev/null +++ b/public/images/php8/hero-bg.svg @@ -0,0 +1,19 @@ + diff --git a/public/styles/php85.css b/public/styles/php85.css index 6122fbb536..ca0544b9c2 100644 --- a/public/styles/php85.css +++ b/public/styles/php85.css @@ -466,81 +466,13 @@ a { pointer-events: none; inset: 0; z-index: calc(10 * -1); - overflow: hidden; opacity: .35; - container-type: size; + background: url("/images/php8/hero-bg.svg") center / cover no-repeat; -webkit-user-select: none; user-select: none; position: absolute } -/* - * Each orb is a square the size of the larger hero dimension, centered in the hero - * (equivalent to an SVG viewBox with preserveAspectRatio="xMidYMid slice"). - * The gradients are static images, so the browser only has to rasterize them once. - * The x/y/rotate animations are applied to nested HTML elements and only change - * transform, so they can run on the compositor instead of repainting every frame. - */ -.hero-orb { - position: absolute; - top: 50%; - left: 50%; - width: max(100cqw, 100cqh); - aspect-ratio: 1; - translate: -50% -50% -} - -.hero-orb div { - width: 100%; - height: 100%; - background-size: 100% 100% -} - -.hero-orb-1-r { - background-image: url("data:image/svg+xml,") -} - -.hero-orb-2-r { - background-image: url("data:image/svg+xml,") -} - -.hero-orb-3-r { - background-image: url("data:image/svg+xml,") -} - -.hero-orb-1-x { animation: hero-orb1-x 10s linear infinite alternate } -.hero-orb-1-y { animation: hero-orb1-y 10.5s linear infinite alternate } -.hero-orb-1-r { animation: hero-orb-rotate-fwd 7s linear infinite } - -.hero-orb-2-x { animation: hero-orb2-x 11.5s linear infinite alternate } -.hero-orb-2-y { animation: hero-orb2-y 12s linear infinite alternate } -.hero-orb-2-r { animation: hero-orb-rotate-fwd 12s linear infinite } - -.hero-orb-3-x { animation: hero-orb3-x 12.5s linear infinite alternate } -.hero-orb-3-y { animation: hero-orb3-y 6s linear infinite alternate } -.hero-orb-3-r { animation: hero-orb-rotate-rev 9s linear infinite } - -@keyframes hero-orb1-x { from { transform: translateX(25%) } to { transform: translateX(0%) } } -@keyframes hero-orb1-y { from { transform: translateY(0%) } to { transform: translateY(25%) } } -@keyframes hero-orb2-x { from { transform: translateX(-25%) } to { transform: translateX(0%) } } -@keyframes hero-orb2-y { from { transform: translateY(0%) } to { transform: translateY(50%) } } -@keyframes hero-orb3-x { from { transform: translateX(0%) } to { transform: translateX(25%) } } -@keyframes hero-orb3-y { from { transform: translateY(0%) } to { transform: translateY(25%) } } -@keyframes hero-orb-rotate-fwd { from { transform: rotate(0deg) } to { transform: rotate(360deg) } } -@keyframes hero-orb-rotate-rev { from { transform: rotate(360deg) } to { transform: rotate(0deg) } } - -.hero-bg.paused .hero-orb, -.hero-bg.paused .hero-orb div { - animation-play-state: paused -} - -@media (prefers-reduced-motion: reduce) { - .hero-orb, - .hero-orb div { - animation-play-state: paused - } -} - .hero-badge { margin-bottom: calc(var(--spacing) * 6); background-color: #ffffffa6; diff --git a/src/Themes/ReleasePage.php b/src/Themes/ReleasePage.php index 8a048ad3ce..906889f9b6 100644 --- a/src/Themes/ReleasePage.php +++ b/src/Themes/ReleasePage.php @@ -47,11 +47,7 @@ public static function getHeroSection( return << -
+