Restructure layout
This commit is contained in:
@@ -0,0 +1,60 @@
|
|||||||
|
/** @jsxImportSource theme-ui */
|
||||||
|
|
||||||
|
import { mdiMenu } from '@mdi/js'
|
||||||
|
import Icon from '@mdi/react'
|
||||||
|
import React, { useCallback, useState } from 'react'
|
||||||
|
import { Box, Flex, IconButton } from 'theme-ui'
|
||||||
|
import Honkai3rdNavigator from '../organisms/Honkai3rdNavigator'
|
||||||
|
|
||||||
|
const Honkai3rdLayout: React.FC = ({ children }) => {
|
||||||
|
const [hiddenMobileNav, setHiddenMobileNav] = useState(true)
|
||||||
|
|
||||||
|
const close = useCallback(() => {
|
||||||
|
setHiddenMobileNav(true)
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Flex
|
||||||
|
sx={{
|
||||||
|
height: '100%',
|
||||||
|
overflow: 'hidden',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
width: ['100%', 240],
|
||||||
|
borderRightWidth: 1,
|
||||||
|
borderRightStyle: 'solid',
|
||||||
|
borderRightColor: 'gray.2',
|
||||||
|
overflowY: 'auto',
|
||||||
|
overflowX: 'hidden',
|
||||||
|
display: [hiddenMobileNav ? 'none' : 'block', 'block'],
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Honkai3rdNavigator close={close} />
|
||||||
|
</Box>
|
||||||
|
<Box sx={{ flex: 1, overflowY: 'auto', overflowX: 'hidden' }}>
|
||||||
|
<Flex
|
||||||
|
sx={{
|
||||||
|
position: 'sticky',
|
||||||
|
display: ['block', 'none'],
|
||||||
|
top: 0,
|
||||||
|
height: 50,
|
||||||
|
bg: 'rgba(255,255,255,0.8)',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<IconButton
|
||||||
|
sx={{ width: 50, height: 50 }}
|
||||||
|
onClick={() => setHiddenMobileNav(false)}
|
||||||
|
>
|
||||||
|
<Icon path={mdiMenu} size={1} />
|
||||||
|
</IconButton>
|
||||||
|
</Flex>
|
||||||
|
|
||||||
|
{children}
|
||||||
|
</Box>
|
||||||
|
</Flex>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Honkai3rdLayout
|
||||||
@@ -1,129 +1,65 @@
|
|||||||
/** @jsxImportSource theme-ui */
|
/** @jsxImportSource theme-ui */
|
||||||
import { mdiClose, mdiMenu, mdiMenuRight, mdiMenuSwap } from '@mdi/js'
|
import { mdiClose, mdiMenuSwap } from '@mdi/js'
|
||||||
import Icon from '@mdi/react'
|
import Icon from '@mdi/react'
|
||||||
import {
|
import {
|
||||||
NavLink,
|
NavLink,
|
||||||
Heading,
|
Heading,
|
||||||
Flex,
|
|
||||||
Text,
|
Text,
|
||||||
Box,
|
Box,
|
||||||
|
Flex,
|
||||||
IconButton,
|
IconButton,
|
||||||
Link,
|
|
||||||
} from '@theme-ui/components'
|
} from '@theme-ui/components'
|
||||||
import NextLink from 'next/link'
|
import NextLink from 'next/link'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { useCallback, useState } from 'react'
|
|
||||||
import { assetsBucketBaseUrl } from '../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../lib/consts'
|
||||||
import { useTranslation } from '../../lib/i18n'
|
import { useTranslation } from '../../lib/i18n'
|
||||||
import PageLink from '../atoms/PageLink'
|
|
||||||
import SquareImageBox from '../atoms/SquareImageBox'
|
import SquareImageBox from '../atoms/SquareImageBox'
|
||||||
|
|
||||||
const Honkai3rdNavigator = () => {
|
interface Honkai3rdNavigatorProps {
|
||||||
|
close: () => void
|
||||||
|
}
|
||||||
|
|
||||||
|
const Honkai3rdNavigator = ({ close }: Honkai3rdNavigatorProps) => {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { pathname, asPath, query, locale } = router
|
const { pathname, asPath, query, locale } = router
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
const [hiddenMobileNav, setHiddenMobileNav] = useState(true)
|
|
||||||
|
|
||||||
const close = useCallback(() => {
|
|
||||||
setHiddenMobileNav(true)
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
|
||||||
mx={3}
|
|
||||||
sx={{
|
|
||||||
alignItems: 'center',
|
|
||||||
position: 'sticky',
|
|
||||||
backgroundColor: 'rgba(255,255,255,0.9)',
|
|
||||||
top: 0,
|
|
||||||
zIndex: 100,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Flex
|
|
||||||
sx={{ alignItems: 'center', height: 50, display: ['none', 'flex'] }}
|
|
||||||
mr={3}
|
|
||||||
>
|
|
||||||
<Heading margin={0}>
|
|
||||||
<NextLink href='/' passHref>
|
|
||||||
<NavLink mr={2}>Abyss Lab</NavLink>
|
|
||||||
</NextLink>
|
|
||||||
:
|
|
||||||
<NextLink href='/honkai3rd' passHref>
|
|
||||||
<NavLink ml={2}>{t('nav.honkai-3rd')}</NavLink>
|
|
||||||
</NextLink>
|
|
||||||
</Heading>
|
|
||||||
</Flex>
|
|
||||||
|
|
||||||
<Flex sx={{ height: 50, display: ['flex', 'none'] }}>
|
|
||||||
<IconButton
|
|
||||||
sx={{ width: 50, height: 50, ml: -3 }}
|
|
||||||
onClick={() => setHiddenMobileNav(false)}
|
|
||||||
>
|
|
||||||
<Icon path={mdiMenu} size={1} />
|
|
||||||
</IconButton>
|
|
||||||
</Flex>
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: hiddenMobileNav ? 'none' : 'block',
|
p: 2,
|
||||||
position: 'fixed',
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
bottom: 0,
|
|
||||||
overflow: 'auto',
|
|
||||||
px: 3,
|
|
||||||
backgroundColor: 'white',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
sx={{
|
sx={{
|
||||||
height: 50,
|
|
||||||
top: 0,
|
|
||||||
position: 'sticky',
|
position: 'sticky',
|
||||||
backgroundColor: 'rgba(255,255,255,0.9)',
|
display: ['block', 'none'],
|
||||||
|
top: 0,
|
||||||
|
height: 50,
|
||||||
|
ml: -2,
|
||||||
|
mt: -2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconButton
|
<IconButton sx={{ width: 50, height: 50 }} onClick={close}>
|
||||||
sx={{ width: 50, height: 50, ml: -3 }}
|
|
||||||
onClick={() => setHiddenMobileNav(true)}
|
|
||||||
>
|
|
||||||
<Icon path={mdiClose} size={1} />
|
<Icon path={mdiClose} size={1} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
<NextLink href='/' passHref>
|
||||||
|
<NavLink mb={2}>Abyss Lab</NavLink>
|
||||||
|
</NextLink>
|
||||||
|
<Heading mb={3}>
|
||||||
|
<NextLink href='/honkai3rd' passHref>
|
||||||
|
<NavLink>{t('nav.honkai-3rd')}</NavLink>
|
||||||
|
</NextLink>
|
||||||
|
</Heading>
|
||||||
|
|
||||||
<Box>
|
<Box sx={{ mb: 3 }}>
|
||||||
<NavMobileItem href='/' label='Abyss Lab Home' close={close} />
|
|
||||||
<NavMobileItem
|
|
||||||
href='/honkai3rd'
|
|
||||||
label={`${t('nav.honkai-3rd')} Home`}
|
|
||||||
close={close}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Honkai3rdNavMobileItem target='versions' close={close} />
|
|
||||||
<Honkai3rdNavMobileItem target='battlesuits' close={close} />
|
|
||||||
<Honkai3rdNavMobileItem target='weapons' close={close} />
|
|
||||||
<Honkai3rdNavMobileItem target='stigmata' close={close} />
|
|
||||||
<Honkai3rdNavMobileItem target='elfs' close={close} />
|
|
||||||
</Box>
|
|
||||||
</Box>
|
|
||||||
<Flex
|
|
||||||
sx={{
|
|
||||||
justifyContent: 'space-between',
|
|
||||||
flex: 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Flex
|
|
||||||
sx={{ height: 40, alignItems: 'center', display: ['none', 'flex'] }}
|
|
||||||
>
|
|
||||||
<NavItem target='versions' />
|
<NavItem target='versions' />
|
||||||
<NavItem target='battlesuits' />
|
<NavItem target='battlesuits' />
|
||||||
<NavItem target='weapons' />
|
<NavItem target='weapons' />
|
||||||
<NavItem target='stigmata' />
|
<NavItem target='stigmata' />
|
||||||
<NavItem target='elfs' />
|
<NavItem target='elfs' />
|
||||||
</Flex>
|
</Box>
|
||||||
<Box />
|
|
||||||
<Flex sx={{ height: 40, alignItems: 'center' }}>
|
|
||||||
<NextLink
|
<NextLink
|
||||||
href={{ pathname, query }}
|
href={{ pathname, query }}
|
||||||
locale={locale === 'en-US' ? 'ko-KR' : 'en-US'}
|
locale={locale === 'en-US' ? 'ko-KR' : 'en-US'}
|
||||||
@@ -137,23 +73,15 @@ const Honkai3rdNavigator = () => {
|
|||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
px: 2,
|
||||||
|
mb: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>{locale === 'en-US' ? '🇺🇸 English(US)' : '🇰🇷 한국어'}</Text>
|
||||||
{locale === 'en-US' ? (
|
|
||||||
'🇺🇸'
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
🇰🇷 <small>(한글화 작업 중)</small>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Text>
|
|
||||||
<Icon path={mdiMenuSwap} size='20px' />
|
<Icon path={mdiMenuSwap} size='20px' />
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</NextLink>
|
</NextLink>
|
||||||
</Flex>
|
</Box>
|
||||||
</Flex>
|
|
||||||
</Flex>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,16 +96,16 @@ const NavItem = ({ target }: NavItemProps) => {
|
|||||||
return (
|
return (
|
||||||
<NextLink href={`/honkai3rd/${target}`} passHref>
|
<NextLink href={`/honkai3rd/${target}`} passHref>
|
||||||
<NavLink
|
<NavLink
|
||||||
mr={3}
|
|
||||||
sx={{
|
sx={{
|
||||||
fontFamily: 'monospace',
|
fontFamily: 'monospace',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
|
p: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SquareImageBox
|
<SquareImageBox
|
||||||
size={20}
|
size={30}
|
||||||
mr={1}
|
mr={1}
|
||||||
src={`${assetsBucketBaseUrl}/honkai3rd/nav-icons/${target}.png`}
|
src={`${assetsBucketBaseUrl}/honkai3rd/nav-icons/${target}.png`}
|
||||||
/>
|
/>
|
||||||
@@ -194,91 +122,3 @@ const NavItem = ({ target }: NavItemProps) => {
|
|||||||
</NextLink>
|
</NextLink>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Honkai3rdNavMobileItemProps {
|
|
||||||
target: 'versions' | 'battlesuits' | 'stigmata' | 'weapons' | 'elfs'
|
|
||||||
close: () => void
|
|
||||||
}
|
|
||||||
|
|
||||||
const Honkai3rdNavMobileItem = ({
|
|
||||||
target,
|
|
||||||
close,
|
|
||||||
}: Honkai3rdNavMobileItemProps) => {
|
|
||||||
const { push } = useRouter()
|
|
||||||
const { t } = useTranslation()
|
|
||||||
const href = `/honkai3rd/${target}`
|
|
||||||
return (
|
|
||||||
<PageLink
|
|
||||||
href={href}
|
|
||||||
sx={{
|
|
||||||
fontFamily: 'monospace',
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
overflow: 'hidden',
|
|
||||||
mb: 2,
|
|
||||||
}}
|
|
||||||
onClick={(event) => {
|
|
||||||
event.preventDefault()
|
|
||||||
close()
|
|
||||||
push(href)
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<SquareImageBox
|
|
||||||
size={40}
|
|
||||||
mr={1}
|
|
||||||
src={`${assetsBucketBaseUrl}/honkai3rd/nav-icons/${target}.png`}
|
|
||||||
/>
|
|
||||||
<Text
|
|
||||||
sx={{
|
|
||||||
overflow: 'hidden',
|
|
||||||
textOverflow: 'ellipsis',
|
|
||||||
whiteSpace: 'nowrap',
|
|
||||||
fontSize: 3,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{t(`nav.${target}`)}
|
|
||||||
</Text>
|
|
||||||
</PageLink>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
interface NavMobileItemProps {
|
|
||||||
href: string
|
|
||||||
label: string
|
|
||||||
close: () => void
|
|
||||||
}
|
|
||||||
|
|
||||||
const NavMobileItem = ({ href, label, close }: NavMobileItemProps) => {
|
|
||||||
const { push } = useRouter()
|
|
||||||
return (
|
|
||||||
<Link
|
|
||||||
href={href}
|
|
||||||
sx={{
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
fontFamily: 'monospace',
|
|
||||||
height: 40,
|
|
||||||
fontSize: 3,
|
|
||||||
mb: 2,
|
|
||||||
}}
|
|
||||||
onClick={(event) => {
|
|
||||||
event.preventDefault()
|
|
||||||
close()
|
|
||||||
push(href)
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Flex
|
|
||||||
sx={{
|
|
||||||
width: 40,
|
|
||||||
height: 40,
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
mr: 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Icon path={mdiMenuRight} size={'30px'} />
|
|
||||||
</Flex>
|
|
||||||
<Text>{label}</Text>
|
|
||||||
</Link>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ import {
|
|||||||
import PageLink from '../../components/atoms/PageLink'
|
import PageLink from '../../components/atoms/PageLink'
|
||||||
import StigmataCard from '../../components/molecules/StigmataCard'
|
import StigmataCard from '../../components/molecules/StigmataCard'
|
||||||
import Breadcrumb from '../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import SecondaryLabel from '../atoms/SecondaryLabel'
|
import SecondaryLabel from '../atoms/SecondaryLabel'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { translate, useTranslation } from '../../lib/i18n'
|
import { translate, useTranslation } from '../../lib/i18n'
|
||||||
import Head from '../atoms/Head'
|
import Head from '../atoms/Head'
|
||||||
import { assetsBucketBaseUrl } from '../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
export interface SingleStigmataPageProps {
|
export interface SingleStigmataPageProps {
|
||||||
type: 'single'
|
type: 'single'
|
||||||
@@ -48,7 +48,7 @@ const SingleStigmataPage = ({
|
|||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${stigmataName} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${stigmataName} - ${t(
|
||||||
'nav.abyss-lab'
|
'nav.abyss-lab'
|
||||||
@@ -62,7 +62,6 @@ const SingleStigmataPage = ({
|
|||||||
stigmataData.def
|
stigmataData.def
|
||||||
} / CRT : ${stigmataData.crt}`}
|
} / CRT : ${stigmataData.crt}`}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
items={[
|
items={[
|
||||||
@@ -179,7 +178,7 @@ const SingleStigmataPage = ({
|
|||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import React from 'react'
|
|||||||
import PageLink from '../../components/atoms/PageLink'
|
import PageLink from '../../components/atoms/PageLink'
|
||||||
import StigmataCard from '../../components/molecules/StigmataCard'
|
import StigmataCard from '../../components/molecules/StigmataCard'
|
||||||
import Breadcrumb from '../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { StigmataData, StigmataSet } from '../../lib/honkai3rd/stigmata'
|
import { StigmataData, StigmataSet } from '../../lib/honkai3rd/stigmata'
|
||||||
import SecondaryLabel from '../atoms/SecondaryLabel'
|
import SecondaryLabel from '../atoms/SecondaryLabel'
|
||||||
import { translate, useTranslation } from '../../lib/i18n'
|
import { translate, useTranslation } from '../../lib/i18n'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import Head from '../atoms/Head'
|
import Head from '../atoms/Head'
|
||||||
|
import Honkai3rdLayout from '../layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
export interface StigmataSetProps {
|
export interface StigmataSetProps {
|
||||||
type: 'set'
|
type: 'set'
|
||||||
@@ -36,7 +36,7 @@ const StigmataSetPage = ({
|
|||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${stigmataSetName} ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${stigmataSetName} ${t(
|
||||||
'stigmata-show.stigmata-set'
|
'stigmata-show.stigmata-set'
|
||||||
@@ -45,7 +45,6 @@ const StigmataSetPage = ({
|
|||||||
'stigmata-show.stigmata-set'
|
'stigmata-show.stigmata-set'
|
||||||
)} / ${'⭐'.repeat(stigmataSet.rarity)} / ${stigmataSetAltName}`}
|
)} / ${'⭐'.repeat(stigmataSet.rarity)} / ${stigmataSetAltName}`}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -167,7 +166,7 @@ const StigmataSetPage = ({
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Card>
|
</Card>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -5,7 +5,8 @@ import { ThemeProvider } from 'theme-ui'
|
|||||||
import { theme } from '../lib/theme'
|
import { theme } from '../lib/theme'
|
||||||
import NProgress from 'nprogress'
|
import NProgress from 'nprogress'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import '../../public/assets/nprogress.css'
|
import '../styles/nprogress.css'
|
||||||
|
import '../styles/nextjs.css'
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }: AppProps) {
|
function MyApp({ Component, pageProps }: AppProps) {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import SecondaryLabel from '../../../components/atoms/SecondaryLabel'
|
|||||||
import TypeLabel from '../../../components/atoms/TypeLabel'
|
import TypeLabel from '../../../components/atoms/TypeLabel'
|
||||||
import ValkyrieLabel from '../../../components/atoms/ValkyrieLabel'
|
import ValkyrieLabel from '../../../components/atoms/ValkyrieLabel'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import {
|
import {
|
||||||
BattlesuitData,
|
BattlesuitData,
|
||||||
battlesuitFeatures,
|
battlesuitFeatures,
|
||||||
@@ -35,6 +34,7 @@ import { useRouter } from 'next/router'
|
|||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
import { capitalize } from '../../../lib/string'
|
import { capitalize } from '../../../lib/string'
|
||||||
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface BattlesuitShowPageProps {
|
interface BattlesuitShowPageProps {
|
||||||
battlesuit: BattlesuitData
|
battlesuit: BattlesuitData
|
||||||
@@ -68,7 +68,7 @@ const BattlesuitShowPage = ({ battlesuit }: BattlesuitShowPageProps) => {
|
|||||||
: capitalize(battlesuit.type)
|
: capitalize(battlesuit.type)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${battlesuitName} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${battlesuitName} - ${t(
|
||||||
'nav.abyss-lab'
|
'nav.abyss-lab'
|
||||||
@@ -90,7 +90,6 @@ const BattlesuitShowPage = ({ battlesuit }: BattlesuitShowPageProps) => {
|
|||||||
})
|
})
|
||||||
.join(', ')}`}
|
.join(', ')}`}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -215,7 +214,7 @@ const BattlesuitShowPage = ({ battlesuit }: BattlesuitShowPageProps) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { pick } from 'ramda'
|
|||||||
import { useCallback, useMemo, useState } from 'react'
|
import { useCallback, useMemo, useState } from 'react'
|
||||||
import FilterButton from '../../../components/atoms/FilterButton'
|
import FilterButton from '../../../components/atoms/FilterButton'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { listBattlesuits } from '../../../server/data/honkai3rd/battlesuits'
|
import { listBattlesuits } from '../../../server/data/honkai3rd/battlesuits'
|
||||||
import {
|
import {
|
||||||
BattlesuitData,
|
BattlesuitData,
|
||||||
@@ -18,6 +17,7 @@ import { NextPageContext } from 'next'
|
|||||||
import { getI18NProps } from '../../../server/i18n'
|
import { getI18NProps } from '../../../server/i18n'
|
||||||
import { translate, useTranslation } from '../../../lib/i18n'
|
import { translate, useTranslation } from '../../../lib/i18n'
|
||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
type BattlesuitListItemData = Pick<
|
type BattlesuitListItemData = Pick<
|
||||||
BattlesuitData,
|
BattlesuitData,
|
||||||
@@ -77,14 +77,13 @@ const BattlesuitListPage = ({ battlesuits }: BattlesuitListPageProps) => {
|
|||||||
}, [battlesuits, filter])
|
}, [battlesuits, filter])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
||||||
'breadcrumb.battlesuits'
|
'breadcrumb.battlesuits'
|
||||||
)} - ${t('nav.abyss-lab')}`}
|
)} - ${t('nav.abyss-lab')}`}
|
||||||
description={t('battlesuits-list.description')}
|
description={t('battlesuits-list.description')}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -163,7 +162,7 @@ const BattlesuitListPage = ({ battlesuits }: BattlesuitListPageProps) => {
|
|||||||
{battlesuitList}
|
{battlesuitList}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import React from 'react'
|
|||||||
import BattlesuitFeatureLabel from '../../../components/atoms/BattlesuitFeatureLabel'
|
import BattlesuitFeatureLabel from '../../../components/atoms/BattlesuitFeatureLabel'
|
||||||
import SecondaryLabel from '../../../components/atoms/SecondaryLabel'
|
import SecondaryLabel from '../../../components/atoms/SecondaryLabel'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { ElfData } from '../../../lib/honkai3rd/elfs'
|
import { ElfData } from '../../../lib/honkai3rd/elfs'
|
||||||
import { getElfById, listElfs } from '../../../server/data/honkai3rd/elfs'
|
import { getElfById, listElfs } from '../../../server/data/honkai3rd/elfs'
|
||||||
import { generateI18NPaths, getI18NProps } from '../../../server/i18n'
|
import { generateI18NPaths, getI18NProps } from '../../../server/i18n'
|
||||||
@@ -21,6 +20,7 @@ import { useRouter } from 'next/router'
|
|||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
import { battlesuitFeatures } from '../../../lib/honkai3rd/battlesuits'
|
import { battlesuitFeatures } from '../../../lib/honkai3rd/battlesuits'
|
||||||
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface ElfShowPageProps {
|
interface ElfShowPageProps {
|
||||||
elf: ElfData
|
elf: ElfData
|
||||||
@@ -33,7 +33,7 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => {
|
|||||||
const elfName = translate(locale, { 'ko-KR': elf.krName }, elf.name)
|
const elfName = translate(locale, { 'ko-KR': elf.krName }, elf.name)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${elfName} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${elfName} - ${t(
|
||||||
'nav.abyss-lab'
|
'nav.abyss-lab'
|
||||||
@@ -55,7 +55,6 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => {
|
|||||||
})
|
})
|
||||||
.join(', ')}`}
|
.join(', ')}`}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -139,7 +138,7 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => {
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import { NextPageContext } from 'next'
|
|||||||
import { pick } from 'ramda'
|
import { pick } from 'ramda'
|
||||||
import ElfCard from '../../../components/molecules/ElfCard'
|
import ElfCard from '../../../components/molecules/ElfCard'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { ElfData } from '../../../lib/honkai3rd/elfs'
|
import { ElfData } from '../../../lib/honkai3rd/elfs'
|
||||||
import { getI18NProps } from '../../../server/i18n'
|
import { getI18NProps } from '../../../server/i18n'
|
||||||
import { listElfs } from '../../../server/data/honkai3rd/elfs'
|
import { listElfs } from '../../../server/data/honkai3rd/elfs'
|
||||||
import { useTranslation } from '../../../lib/i18n'
|
import { useTranslation } from '../../../lib/i18n'
|
||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface ElfListPageProps {
|
interface ElfListPageProps {
|
||||||
elfs: Pick<ElfData, 'id' | 'name' | 'krName'>[]
|
elfs: Pick<ElfData, 'id' | 'name' | 'krName'>[]
|
||||||
@@ -19,16 +19,13 @@ const ElfListPage = ({ elfs }: ElfListPageProps) => {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${t('breadcrumb.elfs')} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${t('breadcrumb.elfs')} - ${t(
|
||||||
'nav.abyss-lab'
|
'nav.abyss-lab'
|
||||||
)}`}
|
)}`}
|
||||||
description={t('elfs-list.description')}
|
description={t('elfs-list.description')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
items={[
|
items={[
|
||||||
@@ -50,7 +47,7 @@ const ElfListPage = ({ elfs }: ElfListPageProps) => {
|
|||||||
})}
|
})}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/** @jsxImportSource theme-ui */
|
/** @jsxImportSource theme-ui */
|
||||||
import { Box, Heading } from '@theme-ui/components'
|
import { Box, Heading } from '@theme-ui/components'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { NextPageContext } from 'next'
|
import { NextPageContext } from 'next'
|
||||||
import { getI18NProps } from '../../../server/i18n'
|
import { getI18NProps } from '../../../server/i18n'
|
||||||
import { useTranslation } from '../../../lib/i18n'
|
import { useTranslation } from '../../../lib/i18n'
|
||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { times } from 'ramda'
|
import { times } from 'ramda'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
const enemyIdList = [
|
const enemyIdList = [
|
||||||
...times((i) => i + 0, 1000).map((i) => {
|
...times((i) => i + 0, 1000).map((i) => {
|
||||||
@@ -110,12 +110,11 @@ const Honkai3rdIndexPage = () => {
|
|||||||
}, [validList])
|
}, [validList])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: Home - ${t('nav.abyss-lab')}`}
|
title={`${t('breadcrumb.honkai-3rd')}: Home - ${t('nav.abyss-lab')}`}
|
||||||
description={t('index.description')}
|
description={t('index.description')}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -166,7 +165,7 @@ const Honkai3rdIndexPage = () => {
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import { Box, Heading, Text, Flex, Link } from '@theme-ui/components'
|
import { Box, Heading, Text, Flex, Link } from '@theme-ui/components'
|
||||||
import { useCallback, useEffect, useState } from 'react'
|
import { useCallback, useEffect, useState } from 'react'
|
||||||
import Breadcrumb from '../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { NextPageContext } from 'next'
|
import { NextPageContext } from 'next'
|
||||||
import { getI18NProps } from '../../server/i18n'
|
import { getI18NProps } from '../../server/i18n'
|
||||||
import { useTranslation } from '../../lib/i18n'
|
import { useTranslation } from '../../lib/i18n'
|
||||||
@@ -12,6 +11,7 @@ import { mdiGithub } from '@mdi/js'
|
|||||||
import { Icon } from '@mdi/react'
|
import { Icon } from '@mdi/react'
|
||||||
import Head from '../../components/atoms/Head'
|
import Head from '../../components/atoms/Head'
|
||||||
import { assetsBucketBaseUrl } from '../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
const bannerValkyries = [
|
const bannerValkyries = [
|
||||||
'kiana',
|
'kiana',
|
||||||
@@ -44,12 +44,11 @@ const Honkai3rdIndexPage = () => {
|
|||||||
}, [bannerIndex, switchBanner])
|
}, [bannerIndex, switchBanner])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: Home - ${t('nav.abyss-lab')}`}
|
title={`${t('breadcrumb.honkai-3rd')}: Home - ${t('nav.abyss-lab')}`}
|
||||||
description={t('index.description')}
|
description={t('index.description')}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -92,7 +91,7 @@ const Honkai3rdIndexPage = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import PageLink from '../../../components/atoms/PageLink'
|
|||||||
import StigmataCard from '../../../components/molecules/StigmataCard'
|
import StigmataCard from '../../../components/molecules/StigmataCard'
|
||||||
import StigmataSetCard from '../../../components/molecules/StigmataSetCard'
|
import StigmataSetCard from '../../../components/molecules/StigmataSetCard'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { StigmataData, StigmataSet } from '../../../lib/honkai3rd/stigmata'
|
import { StigmataData, StigmataSet } from '../../../lib/honkai3rd/stigmata'
|
||||||
import { getI18NProps } from '../../../server/i18n'
|
import { getI18NProps } from '../../../server/i18n'
|
||||||
import {
|
import {
|
||||||
@@ -17,6 +16,7 @@ import {
|
|||||||
} from '../../../server/data/honkai3rd/stigmata'
|
} from '../../../server/data/honkai3rd/stigmata'
|
||||||
import { useTranslation } from 'next-i18next'
|
import { useTranslation } from 'next-i18next'
|
||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface StigmataListPageProps {
|
interface StigmataListPageProps {
|
||||||
stigmataDataList: Pick<StigmataData, 'id' | 'name' | 'rarity' | 'krName'>[]
|
stigmataDataList: Pick<StigmataData, 'id' | 'name' | 'rarity' | 'krName'>[]
|
||||||
@@ -38,14 +38,13 @@ const StigmataListPage = ({
|
|||||||
}, [query])
|
}, [query])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
||||||
'breadcrumb.stigmata'
|
'breadcrumb.stigmata'
|
||||||
)} - ${t('nav.abyss-lab')}`}
|
)} - ${t('nav.abyss-lab')}`}
|
||||||
description={t('stigmata-list.description')}
|
description={t('stigmata-list.description')}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -94,7 +93,7 @@ const StigmataListPage = ({
|
|||||||
})}
|
})}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { Box, Heading, Link, Flex, Text, Paragraph } from '@theme-ui/components'
|
|||||||
import { NextPageContext } from 'next'
|
import { NextPageContext } from 'next'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import GanttChart from '../../../components/organisms/GanttChart'
|
import GanttChart from '../../../components/organisms/GanttChart'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import {
|
import {
|
||||||
getVersion,
|
getVersion,
|
||||||
listVersionData,
|
listVersionData,
|
||||||
@@ -26,6 +25,7 @@ import { useRouter } from 'next/router'
|
|||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
import PageLink from '../../../components/atoms/PageLink'
|
import PageLink from '../../../components/atoms/PageLink'
|
||||||
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface VersionShowPageProps {
|
interface VersionShowPageProps {
|
||||||
versionData: VersionData
|
versionData: VersionData
|
||||||
@@ -44,7 +44,7 @@ const VersionShowPage = ({
|
|||||||
const { locale } = useRouter()
|
const { locale } = useRouter()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: v${versionData.version} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: v${versionData.version} - ${t(
|
||||||
'nav.abyss-lab'
|
'nav.abyss-lab'
|
||||||
@@ -65,7 +65,6 @@ const VersionShowPage = ({
|
|||||||
})
|
})
|
||||||
.join(',')}`}
|
.join(',')}`}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -221,7 +220,7 @@ const VersionShowPage = ({
|
|||||||
<Paragraph mb={4}>{t('versions.supply-events-disclaimer')}</Paragraph>
|
<Paragraph mb={4}>{t('versions.supply-events-disclaimer')}</Paragraph>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import NextLink from 'next/link'
|
|||||||
import SquareImageBox from '../../../components/atoms/SquareImageBox'
|
import SquareImageBox from '../../../components/atoms/SquareImageBox'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import GanttChart from '../../../components/organisms/GanttChart'
|
import GanttChart from '../../../components/organisms/GanttChart'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { getBattlesuitById } from '../../../server/data/honkai3rd/battlesuits'
|
import { getBattlesuitById } from '../../../server/data/honkai3rd/battlesuits'
|
||||||
import { listSupplyEventsByVersion } from '../../../server/data/honkai3rd/supplyEvents'
|
import { listSupplyEventsByVersion } from '../../../server/data/honkai3rd/supplyEvents'
|
||||||
import {
|
import {
|
||||||
@@ -26,6 +25,7 @@ import { useRouter } from 'next/router'
|
|||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
import PageLink from '../../../components/atoms/PageLink'
|
import PageLink from '../../../components/atoms/PageLink'
|
||||||
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface VersionIndexPageProps {
|
interface VersionIndexPageProps {
|
||||||
versionDataList: VersionData[]
|
versionDataList: VersionData[]
|
||||||
@@ -46,7 +46,7 @@ const VersionIndexPage = ({
|
|||||||
const { locale } = useRouter()
|
const { locale } = useRouter()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
||||||
'breadcrumb.versions'
|
'breadcrumb.versions'
|
||||||
@@ -54,8 +54,6 @@ const VersionIndexPage = ({
|
|||||||
description={t('versions.list-page-description')}
|
description={t('versions.list-page-description')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
items={[
|
items={[
|
||||||
@@ -243,7 +241,7 @@ const VersionIndexPage = ({
|
|||||||
})}
|
})}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { Box, Card, Heading, Paragraph } from '@theme-ui/components'
|
|||||||
import { NextPageContext } from 'next'
|
import { NextPageContext } from 'next'
|
||||||
import SquareImageBox from '../../../components/atoms/SquareImageBox'
|
import SquareImageBox from '../../../components/atoms/SquareImageBox'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { WeaponData } from '../../../lib/honkai3rd/weapons'
|
import { WeaponData } from '../../../lib/honkai3rd/weapons'
|
||||||
import { generateI18NPaths, getI18NProps } from '../../../server/i18n'
|
import { generateI18NPaths, getI18NProps } from '../../../server/i18n'
|
||||||
import {
|
import {
|
||||||
@@ -15,6 +14,7 @@ import { useTranslation, translate } from '../../../lib/i18n'
|
|||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
import PageLink from '../../../components/atoms/PageLink'
|
import PageLink from '../../../components/atoms/PageLink'
|
||||||
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../../lib/consts'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
interface WeaponShowPageProps {
|
interface WeaponShowPageProps {
|
||||||
weapon: WeaponData
|
weapon: WeaponData
|
||||||
@@ -28,7 +28,7 @@ const WeaponShowPage = ({ weapon }: WeaponShowPageProps) => {
|
|||||||
const weaponCategory = t(`weapons-show.${weapon.category}`)
|
const weaponCategory = t(`weapons-show.${weapon.category}`)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Honkai3rdLayout>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${weaponName} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${weaponName} - ${t(
|
||||||
'nav.abyss-lab'
|
'nav.abyss-lab'
|
||||||
@@ -39,7 +39,6 @@ const WeaponShowPage = ({ weapon }: WeaponShowPageProps) => {
|
|||||||
weapon.atk
|
weapon.atk
|
||||||
} / CRT : ${weapon.crt}`}
|
} / CRT : ${weapon.crt}`}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -106,7 +105,7 @@ const WeaponShowPage = ({ weapon }: WeaponShowPageProps) => {
|
|||||||
})}
|
})}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
/** @jsxImportSource theme-ui */
|
/** @jsxImportSource theme-ui */
|
||||||
import { Box, Heading, Flex } from '@theme-ui/components'
|
import { Box, Heading, Flex } from '@theme-ui/components'
|
||||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
|
||||||
import { listWeapons } from '../../../server/data/honkai3rd/weapons'
|
import { listWeapons } from '../../../server/data/honkai3rd/weapons'
|
||||||
import { pick } from 'ramda'
|
import { pick } from 'ramda'
|
||||||
import { useMemo } from 'react'
|
import { useMemo } from 'react'
|
||||||
@@ -13,6 +12,7 @@ import { getI18NProps } from '../../../server/i18n'
|
|||||||
import { NextPageContext } from 'next'
|
import { NextPageContext } from 'next'
|
||||||
import { useTranslation, translate } from '../../../lib/i18n'
|
import { useTranslation, translate } from '../../../lib/i18n'
|
||||||
import Head from '../../../components/atoms/Head'
|
import Head from '../../../components/atoms/Head'
|
||||||
|
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
|
||||||
|
|
||||||
type WeaponListItemData = Pick<
|
type WeaponListItemData = Pick<
|
||||||
WeaponData,
|
WeaponData,
|
||||||
@@ -57,14 +57,14 @@ const WeaponListPage = ({ weaponDataList }: WeaponListPageProps) => {
|
|||||||
}, [weaponDataList, filter])
|
}, [weaponDataList, filter])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Honkai3rdLayout>
|
||||||
<Box>
|
<Box>
|
||||||
<Head
|
<Head
|
||||||
title={`${t('breadcrumb.honkai-3rd')}: ${t('breadcrumb.weapons')} - ${t(
|
title={`${t('breadcrumb.honkai-3rd')}: ${t(
|
||||||
'nav.abyss-lab'
|
'breadcrumb.weapons'
|
||||||
)}`}
|
)} - ${t('nav.abyss-lab')}`}
|
||||||
description={t('weapons-list.description')}
|
description={t('weapons-list.description')}
|
||||||
/>
|
/>
|
||||||
<Honkai3rdNavigator />
|
|
||||||
|
|
||||||
<Box p={3}>
|
<Box p={3}>
|
||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
@@ -101,6 +101,7 @@ const WeaponListPage = ({ weaponDataList }: WeaponListPageProps) => {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
</Honkai3rdLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -3,6 +3,7 @@ import { Box, Text, Image } from '@theme-ui/components'
|
|||||||
import PageLink from '../components/atoms/PageLink'
|
import PageLink from '../components/atoms/PageLink'
|
||||||
import RootNavigator from '../components/organisms/RootNavigator'
|
import RootNavigator from '../components/organisms/RootNavigator'
|
||||||
import Head from '../components/atoms/Head'
|
import Head from '../components/atoms/Head'
|
||||||
|
import { assetsBucketBaseUrl } from '../lib/consts'
|
||||||
|
|
||||||
const IndexPage = () => {
|
const IndexPage = () => {
|
||||||
return (
|
return (
|
||||||
@@ -15,7 +16,7 @@ const IndexPage = () => {
|
|||||||
<Box sx={{ position: 'relative' }}>
|
<Box sx={{ position: 'relative' }}>
|
||||||
<Image
|
<Image
|
||||||
alt='Honkai 3rd Wallpaper'
|
alt='Honkai 3rd Wallpaper'
|
||||||
src='/assets/honkai3rd/wallpaper.png'
|
src={`${assetsBucketBaseUrl}/assets/honkai3rd/wallpaper.png`}
|
||||||
width={640}
|
width={640}
|
||||||
height={360}
|
height={360}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#__next {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user