mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-21 11:51:17 +00:00
Adding join button. (#443)
* Adding join button. - Fixes #440 * Abstracting button classes. * Removing normal-case.
This commit is contained in:
parent
2328942697
commit
830fa6f1f7
1 changed files with 10 additions and 1 deletions
|
@ -132,6 +132,9 @@ class InstanceCard extends Component<InstanceCardProps, InstanceCardState> {
|
||||||
|
|
||||||
const modalId = `modal_${domain}`;
|
const modalId = `modal_${domain}`;
|
||||||
|
|
||||||
|
const extraButtonClasses =
|
||||||
|
"btn btn-secondary btn-outline text-white max-md:btn-block";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="card card-bordered bg-neutral-900 shadow-xl">
|
<div className="card card-bordered bg-neutral-900 shadow-xl">
|
||||||
<div className="card-body p-4">
|
<div className="card-body p-4">
|
||||||
|
@ -170,8 +173,14 @@ class InstanceCard extends Component<InstanceCardProps, InstanceCardState> {
|
||||||
>
|
>
|
||||||
{i18n.t("explore")}
|
{i18n.t("explore")}
|
||||||
</a>
|
</a>
|
||||||
|
<a
|
||||||
|
className={extraButtonClasses}
|
||||||
|
href={`${buildUrl(domain)}/signup`}
|
||||||
|
>
|
||||||
|
{i18n.t("join")}
|
||||||
|
</a>
|
||||||
<button
|
<button
|
||||||
className="btn btn-secondary btn-outline text-white max-md:btn-block normal-case"
|
className={extraButtonClasses}
|
||||||
onClick={linkEvent(this, handleModalClick)}
|
onClick={linkEvent(this, handleModalClick)}
|
||||||
>
|
>
|
||||||
{i18n.t("more_information")}
|
{i18n.t("more_information")}
|
||||||
|
|
Loading…
Reference in a new issue