taevas.xyz/src/components/Tab/Support.tsx

57 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-05-31 15:20:31 +02:00
import React from "react";
import Tab from "../Tab.js";
2024-05-08 16:28:41 +02:00
import Translatable from "../Translatable.js";
import {UserFavorite} from "@carbon/icons-react";
import {type TabDetails} from "../../contexts.js";
2023-05-31 15:20:31 +02:00
2024-05-08 16:28:41 +02:00
export default function Support({
setTabs,
2023-06-05 19:04:43 +02:00
}: {
setTabs: React.Dispatch<React.SetStateAction<TabDetails[]>>;
2023-05-31 15:20:31 +02:00
}) {
2023-11-05 21:01:24 +01:00
const elements = [(
2024-05-08 16:28:41 +02:00
<div className="m-4 pb-2 text-white" key={"support"}>
<p>
<b>
<Translatable
en={"Thanks for even considering supporting me!"}
fr={"Déjà, merci d'envisager de me soutenir !"}
/>
</b>
</p>
<br/>
2024-05-08 16:28:41 +02:00
<p>
<Translatable
en={"Monthly, I would basically only need $3 from 2 people to keep doing what I like without losing much money!"}
fr={"En gros, je n'aurais besoin que de $3 de 2 personnes par mois pour que je puisse continuer de faire ce que j'aime sans perdre top d'argent !"}
/>
</p>
<p>
<Translatable
en={"Only if you want and if you can, you may support me through my Ko-fi page:"}
fr={"Seulement si vous le souhaitez et si vous le pouvez, alors vous pouvez me soutenir sur ma page Ko-fi :"}
/>
</p>
2024-04-24 22:35:22 +02:00
<a href='https://ko-fi.com/V7V4J78L0' target='_blank' rel="noreferrer">
<img className="h-12 mx-auto my-2" src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' alt='Support me on Ko-fi!' />
</a>
2023-05-31 15:20:31 +02:00
</div>
2024-04-24 22:35:22 +02:00
)];
2024-05-08 16:28:41 +02:00
return (
2024-05-08 16:28:41 +02:00
<Tab
setTabs={setTabs}
2024-05-08 16:28:41 +02:00
id="support"
name={
<Translatable
en={"Support"}
fr={"Soutenir"}
/>
}
elements={elements}
2024-05-12 16:55:00 +02:00
logo={<UserFavorite size={48} fill=""/>}
position="lg:left-[550px] lg:top-[350px]"
2024-05-08 16:28:41 +02:00
/>
2024-04-24 22:35:22 +02:00
);
2023-05-31 15:20:31 +02:00
}