Style top section style of battlesuit show page and weapon show page

This commit is contained in:
Sakura Knoll
2022-01-02 15:00:31 +09:00 Unverified
parent 315f52ce3a
commit 39a92a88bf
2 changed files with 29 additions and 24 deletions
@@ -41,16 +41,9 @@ const BattlesuitShowPage = ({ battlesuit }: BattlesuitShowPageProps) => {
<Heading as='h1'>{battlesuit.name}</Heading> <Heading as='h1'>{battlesuit.name}</Heading>
<Card <Box mb={3}>
sx={{
overflow: 'hidden',
}}
mb={3}
>
<Box sx={{ borderBottom: 'default' }}>
<Box <Box
sx={{ sx={{
margin: '0 auto',
position: 'relative', position: 'relative',
overflow: 'hidden', overflow: 'hidden',
width: '100%', width: '100%',
@@ -67,6 +60,12 @@ const BattlesuitShowPage = ({ battlesuit }: BattlesuitShowPageProps) => {
</Box> </Box>
</Box> </Box>
<Card
sx={{
overflow: 'hidden',
}}
mb={3}
>
<Box p={2} sx={{ borderBottom: 'default' }}> <Box p={2} sx={{ borderBottom: 'default' }}>
<PageLink <PageLink
href={{ href={{
+10 -4
View File
@@ -5,6 +5,7 @@ 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 Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
import { WeaponData } from '../../../lib/honkai3rd/weapons' import { WeaponData } from '../../../lib/honkai3rd/weapons'
import { capitalize } from '../../../lib/string'
import { import {
getWeaponById, getWeaponById,
listWeapons, listWeapons,
@@ -41,12 +42,17 @@ const WeaponShowPage = ({ weapon }: WeaponShowPageProps) => {
/> />
</Box> </Box>
<Box mb={3}> <Card mb={3}>
<Box>{'⭐'.repeat(weapon.rarity)}</Box> <Box p={2} sx={{ borderBottom: 'default' }}>
<Box> {capitalize(weapon.category)}
</Box>
<Box p={2} sx={{ borderBottom: 'default' }}>
{'⭐'.repeat(weapon.rarity)}
</Box>
<Box p={2}>
ATK : {weapon.atk} / CRT : {weapon.crt} ATK : {weapon.atk} / CRT : {weapon.crt}
</Box> </Box>
</Box> </Card>
<Box> <Box>
{weapon.skills.map((skill) => { {weapon.skills.map((skill) => {