-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
41db01e
commit 0911579
Showing
8 changed files
with
276 additions
and
151 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { A } from "solid-navigator"; | ||
import { styled } from "solid-styled-components"; | ||
import ItemContainer from "./ui/LegacyItem"; | ||
import { FlexRow } from "./ui/Flexbox"; | ||
import Icon from "./ui/icon/Icon"; | ||
import { t } from "i18next"; | ||
import Text from "./ui/Text"; | ||
const SettingItemContainer = styled(ItemContainer)<{ nested?: boolean }>` | ||
height: 32px; | ||
gap: 5px; | ||
padding-left: ${(props) => (props.nested ? "25px" : "10px")}; | ||
margin-left: 3px; | ||
margin-right: 3px; | ||
margin-bottom: 2px; | ||
:first { | ||
background-color: red; | ||
} | ||
.label { | ||
opacity: ${(props) => (props.selected ? 1 : 0.6)}; | ||
font-size: 14px; | ||
transition: 0.2s; | ||
color: white; | ||
} | ||
&:hover .label { | ||
opacity: 1; | ||
} | ||
`; | ||
export function SupportBlock() { | ||
return ( | ||
<A | ||
href="https://boosty.to/supertigerdev/donate" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
style={{ "text-decoration": "none" }} | ||
> | ||
<SettingItemContainer | ||
style={{ | ||
background: "var(--alert-color)", | ||
"border-radius": "6px", | ||
height: "initial", | ||
padding: "6px", | ||
"align-items": "start", | ||
"flex-direction": "column", | ||
}} | ||
> | ||
<FlexRow gap={4}> | ||
<Icon | ||
style={{ "align-self": "start", "margin-top": "3px" }} | ||
name="favorite" | ||
size={18} | ||
/> | ||
<div> | ||
<Text style={{ "font-weight": "bold" }}> | ||
{t("supportBlock.support")} | ||
</Text> | ||
<div> | ||
<Text size={12}>{t("supportBlock.supportDescription")}</Text> | ||
</div> | ||
</div> | ||
</FlexRow> | ||
<FlexRow style={{ "align-self": "center" }} gap={6}> | ||
<a target="_blank" href="https://ko-fi.com/supertiger"> | ||
<img | ||
style={{ "border-radius": "50%" }} | ||
src="/assets/kofi.png" | ||
width={28} | ||
height={28} | ||
/> | ||
</a> | ||
<a target="_blank" href="https://boosty.to/supertigerdev/donate"> | ||
<img | ||
style={{ "border-radius": "50%" }} | ||
src="/assets/boosty.jpg" | ||
width={28} | ||
height={28} | ||
/> | ||
</a> | ||
</FlexRow> | ||
</SettingItemContainer> | ||
</A> | ||
); | ||
} |
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
Oops, something went wrong.