2023-07-12 16:20:38 +00:00
|
|
|
/** @jsx h */
|
2023-09-06 16:29:27 +00:00
|
|
|
import { h } from "https://esm.sh/preact@10.17.1";
|
2023-07-12 16:20:38 +00:00
|
|
|
import { DividerClass } from "./components/tw.ts";
|
|
|
|
import { LinkColor, PrimaryTextColor, SecondaryBackgroundColor } from "./style/colors.ts";
|
2023-12-17 20:41:49 +00:00
|
|
|
import { emitFunc } from "../event-bus.ts";
|
|
|
|
import { SelectConversation } from "./search_model.ts";
|
|
|
|
import { PublicKey } from "../lib/nostr-ts/key.ts";
|
2023-07-12 16:20:38 +00:00
|
|
|
|
2023-12-17 20:41:49 +00:00
|
|
|
export function About(emit: emitFunc<SelectConversation>) {
|
2023-07-12 16:20:38 +00:00
|
|
|
return (
|
|
|
|
<div
|
2023-12-17 20:41:49 +00:00
|
|
|
class={`flex-1 overflow-hidden bg-[${SecondaryBackgroundColor}] text-[${PrimaryTextColor}]`}
|
2023-07-12 16:20:38 +00:00
|
|
|
>
|
2023-12-17 20:41:49 +00:00
|
|
|
<div class={`max-w-[50rem] p-[1rem] m-auto`}>
|
|
|
|
<h1 class={`text-[1.8rem] font-bold`}>Blowater</h1>
|
|
|
|
<div class={`${DividerClass}`}></div>
|
2023-07-12 16:20:38 +00:00
|
|
|
<p>Blowater is delightful DM focusing Nostr client.</p>
|
|
|
|
|
2023-12-17 20:41:49 +00:00
|
|
|
<p class={`mt-4`}>
|
2023-07-12 16:20:38 +00:00
|
|
|
It's here to replace Telegram/Slack/Discord alike centralized chat apps and give users a
|
|
|
|
strong privacy, globally available decentralized chat app.
|
|
|
|
</p>
|
|
|
|
|
2023-12-17 20:41:49 +00:00
|
|
|
<p class={`text-[1.3rem] font-bold mt-8`}>Creator</p>
|
2023-07-12 16:20:38 +00:00
|
|
|
<a
|
2023-12-17 20:41:49 +00:00
|
|
|
class={`text-[${LinkColor}] hover:underline mt-4 hover:cursor-pointer`}
|
2023-07-12 16:20:38 +00:00
|
|
|
target="_blank"
|
2023-12-17 20:41:49 +00:00
|
|
|
onClick={() => {
|
|
|
|
const pub = PublicKey.FromBech32(
|
|
|
|
"npub1dww6jgxykmkt7tqjqx985tg58dxlm7v83sa743578xa4j7zpe3hql6pdnf",
|
|
|
|
);
|
|
|
|
if (pub instanceof Error) throw pub;
|
|
|
|
emit({
|
|
|
|
type: "SelectConversation",
|
|
|
|
isGroupChat: false,
|
|
|
|
pubkey: pub,
|
|
|
|
});
|
|
|
|
}}
|
2023-07-12 16:20:38 +00:00
|
|
|
>
|
2023-12-17 20:41:49 +00:00
|
|
|
Water Blower (feel free to ask me questions)
|
2023-07-12 16:20:38 +00:00
|
|
|
</a>
|
2023-12-17 20:41:49 +00:00
|
|
|
<p class={`mt-4 text-[1.2rem]`}>Donation</p>
|
2023-07-12 16:20:38 +00:00
|
|
|
<p>
|
|
|
|
Lightning:{" "}
|
|
|
|
<a
|
2023-12-17 20:41:49 +00:00
|
|
|
class={`text-[${LinkColor}] hover:underline mt-4`}
|
2023-07-12 16:20:38 +00:00
|
|
|
>
|
|
|
|
blowater@getalby.com
|
|
|
|
</a>
|
|
|
|
</p>
|
2023-12-17 20:41:49 +00:00
|
|
|
<p class={`mt-4`}>
|
2023-07-12 16:20:38 +00:00
|
|
|
Open sourced at{" "}
|
|
|
|
<a
|
2023-12-17 20:41:49 +00:00
|
|
|
class={`text-[${LinkColor}] hover:underline mt-4`}
|
2023-07-12 16:20:38 +00:00
|
|
|
href="https://github.com/BlowaterNostr/blowater"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
GitHub
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|