1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
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>
);
}
|