Skip to content

Commit

Permalink
change how the banner looks
Browse files Browse the repository at this point in the history
  • Loading branch information
powercasgamer committed May 1, 2024
1 parent 2b62784 commit 4fa040e
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/pages/downloads/all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const LegacyDownloads: NextPage<LegacyDownloadProps> = ({
const latestVersion = versions?.versions[versions?.versions.length - 1];
const legacy = selectedVersion !== latestVersion;
const experimental =
builds?.builds[builds?.builds.length - 1].channel === "experimental";
builds?.builds[builds?.builds.length - 1].channel === "experimental" || selectedProject === "waterfall";

return (
<>
Expand All @@ -49,21 +49,6 @@ const LegacyDownloads: NextPage<LegacyDownloadProps> = ({
/>
<div className="flex flex-col h-screen">
<div className="h-16" />

{legacy && (
<>
<div className="text-center px-4 py-2 font-bold bg-red-400 dark:bg-red-500 shadow-md">
Legacy builds are not supported. Proceed at your own risk!
</div>
</>
)}
{experimental && (
<>
<div className="text-center px-4 py-2 font-bold bg-red-400 dark:bg-red-500 shadow-md">
Experimental builds something. Proceed at your own risk!
</div>
</>
)}
<div className="flex-1 flex flex-row min-h-0">
<DownloadsTree
selectedProject={selectedProject}
Expand All @@ -74,6 +59,20 @@ const LegacyDownloads: NextPage<LegacyDownloadProps> = ({
}}
/>
<div className="flex-1 overflow-auto">
{legacy && (
<>
<div className="text-center px-4 py-2 font-bold bg-red-400 dark:bg-red-500 shadow-md">
Legacy builds are not supported. Proceed at your own risk!
</div>
</>
)}
{experimental && (
<>
<div className="text-center px-4 py-2 font-bold bg-orange-400 dark:bg-orange-500 shadow-md">
Experimental builds something. Proceed at your own risk!
</div>
</>
)}
{eol && (
<div className="text-center px-4 py-2 font-bold bg-yellow-400 dark:bg-yellow-500 shadow-md">
EOL builds are not supported. Proceed at your own risk!
Expand Down

0 comments on commit 4fa040e

Please sign in to comment.