Move about page to documentation (#145)

https://github.com/LemmyNet/lemmy-docs/pull/172#discussion_r1174154932
This commit is contained in:
Nutomic 2023-04-25 22:40:09 +02:00 committed by GitHub
parent da19f17734
commit 49818c012d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 54 deletions

@ -1 +1 @@
Subproject commit 003c3e4b17de324123a36e6e2a89529427edb10f
Subproject commit 0024697dae71bafaa2353430294fa1da9a8b2d5f

View file

@ -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>
);
}
}

View file

@ -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`}>

View file

@ -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,