diff --git a/public/images/php8/hero-bg-dark.svg b/public/images/php8/hero-bg-dark.svg new file mode 100644 index 0000000000..e72788d365 --- /dev/null +++ b/public/images/php8/hero-bg-dark.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/php8/hero-bg-light.svg b/public/images/php8/hero-bg-light.svg new file mode 100644 index 0000000000..678cc2d078 --- /dev/null +++ b/public/images/php8/hero-bg-light.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/styles/php85.css b/public/styles/php85.css index c6cc01da9e..fcb2d6404b 100644 --- a/public/styles/php85.css +++ b/public/styles/php85.css @@ -465,51 +465,20 @@ a { pointer-events: none; top: calc(var(--spacing) * 0); z-index: calc(10 * -1); - object-fit: cover; width: 100%; height: 100%; - transition-property: opacity; - opacity: .35; - transition-duration: .5s; - transition-timing-function: cubic-bezier(.4, 0, .2, 1); + background-image: url("/images/php8/hero-bg-light.svg"); + background-position: 50% 50%; + background-repeat: no-repeat; + background-size: cover; -webkit-user-select: none; user-select: none; position: absolute } -.hero-orb-1-x, -.hero-orb-1-y, -.hero-orb-1-r, -.hero-orb-2-x, -.hero-orb-2-y, -.hero-orb-2-r, -.hero-orb-3-x, -.hero-orb-3-y, -.hero-orb-3-r { - transform-box: view-box; - transform-origin: 50% 50% -} - -.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 .hero-bg:where(.dark,.dark *) { + background-image: url("/images/php8/hero-bg-dark.svg") +} .hero-badge { margin-bottom: calc(var(--spacing) * 6); diff --git a/src/Themes/ReleasePage.php b/src/Themes/ReleasePage.php index 29ba944b9b..0869523906 100644 --- a/src/Themes/ReleasePage.php +++ b/src/Themes/ReleasePage.php @@ -36,16 +36,7 @@ public static function getHeroSection( return << - +