Fix download page design on small screen

This commit is contained in:
Lucas Chaplain 2022-02-01 18:30:04 +01:00
parent a281a5c268
commit ce7551438f

View file

@ -8,11 +8,11 @@
<section id="download-section" class="section"> <section id="download-section" class="section">
<div class="relative w-full py-8 flex flex-col items-center justify-center bg-gray-50 shadow-sm"> <div class="relative w-full py-8 flex flex-col items-center justify-center bg-gray-50 shadow-sm">
<h1 class="text-garage-orange font-bold text-2xl text-center">Download</h1> <h1 class="text-garage-orange font-bold text-2xl text-center">Download</h1>
<div class="absolute -bottom-8 left-1/2 transform -translate-x-1/2 w-16 overflow-hidden inline-block"> <div class="absolute -bottom-8 left-1/2 transform -translate-x-6 w-16 overflow-hidden inline-block">
<div class="h-8 w-8 bg-gradient-to-bl from-gray-50 via-gray-50 to-gray-100 -rotate-45 transform origin-top-left shadow"></div> <div class="h-8 w-8 bg-gradient-to-bl from-gray-50 via-gray-50 to-gray-100 -rotate-45 transform origin-top-left shadow"></div>
</div> </div>
</div> </div>
<div class="mx-auto max-w-7xl px-8 xl:px-0"> <div class="mx-auto max-w-7xl px-4">
<div id="releases-container" class="py-24 space-y-20"> <div id="releases-container" class="py-24 space-y-20">
<div id="release-builds"> <div id="release-builds">
<h2 class="text-garage-gray text-xl font-semibold">Release Builds</h2> <h2 class="text-garage-gray text-xl font-semibold">Release Builds</h2>
@ -86,11 +86,10 @@
<span>${releaseBuilds[i]['version']}</span> <span>${releaseBuilds[i]['version']}</span>
<span class="text-garage-gray font-normal text-sm">${releaseBuilds[i]['builds'][0]['date']}</span> <span class="text-garage-gray font-normal text-sm">${releaseBuilds[i]['builds'][0]['date']}</span>
</h3> </h3>
<div id="release-builds-detail-${i}" class="flex items-center pt-4 space-x-2"> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Binaries</span>
<span>Binaries</span> <div id="release-builds-detail-${i}" class="flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2 space-y-2 md:space-y-0"></div>
</div> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Sources</span>
<div id="release-builds-source-${i}" class="flex items-center pt-4 space-x-2"> <div id="release-builds-source-${i}" class="flex items-center space-x-2">
<span>Sources</span>
<a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${releaseBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${releaseBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300">
<span>Gitea</span> <span>Gitea</span>
</a> </a>
@ -132,11 +131,10 @@
<span>${extraBuilds[i]['version']}</span> <span>${extraBuilds[i]['version']}</span>
<span class="text-garage-gray font-normal text-sm">${extraBuilds[i]['builds'][0]['date']}</span> <span class="text-garage-gray font-normal text-sm">${extraBuilds[i]['builds'][0]['date']}</span>
</h3> </h3>
<div id="extra-builds-detail-${i}" class="flex items-center pt-4 space-x-2"> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Binaries</span>
<span>Binaries</span> <div id="extra-builds-detail-${i}" class="flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2 space-y-2 md:space-y-0"></div>
</div> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Sources</span>
<div id="extra-builds-source-${i}" class="flex items-center pt-4 space-x-2"> <div id="extra-builds-source-${i}" class="flex items-center pt-4 space-x-2">
<span>Sources</span>
<a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${extraBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${extraBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300">
<span>Gitea</span> <span>Gitea</span>
</a> </a>
@ -178,11 +176,10 @@
<span>${developmentBuilds[i]['version']}</span> <span>${developmentBuilds[i]['version']}</span>
<span class="text-garage-gray font-normal text-sm">${developmentBuilds[i]['builds'][0]['date']}</span> <span class="text-garage-gray font-normal text-sm">${developmentBuilds[i]['builds'][0]['date']}</span>
</h3> </h3>
<div id="development-builds-detail-${i}" class="flex items-center pt-4 space-x-2"> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Binaries</span>
<span>Binaries</span> <div id="development-builds-detail-${i}" class="flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2 space-y-2 md:space-y-0"></div>
</div> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Sources</span>
<div id="development-builds-source-${i}" class="flex items-center pt-4 space-x-2"> <div id="development-builds-source-${i}" class="flex items-center pt-4 space-x-2">
<span>Sources</span>
<a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${developmentBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${developmentBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300">
<span>Gitea</span> <span>Gitea</span>
</a> </a>