mirror of https://github.com/usememos/memos
chore: update about page
parent
9459ae8265
commit
4c59035757
@ -1,53 +0,0 @@
|
||||
import { Divider, IconButton } from "@mui/joy";
|
||||
import { useGlobalStore } from "@/store/module";
|
||||
import { useTranslate } from "@/utils/i18n";
|
||||
import { generateDialog } from "./Dialog";
|
||||
import Icon from "./Icon";
|
||||
|
||||
type Props = DialogProps;
|
||||
|
||||
const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
|
||||
const t = useTranslate();
|
||||
const globalStore = useGlobalStore();
|
||||
const profile = globalStore.state.systemStatus.profile;
|
||||
const customizedProfile = globalStore.state.systemStatus.customizedProfile;
|
||||
|
||||
const handleCloseBtnClick = () => {
|
||||
destroy();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="dialog-header-container">
|
||||
<p className="title-text flex items-center">
|
||||
{t("common.about")} {customizedProfile.name}
|
||||
</p>
|
||||
<IconButton size="sm" onClick={handleCloseBtnClick}>
|
||||
<Icon.X className="opacity-70" />
|
||||
</IconButton>
|
||||
</div>
|
||||
<div className="flex flex-col justify-start items-start max-w-full w-96">
|
||||
<p className="text-xs">{t("about.memos-description")}</p>
|
||||
<p className="text-sm mt-2">{customizedProfile.description || t("about.no-server-description")}</p>
|
||||
<Divider className="!my-3" />
|
||||
<div className="w-full flex flex-row justify-start items-center text-sm italic">
|
||||
{t("about.powered-by")}
|
||||
<a className="shrink-0 flex flex-row justify-start items-center mx-1 hover:underline" href="https://usememos.com" target="_blank">
|
||||
<img className="w-auto h-7" src="https://www.usememos.com/full-logo-landscape.png" alt="" />
|
||||
</a>
|
||||
<span>v{profile.version}</span>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default function showAboutSiteDialog(): void {
|
||||
generateDialog(
|
||||
{
|
||||
className: "about-site-dialog",
|
||||
dialogName: "about-site-dialog",
|
||||
},
|
||||
AboutSiteDialog
|
||||
);
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
import { Link } from "@mui/joy";
|
||||
import Icon from "@/components/Icon";
|
||||
import MobileHeader from "@/components/MobileHeader";
|
||||
|
||||
const About = () => {
|
||||
return (
|
||||
<section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">
|
||||
<MobileHeader />
|
||||
<div className="w-full px-4 sm:px-6">
|
||||
<div className="w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300">
|
||||
<img className="w-auto h-12" src="https://www.usememos.com/full-logo-landscape.png" alt="" />
|
||||
<p className="text-base">A privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.</p>
|
||||
<div className="mt-1 flex flex-row items-center flex-wrap">
|
||||
<Link underline="always" href="https://github.com/usememos/memos">
|
||||
GitHub Repo
|
||||
</Link>
|
||||
<Icon.Dot className="w-4 h-auto opacity-60" />
|
||||
<Link underline="always" href="https://www.usememos.com/">
|
||||
Offical Website
|
||||
</Link>
|
||||
<Icon.Dot className="w-4 h-auto opacity-60" />
|
||||
<Link underline="always" href="https://www.usememos.com/blog">
|
||||
Blogs
|
||||
</Link>
|
||||
<Icon.Dot className="w-4 h-auto opacity-60" />
|
||||
<Link underline="always" href="https://www.usememos.com/blog">
|
||||
Documents
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default About;
|
Loading…
Reference in New Issue