About page improvements

This commit is contained in:
Alex Gleason committed 2025-09-26 20:33:48 -05:00
1 parent d95abf2499
commit c1cbbed05c
2 files changed
+16 -35

No files matched your search

-6
View File
@@ -207,7 +207,6 @@ const resources = {
aboutShakespeare: 'About Shakespeare',
aboutShakespeareDescription: 'Information about Shakespeare',
sourceCode: 'Source Code',
viewOnGitLab: 'View on GitLab',
description: 'Description',
license: 'License',
loadingLicense: 'Loading license...',
@@ -561,7 +560,6 @@ const resources = {
aboutShakespeare: 'Sobre o Shakespeare',
aboutShakespeareDescription: 'Informações sobre o Shakespeare.',
sourceCode: 'Código-fonte',
viewOnGitLab: 'Ver no GitLab',
description: 'Descrição',
license: 'Licença',
loadingLicense: 'Carregando licença...',
@@ -874,7 +872,6 @@ const resources = {
aboutShakespeare: '关于Shakespeare',
aboutShakespeareDescription: '关于Shakespeare的信息。',
sourceCode: '源代码',
viewOnGitLab: '在GitLab上查看',
description: '描述',
license: '许可证',
loadingLicense: '加载许可证中...',
@@ -1187,7 +1184,6 @@ const resources = {
aboutShakespeare: 'Game da Shakespeare',
aboutShakespeareDescription: 'Bayani game da Shakespeare.',
sourceCode: 'Lambar Tushe',
viewOnGitLab: 'Duba akan GitLab',
description: 'Bayanin',
license: 'Lasisi',
loadingLicense: 'Ana lodin lasisi...',
@@ -1500,7 +1496,6 @@ const resources = {
aboutShakespeare: 'Nipa Shakespeare',
aboutShakespeareDescription: 'Alaye nipa Shakespeare.',
sourceCode: 'Koodu Orisun',
viewOnGitLab: 'Wo lori GitLab',
description: 'Apejuwe',
license: 'Iwe-aṣẹ',
loadingLicense: 'N gbe iwe-aṣẹ...',
@@ -1808,7 +1803,6 @@ const resources = {
aboutShakespeare: 'Gbasara Shakespeare',
aboutShakespeareDescription: 'Ozi gbasara Shakespeare.',
sourceCode: 'Koodu Isi',
viewOnGitLab: 'Lee na GitLab',
description: 'Nkọwa',
license: 'Ikike',
loadingLicense: 'Na-ebu ikike...',
+16 -29
View File
@@ -3,7 +3,6 @@ import { useNavigate } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { Info, ExternalLink, Loader2, AlertTriangle, ArrowLeft } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion';
import { Alert, AlertDescription } from '@/components/ui/alert';
import { useIsMobile } from '@/hooks/useIsMobile';
@@ -80,33 +79,21 @@ export function AboutSettings() {
<div className="space-y-4">
{/* Project Information */}
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Info className="h-5 w-5" />
{t('sourceCode')}
</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
<div>
<Button
variant="outline"
asChild
className="w-full sm:w-auto"
>
<a
href="https://gitlab.com/soapbox-pub/act2"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2"
>
<ExternalLink className="h-4 w-4" />
{t('viewOnGitLab')}
</a>
</Button>
</div>
</CardContent>
</Card>
<Button
variant="outline"
asChild
className="w-full sm:w-auto"
>
<a
href="https://gitlab.com/soapbox-pub/act2"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2"
>
<ExternalLink className="h-4 w-4" />
{t('sourceCode')}
</a>
</Button>
{/* License */}
<Accordion type="single" collapsible className="w-full">
@@ -131,7 +118,7 @@ export function AboutSettings() {
</AlertDescription>
</Alert>
) : license ? (
<div className="prose text-sm" dangerouslySetInnerHTML={{ __html: license }} />
<div className="prose text-sm dark:prose-invert" dangerouslySetInnerHTML={{ __html: license }} />
) : null}
</AccordionContent>
</AccordionItem>