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