Adding join button. (#443)

* Adding join button.

- Fixes #440

* Abstracting button classes.

* Removing normal-case.
This commit is contained in:
Dessalines 2024-11-18 22:26:21 -05:00 committed by GitHub
parent 2328942697
commit 830fa6f1f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,6 +132,9 @@ class InstanceCard extends Component<InstanceCardProps, InstanceCardState> {
const modalId = `modal_${domain}`;
const extraButtonClasses =
"btn btn-secondary btn-outline text-white max-md:btn-block";
return (
<div className="card card-bordered bg-neutral-900 shadow-xl">
<div className="card-body p-4">
@ -170,8 +173,14 @@ class InstanceCard extends Component<InstanceCardProps, InstanceCardState> {
>
{i18n.t("explore")}
</a>
<a
className={extraButtonClasses}
href={`${buildUrl(domain)}/signup`}
>
{i18n.t("join")}
</a>
<button
className="btn btn-secondary btn-outline text-white max-md:btn-block normal-case"
className={extraButtonClasses}
onClick={linkEvent(this, handleModalClick)}
>
{i18n.t("more_information")}