mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import { showDialog } from "./Dialog";
|
|
import showStarHistoryDialog from "./StarHistoryDialog";
|
|
import "../less/about-site-dialog.less";
|
|
|
|
interface Props extends DialogProps {}
|
|
|
|
const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
|
|
const handleCloseBtnClick = () => {
|
|
destroy();
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<div className="dialog-header-container">
|
|
<p className="title-text">
|
|
<span className="icon-text">🤠</span>About <b>Memos</b>
|
|
</p>
|
|
<button className="btn close-btn" onClick={handleCloseBtnClick}>
|
|
<img className="icon-img" src="/icons/close.svg" />
|
|
</button>
|
|
</div>
|
|
<div className="dialog-content-container">
|
|
<p>
|
|
Memos is an open source, self-hosted alternative to <a href="https://flomoapp.com">flomo</a>.
|
|
</p>
|
|
<p>Built with `Golang` and `React`.</p>
|
|
<br />
|
|
<p>
|
|
🏗 This project is working in progress, <br /> and very pleasure to welcome your{" "}
|
|
<a href="https://github.com/justmemos/memos/issues">issues</a> and <a href="https://github.com/justmemos/memos/pulls">PR</a>.
|
|
</p>
|
|
<br />
|
|
<span className="btn" onClick={showStarHistoryDialog}>
|
|
Star History
|
|
</span>
|
|
<hr />
|
|
<p className="normal-text">
|
|
Last updated on <span className="pre-text">2021/12/12 14:38:15</span> 🎉
|
|
</p>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default function showAboutSiteDialog(): void {
|
|
showDialog(
|
|
{
|
|
className: "about-site-dialog",
|
|
},
|
|
AboutSiteDialog
|
|
);
|
|
}
|