mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-25 22:01:17 +00:00
Move about page to documentation
https://github.com/LemmyNet/lemmy-docs/pull/172#discussion_r1174154932
This commit is contained in:
parent
da19f17734
commit
b6d489a188
4 changed files with 1 additions and 54 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 003c3e4b17de324123a36e6e2a89529427edb10f
|
||||
Subproject commit 0024697dae71bafaa2353430294fa1da9a8b2d5f
|
|
@ -1,46 +0,0 @@
|
|||
import { Component } from "inferno";
|
||||
import { Helmet } from "inferno-helmet";
|
||||
import { i18n } from "../i18next";
|
||||
import { T } from "inferno-i18next";
|
||||
import { isBrowser } from "../utils";
|
||||
|
||||
const title = i18n.t("about_title");
|
||||
|
||||
export class About extends Component<any, any> {
|
||||
constructor(props: any, context: any) {
|
||||
super(props, context);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (isBrowser()) {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<Helmet title={title}>
|
||||
<meta property={"title"} content={title} />
|
||||
</Helmet>
|
||||
<div class="container">
|
||||
<h1>{i18n.t("about_title")}</h1>
|
||||
<T i18nKey="about_text">
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<p>#</p>
|
||||
<i class="is-right">#</i>
|
||||
</T>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
|
@ -12,7 +12,6 @@ export class LinkLine extends Component<any, any> {
|
|||
<>
|
||||
<Link to="/instances">{i18n.t("join")}</Link>
|
||||
<Link to="/news">{i18n.t("news")}</Link>
|
||||
<Link to="/about">{i18n.t("about")}</Link>
|
||||
<Link to="/apps">{i18n.t("apps")}</Link>
|
||||
<Link to="/donate">{i18n.t("donate")}</Link>
|
||||
<a href={`/docs/${getDocsLanguage(i18n.language)}/index.html`}>
|
||||
|
|
|
@ -4,7 +4,6 @@ import { Apps } from "./components/apps";
|
|||
import { Instances } from "./components/instances";
|
||||
import { Contact } from "./components/contact";
|
||||
import { Donate } from "./components/donate";
|
||||
import { About } from "./components/about";
|
||||
import { News } from "./components/news";
|
||||
import { NewsItem } from "./components/news-item";
|
||||
|
||||
|
@ -29,11 +28,6 @@ export const routes: IRouteProps[] = [
|
|||
exact: true,
|
||||
component: NewsItem,
|
||||
},
|
||||
{
|
||||
path: `/about`,
|
||||
exact: true,
|
||||
component: About,
|
||||
},
|
||||
{
|
||||
path: `/instances`,
|
||||
exact: true,
|
||||
|
|
Loading…
Reference in a new issue