Style top section style of battlesuit show page and weapon show page
This commit is contained in:
@@ -41,32 +41,31 @@ const BattlesuitShowPage = ({ battlesuit }: BattlesuitShowPageProps) => {
|
|||||||
|
|
||||||
<Heading as='h1'>{battlesuit.name}</Heading>
|
<Heading as='h1'>{battlesuit.name}</Heading>
|
||||||
|
|
||||||
|
<Box mb={3}>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
position: 'relative',
|
||||||
|
overflow: 'hidden',
|
||||||
|
width: '100%',
|
||||||
|
maxWidth: '600px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
alt={battlesuit.name}
|
||||||
|
src={`/assets/honkai3rd/battlesuits/${battlesuit.id}.png`}
|
||||||
|
width={600}
|
||||||
|
height={600}
|
||||||
|
layout='responsive'
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
</Box>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
}}
|
}}
|
||||||
mb={3}
|
mb={3}
|
||||||
>
|
>
|
||||||
<Box sx={{ borderBottom: 'default' }}>
|
|
||||||
<Box
|
|
||||||
sx={{
|
|
||||||
margin: '0 auto',
|
|
||||||
position: 'relative',
|
|
||||||
overflow: 'hidden',
|
|
||||||
width: '100%',
|
|
||||||
maxWidth: '600px',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Image
|
|
||||||
alt={battlesuit.name}
|
|
||||||
src={`/assets/honkai3rd/battlesuits/${battlesuit.id}.png`}
|
|
||||||
width={600}
|
|
||||||
height={600}
|
|
||||||
layout='responsive'
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
</Box>
|
|
||||||
|
|
||||||
<Box p={2} sx={{ borderBottom: 'default' }}>
|
<Box p={2} sx={{ borderBottom: 'default' }}>
|
||||||
<PageLink
|
<PageLink
|
||||||
href={{
|
href={{
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user