mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 19:46:44 +03:00
🐧 Added hero image for mobile
This commit is contained in:
BIN
www/public/assets/hero_logo.webp
Normal file
BIN
www/public/assets/hero_logo.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
@@ -11,18 +11,27 @@ export function Hero() {
|
|||||||
<section className="relative min-h-[100vh] pt-20 pb-10 flex flex-col items-center justify-center px-4 sm:px-6 lg:px-8 overflow-hidden">
|
<section className="relative min-h-[100vh] pt-20 pb-10 flex flex-col items-center justify-center px-4 sm:px-6 lg:px-8 overflow-hidden">
|
||||||
{/* spline object */}
|
{/* spline object */}
|
||||||
<div className="spline-object absolute inset-0 max-lg:-z-10 max-h-[40rem] -translate-y-16 md:max-h-[50rem] lg:max-h-[60%] xl:max-h-[70%] 2xl:max-h-[80%] md:-translate-y-24 lg:-translate-y-28 flex items-center justify-center">
|
<div className="spline-object absolute inset-0 max-lg:-z-10 max-h-[40rem] -translate-y-16 md:max-h-[50rem] lg:max-h-[60%] xl:max-h-[70%] 2xl:max-h-[80%] md:-translate-y-24 lg:-translate-y-28 flex items-center justify-center">
|
||||||
<div className="absolute right-2 bottom-4 h-20 w-40 bg-background"/>
|
|
||||||
<Suspense fallback={
|
<div className="block md:hidden w-[80%]">
|
||||||
<div className="w-full h-full flex items-center justify-center">
|
|
||||||
<img
|
<img
|
||||||
src="/assets/logo.png"
|
src="/assets/hero_logo.webp"
|
||||||
alt="Gitea Mirror Logo"
|
alt="Gitea Mirror hero image"
|
||||||
|
className="w-full h-full object-contain"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="absolute right-2 bottom-4 h-20 w-40 bg-background hidden md:block"/>
|
||||||
|
<Suspense fallback={
|
||||||
|
<div className="w-full h-full md:flex items-center justify-center hidden">
|
||||||
|
<img
|
||||||
|
src="/assets/hero_logo.webp"
|
||||||
|
alt="Gitea Mirror hero logo"
|
||||||
className="w-[200px] h-[160px] md:w-[280px] md:h-[240px] lg:w-[360px] lg:h-[320px] xl:w-[420px] xl:h-[380px] 2xl:w-[480px] 2xl:h-[420px] object-contain"
|
className="w-[200px] h-[160px] md:w-[280px] md:h-[240px] lg:w-[360px] lg:h-[320px] xl:w-[420px] xl:h-[380px] 2xl:w-[480px] 2xl:h-[420px] object-contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
}>
|
}>
|
||||||
<Spline
|
<Spline
|
||||||
scene="https://prod.spline.design/jl0aKWbdH9vHQnYV/scene.splinecode"
|
scene="https://prod.spline.design/jl0aKWbdH9vHQnYV/scene.splinecode"
|
||||||
|
className="hidden md:block"
|
||||||
/>
|
/>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user