Extract secondary label
This commit is contained in:
@@ -6,6 +6,7 @@ import React from 'react'
|
||||
import BattlesuitFeatureLabel from '../../../components/atoms/BattlesuitFeatureLabel'
|
||||
import BattlesuitRankIcon from '../../../components/atoms/BattlesuitRankIcon'
|
||||
import PageLink from '../../../components/atoms/PageLink'
|
||||
import SecondaryLabel from '../../../components/atoms/SecondaryLabel'
|
||||
import TypeLabel from '../../../components/atoms/TypeLabel'
|
||||
import ValkyrieLabel from '../../../components/atoms/ValkyrieLabel'
|
||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||
@@ -179,18 +180,17 @@ const BattlesuitSkillGroupCard = ({
|
||||
}: BattlesuitSkillGroupCardProps) => {
|
||||
return (
|
||||
<Card mb={3}>
|
||||
<Heading
|
||||
as='h2'
|
||||
p={2}
|
||||
m={0}
|
||||
sx={{ borderBottom: 'default', fontSize: 4 }}
|
||||
<Box
|
||||
sx={{
|
||||
p: 2,
|
||||
borderBottom: 'default',
|
||||
}}
|
||||
>
|
||||
{skillGroup.core.name}
|
||||
<br />
|
||||
<Text as='small' sx={{ fontSize: 2, color: 'secondary' }}>
|
||||
{heading}
|
||||
</Text>
|
||||
</Heading>
|
||||
<Heading as='h2' mb={1}>
|
||||
{skillGroup.core.name}
|
||||
</Heading>
|
||||
<SecondaryLabel>{heading}</SecondaryLabel>
|
||||
</Box>
|
||||
|
||||
<Paragraph p={2} sx={{ whiteSpace: 'pre-wrap', borderBottom: 'default' }}>
|
||||
{skillGroup.core.description}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
/** @jsxImportSource theme-ui */
|
||||
import { Box, Card, Flex, Heading, Paragraph, Text } from '@theme-ui/components'
|
||||
import { Box, Card, Flex, Heading, Paragraph } from '@theme-ui/components'
|
||||
import { NextPageContext } from 'next'
|
||||
import Image from 'next/image'
|
||||
import React from 'react'
|
||||
import BattlesuitFeatureLabel from '../../../components/atoms/BattlesuitFeatureLabel'
|
||||
import SecondaryLabel from '../../../components/atoms/SecondaryLabel'
|
||||
import Breadcrumb from '../../../components/organisms/Breadcrumb'
|
||||
import Honkai3rdNavigator from '../../../components/organisms/Honkai3rdNavigator'
|
||||
import { ElfData } from '../../../lib/honkai3rd/elfs'
|
||||
@@ -78,17 +79,7 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => {
|
||||
>
|
||||
{item.name}
|
||||
</Heading>
|
||||
<Text
|
||||
as='small'
|
||||
sx={{
|
||||
fontSize: 2,
|
||||
color: 'secondary',
|
||||
fontWeight: 'heading',
|
||||
fontFamily: 'monospace',
|
||||
}}
|
||||
>
|
||||
{capitalize(item.type)}
|
||||
</Text>
|
||||
<SecondaryLabel>{capitalize(item.type)}</SecondaryLabel>
|
||||
</Box>
|
||||
<Paragraph
|
||||
sx={{
|
||||
|
||||
Reference in New Issue
Block a user