Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: added label coming soon for windows and linux #881

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/src/containers/DownloadApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ const systemsTemplate = [
name: "Mac Silicon",
logo: FaApple,
fileFormat: "{appname}-mac-arm64-{tag}.dmg",
comingSoon: false,
},
{
name: "Mac (Intel)",
logo: FaApple,
fileFormat: "{appname}-mac-x64-{tag}.dmg",
comingSoon: false,
},
{
name: "Windows",
logo: FaWindows,
fileFormat: "{appname}-win-x64-{tag}.exe",
comingSoon: true,
},
{
name: "Linux",
logo: FaLinux,
fileFormat: "{appname}-linux-amd64-{tag}.deb",
comingSoon: true,
},
];

Expand Down Expand Up @@ -106,10 +110,17 @@ export default function DownloadApp() {
<a
key={i}
href={system.href}
className="inline-flex m-2 px-4 py-2 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 border border-gray-400 dark:border-gray-700 text-black dark:text-white bg-neutral-50 min-w-[150px] dark:bg-[#18181B]"
className={`inline-flex m-2 px-4 py-2 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 border border-gray-400 dark:border-gray-700 text-black dark:text-white bg-neutral-50 min-w-[150px] dark:bg-[#18181B], ${
system.comingSoon && "pointer-events-none "
}`}
>
<system.logo />
<span>{system.name}</span>
{system.comingSoon && (
<span className="bg-gray-300 dark:bg-gray-700 py-0.5 px-2 inline-block ml-2 rounded-md text-sm mt-1">
Coming Soon
</span>
)}
</a>
))}
</div>
Expand Down
Loading