-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2906a69
commit c10de32
Showing
7 changed files
with
72 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { ParentComponent } from "solid-js"; | ||
import { A } from "solid-start"; | ||
|
||
import forward from "~/assets/icons/forward.svg"; | ||
import { useI18n } from "~/i18n/context"; | ||
|
||
export const CtaCard: ParentComponent = (props) => { | ||
return ( | ||
<div class="w-full"> | ||
<div class="relative"> | ||
<div class="to-bg-m-grey-900/50 absolute inset-0 h-full w-full scale-[0.60] transform rounded-full bg-m-red/50 bg-gradient-to-r from-m-red/50 blur-2xl" /> | ||
<div class="relative flex-col gap-2 rounded-xl border border-m-red bg-m-grey-800 py-4"> | ||
{props.children}{" "} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export function MutinyPlusCta() { | ||
const i18n = useI18n(); | ||
return ( | ||
<CtaCard> | ||
<A | ||
href={"/settings/plus"} | ||
class="flex w-full flex-col gap-1 px-4 py-2 no-underline hover:bg-m-grey-750 active:bg-m-grey-900" | ||
> | ||
<div class="flex justify-between"> | ||
<span> | ||
Mutiny<span class="text-m-red">+</span> | ||
</span> | ||
<img src={forward} alt="go" /> | ||
</div> | ||
<div class="text-sm text-m-grey-400"> | ||
{i18n.t("settings.plus.cta_description")} | ||
</div> | ||
</A> | ||
</CtaCard> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters