From 0de2b91abc27eb1e82d4a3e33c51fd76dd197f05 Mon Sep 17 00:00:00 2001 From: thislight Date: Thu, 2 Jan 2025 18:12:14 +0800 Subject: [PATCH] Settings: add tutu's mastodon link --- src/settings/MastodonLogo.tsx | 35 +++++++++++++++++++++++++++++++++++ src/settings/Settings.tsx | 17 +++++++++++++---- 2 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 src/settings/MastodonLogo.tsx diff --git a/src/settings/MastodonLogo.tsx b/src/settings/MastodonLogo.tsx new file mode 100644 index 0000000..e9a31aa --- /dev/null +++ b/src/settings/MastodonLogo.tsx @@ -0,0 +1,35 @@ +import { SvgIcon } from "@suid/material"; + +export default function () { + return ( + + + + + + + + + + + ); +} diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 8bd5794..064b722 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -1,7 +1,6 @@ import { For, Show, type Component } from "solid-js"; import Scaffold from "~material/Scaffold.js"; import { - AppBar, Divider, IconButton, List, @@ -13,7 +12,6 @@ import { ListSubheader, NativeSelect, Switch, - Toolbar, } from "@suid/material"; import { Animation as AnimationIcon, @@ -39,9 +37,10 @@ import { } from "~platform/i18n.jsx"; import { type Template } from "@solid-primitives/i18n"; import { useServiceWorker } from "~platform/host.js"; -import { useSessions } from "../masto/clients.js"; +import { makeAcctText, useSessions } from "../masto/clients.js"; import { useNavigator } from "~platform/StackedRouter.jsx"; import AppTopBar from "~material/AppTopBar.jsx"; +import MastodonLogo from "./MastodonLogo.jsx"; type Inset = { top?: number; @@ -321,7 +320,17 @@ const Settings: Component = () => { - + 0 ? makeAcctText(profiles()[0]) : "@")}/profile/@tutu@indieweb.social`} + > + + + } + > {t("About Tutu")}