From 3fcc12ce6975d033851b3c41f39d8de907a1d1dc Mon Sep 17 00:00:00 2001 From: Sakura Knoll Date: Mon, 7 Nov 2022 10:04:44 +0900 Subject: [PATCH] Add about page --- readme.md | 6 +- src/components/layouts/Honkai3rdLayout.tsx | 71 ++++++++++++++++++- .../organisms/Honkai3rdNavigator.tsx | 40 +++++++---- src/pages/honkai3rd/about.tsx | 65 +++++++++++++++++ 4 files changed, 162 insertions(+), 20 deletions(-) create mode 100644 src/pages/honkai3rd/about.tsx diff --git a/readme.md b/readme.md index 7a657d36..ee6d1042 100644 --- a/readme.md +++ b/readme.md @@ -79,14 +79,14 @@ Prior works - [Seven Swords EN Translation Google Docs](https://docs.google.com/document/d/1vCSIOWXYogEPSYYsVzQCrpgOadw6-udABBgd5eAvoZ8/edit#) - [Seven Swords EN Translation Game Play Video](https://www.youtube.com/channel/UCyeHz1CGgJkXJd-c7lw_RiQ/playlists) -## License +## Copyright / License ### Game Data -There is no license. All images and data under `/public/data` and `/public/assets/honkai3rd` belong to miHoYo Co., Ltd. +All game images and game data belong to miHoYo Co., Ltd. There is no license I can provide. I'm using their assets for educational and research purpose without any permissions from them. ### Other source code -MIT / Copyright 2021 Sakura Knoll +Copyright 2021-2022 Sakura Knoll, Published under MIT License. diff --git a/src/components/layouts/Honkai3rdLayout.tsx b/src/components/layouts/Honkai3rdLayout.tsx index efccadae..97444e77 100644 --- a/src/components/layouts/Honkai3rdLayout.tsx +++ b/src/components/layouts/Honkai3rdLayout.tsx @@ -1,10 +1,10 @@ /** @jsxImportSource theme-ui */ - -import { mdiArrowUp, mdiMenu } from '@mdi/js' +import { mdiArrowUp, mdiDiscord, mdiGithub, mdiLink, mdiMenu } from '@mdi/js' import Icon from '@mdi/react' import React, { useCallback, useRef, useState } from 'react' -import { Box, Flex, IconButton } from 'theme-ui' +import { Box, Flex, IconButton, Link, Text } from 'theme-ui' import Honkai3rdNavigator from '../organisms/Honkai3rdNavigator' +import NextLink from 'next/link' const Honkai3rdLayout: React.FC = ({ children }) => { const [hiddenMobileNav, setHiddenMobileNav] = useState(true) @@ -102,6 +102,71 @@ const Honkai3rdLayout: React.FC = ({ children }) => { {children} + + + + + + About Abyss Lab + + + + / + + + + GitHub(Source Code) + + + / + + + + Discord (EN) + + + / + + + + arca.live (KR) + + + ) diff --git a/src/components/organisms/Honkai3rdNavigator.tsx b/src/components/organisms/Honkai3rdNavigator.tsx index 8603bcdf..e8ff6620 100644 --- a/src/components/organisms/Honkai3rdNavigator.tsx +++ b/src/components/organisms/Honkai3rdNavigator.tsx @@ -9,6 +9,7 @@ import { Flex, IconButton, Switch, + Label, } from '@theme-ui/components' import NextLink from 'next/link' import { useRouter } from 'next/router' @@ -86,23 +87,34 @@ const Honkai3rdNavigator = ({ close }: Honkai3rdNavigatorProps) => { - - { - setColorMode(event.target.checked ? 'dark' : 'default') - }} + + > + + { + setColorMode(event.target.checked ? 'dark' : 'default') + }} + sx={{ + width: 50, + 'input ~ &': { + backgroundColor: 'muted', + }, + 'input:checked ~ &': { + backgroundColor: 'primary', + }, + }} + /> + + + ) diff --git a/src/pages/honkai3rd/about.tsx b/src/pages/honkai3rd/about.tsx new file mode 100644 index 00000000..d7951c04 --- /dev/null +++ b/src/pages/honkai3rd/about.tsx @@ -0,0 +1,65 @@ +/** @jsxImportSource theme-ui */ +import { Box, Heading, Text, Paragraph } from '@theme-ui/components' +import Breadcrumb from '../../components/organisms/Breadcrumb' +import { useTranslation } from '../../lib/i18n' +import Head from '../../components/atoms/Head' +import Honkai3rdLayout from '../../components/layouts/Honkai3rdLayout' + +import { getI18NProps } from '../../server/i18n' +import { NextPageContext } from 'next' +const AboutPage = () => { + const { t } = useTranslation() + return ( + + + + + + About Abyss Lab + + Abyss Lab is an unofficial Honkai Impact 3rd wiki. I, Sakura Knoll, + have been making this for fun. If you find any issues or idea, please + contact me via Github Issue Tracker or Discord. + + + + Copyright / License + + + Game Data + + All game images and game data belong to{' '} + miHoYo Co., Ltd. There is no + license I can provide. I'm using their assets for educational and + research purpose{' '} + + without any permissions from them + + . + + Other Resources + + Copyright 2021-2022 Sakura Knoll, Published under MIT License. + + + + ) +} + +export async function getStaticProps({ locale }: NextPageContext) { + return { + props: { + ...(await getI18NProps(locale)), + }, + } +} + +export default AboutPage