Separate into components
This commit is contained in:
parent
6af3ff618c
commit
d97ffc9837
13 changed files with 441 additions and 143 deletions
19
web/app/challenges/[id]/components/goal-card.tsx
Normal file
19
web/app/challenges/[id]/components/goal-card.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
|
||||
import type { Translate } from './types'
|
||||
|
||||
type GoalCardProps = {
|
||||
goal: string
|
||||
t: Translate
|
||||
}
|
||||
|
||||
export default function GoalCard({ goal, t }: GoalCardProps) {
|
||||
return (
|
||||
<div className='mb-6 rounded-xl border border-divider-subtle bg-components-panel-bg p-6 shadow-xs'>
|
||||
<h2 className='mb-2 text-sm font-medium uppercase tracking-wide text-text-tertiary'>
|
||||
{t('challenges.player.goal')}
|
||||
</h2>
|
||||
<p className='text-text-primary'>{goal}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue