feat: source code link in about page

This commit is contained in:
Artemy 2023-04-27 18:56:35 +03:00
parent 962cec0875
commit 24046c0f32
3 changed files with 14 additions and 3 deletions

View file

@ -31,6 +31,8 @@ import socket from "./components/socket";
import Settings from "./pages/settings"; import Settings from "./pages/settings";
import { useState } from "react"; import { useState } from "react";
import { localesProcess } from "./components/utils"; import { localesProcess } from "./components/utils";
import { ButtonWithIcon } from "./components/button";
import { LinkIcon } from "@heroicons/react/24/outline";
function App() { function App() {
Storage.prototype.setObj = function (key, obj) { Storage.prototype.setObj = function (key, obj) {
@ -82,9 +84,16 @@ function App() {
<Route <Route
path="/about" path="/about"
element={ element={
<div className="col-span-4 md"> <>
<RenderMarkdown>{locals.about_md}</RenderMarkdown> <ButtonWithIcon
</div> icon={LinkIcon}
text={locals.SourceCode}
href="https://github.com/artegoser/AnoPaper"
/>
<div className="col-span-4 md">
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
</div>
</>
} }
/> />
<Route path="/notes" element={<Notes />} /> <Route path="/notes" element={<Notes />} />

View file

@ -74,6 +74,7 @@ let en = {
NoNotesFound: "No notes found", NoNotesFound: "No notes found",
LocalNote: "Local", LocalNote: "Local",
Menu: "Menu", Menu: "Menu",
SourceCode: "Source code",
}; };
export default en; export default en;

View file

@ -76,6 +76,7 @@ let ru = {
LocalNote: "Локальная", LocalNote: "Локальная",
PublishNote: "Публичная", PublishNote: "Публичная",
Menu: "Меню", Menu: "Меню",
SourceCode: "Исходный код",
}; };
export default ru; export default ru;