aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/about
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-20 20:44:15 +0800
committercrupest <crupest@outlook.com>2023-07-20 20:44:15 +0800
commit0e183074b326cf04a23ae1f1ba8dcc56166df485 (patch)
tree87963dbe54b018ee0573cd77e674d32c23d8ba7f /FrontEnd/src/views/about
parentadc91a81fe53fdbc3d63065baa0b56862c104824 (diff)
downloadtimeline-0e183074b326cf04a23ae1f1ba8dcc56166df485.tar.gz
timeline-0e183074b326cf04a23ae1f1ba8dcc56166df485.tar.bz2
timeline-0e183074b326cf04a23ae1f1ba8dcc56166df485.zip
...
Diffstat (limited to 'FrontEnd/src/views/about')
-rw-r--r--FrontEnd/src/views/about/author-avatar.pngbin12038 -> 0 bytes
-rw-r--r--FrontEnd/src/views/about/github.pngbin4268 -> 0 bytes
-rw-r--r--FrontEnd/src/views/about/index.css4
-rw-r--r--FrontEnd/src/views/about/index.tsx143
4 files changed, 0 insertions, 147 deletions
diff --git a/FrontEnd/src/views/about/author-avatar.png b/FrontEnd/src/views/about/author-avatar.png
deleted file mode 100644
index d890d8d0..00000000
--- a/FrontEnd/src/views/about/author-avatar.png
+++ /dev/null
Binary files differ
diff --git a/FrontEnd/src/views/about/github.png b/FrontEnd/src/views/about/github.png
deleted file mode 100644
index ea6ff545..00000000
--- a/FrontEnd/src/views/about/github.png
+++ /dev/null
Binary files differ
diff --git a/FrontEnd/src/views/about/index.css b/FrontEnd/src/views/about/index.css
deleted file mode 100644
index 2574f4b7..00000000
--- a/FrontEnd/src/views/about/index.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.about-link-icon {
- width: 1.2em;
- height: 1.2em;
-}
diff --git a/FrontEnd/src/views/about/index.tsx b/FrontEnd/src/views/about/index.tsx
deleted file mode 100644
index 093da894..00000000
--- a/FrontEnd/src/views/about/index.tsx
+++ /dev/null
@@ -1,143 +0,0 @@
-import { useTranslation, Trans } from "react-i18next";
-
-import authorAvatarUrl from "./author-avatar.png";
-import githubLogoUrl from "./github.png";
-
-import Card from "../common/Card";
-
-import "./index.css";
-
-const frontendCredits: {
- name: string;
- url: string;
-}[] = [
- {
- name: "reactjs",
- url: "https://reactjs.org",
- },
- {
- name: "typescript",
- url: "https://www.typescriptlang.org",
- },
- {
- name: "bootstrap",
- url: "https://getbootstrap.com",
- },
- {
- name: "vite",
- url: "https://vitejs.dev",
- },
- {
- name: "eslint",
- url: "https://eslint.org",
- },
- {
- name: "prettier",
- url: "https://prettier.io",
- },
- {
- name: "pepjs",
- url: "https://github.com/jquery/PEP",
- },
-];
-
-const backendCredits: {
- name: string;
- url: string;
-}[] = [
- {
- name: "ASP.NET Core",
- url: "https://dotnet.microsoft.com/learn/aspnet/what-is-aspnet-core",
- },
- { name: "sqlite", url: "https://sqlite.org" },
- {
- name: "ImageSharp",
- url: "https://github.com/SixLabors/ImageSharp",
- },
-];
-
-export default function AboutPage() {
- const { t } = useTranslation();
-
- return (
- <div className="px-2 mb-4">
- <Card className="container mt-4 py-3">
- <h4 id="author-info">{t("about.author.title")}</h4>
- <div>
- <div className="d-block">
- <img
- src={authorAvatarUrl}
- className="cru-avatar large cru-round cru-float-left"
- />
- <p>
- <small>{t("about.author.name")}</small>
- <span className="cru-color-primary">crupest</span>
- </p>
- <p>
- <small>{t("about.author.introduction")}</small>
- {t("about.author.introductionContent")}
- </p>
- </div>
- <p>
- <small>{t("about.author.links")}</small>
- <a
- href="https://github.com/crupest"
- target="_blank"
- rel="noopener noreferrer"
- >
- <img src={githubLogoUrl} className="about-link-icon" />
- </a>
- </p>
- </div>
- </Card>
- <Card className="container mt-4 py-3">
- <h4>{t("about.site.title")}</h4>
- <p>
- <Trans i18nKey="about.site.content">
- 0<span className="cru-color-primary">1</span>2<b>3</b>4
- <a href="#author-info">5</a>6
- </Trans>
- </p>
- <p>
- <a
- href="https://github.com/crupest/Timeline"
- target="_blank"
- rel="noopener noreferrer"
- >
- {t("about.site.repo")}
- </a>
- </p>
- </Card>
- <Card className="container mt-4 py-3">
- <h4>{t("about.credits.title")}</h4>
- <p>{t("about.credits.content")}</p>
- <p>{t("about.credits.frontend")}</p>
- <ul>
- {frontendCredits.map((item, index) => {
- return (
- <li key={index}>
- <a href={item.url} target="_blank" rel="noopener noreferrer">
- {item.name}
- </a>
- </li>
- );
- })}
- <li>...</li>
- </ul>
- <p>{t("about.credits.backend")}</p>
- <ul>
- {backendCredits.map((item, index) => {
- return (
- <li key={index}>
- <a href={item.url} target="_blank" rel="noopener noreferrer">
- {item.name}
- </a>
- </li>
- );
- })}
- <li>...</li>
- </ul>
- </Card>
- </div>
- );
-}