refactor(frontend): move repeated Tailwind chains into BEM classes
This commit is contained in:
@@ -15,9 +15,9 @@ export function CompletedPage() {
|
||||
|
||||
return (
|
||||
<div className="grid gap-6">
|
||||
<section>
|
||||
<h1 className="font-display text-3xl">{t('completed.title')}</h1>
|
||||
<p className="text-sm text-muted">
|
||||
<section className="page-section">
|
||||
<h1 className="page-section__title">{t('completed.title')}</h1>
|
||||
<p className="page-section__text">
|
||||
{t('completed.description')}
|
||||
</p>
|
||||
</section>
|
||||
@@ -25,10 +25,10 @@ export function CompletedPage() {
|
||||
{isLoading && <div className="text-muted">{t('common.loading')}</div>}
|
||||
|
||||
{!isLoading && data && data.length === 0 && (
|
||||
<div className="flex flex-col items-center gap-2 rounded-xl border border-border bg-surface/80 p-10 text-center shadow-card">
|
||||
<CheckCircle2 className="h-10 w-10 text-muted" />
|
||||
<h2 className="text-xl font-semibold">{t('completed.emptyTitle')}</h2>
|
||||
<p className="text-sm text-muted">
|
||||
<div className="empty-state">
|
||||
<CheckCircle2 className="empty-state__icon" />
|
||||
<h2 className="empty-state__title">{t('completed.emptyTitle')}</h2>
|
||||
<p className="empty-state__text">
|
||||
{t('completed.emptyText')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user