Преглед на файлове

add links to homepage, documentation (#4)

Bernt Christian Egeland преди 8 месеца
родител
ревизия
d76bc353b4
променени са 1 файла, в които са добавени 22 реда и са изтрити 1 реда
  1. 22 1
      src/app/(authenticated)/settings/about/page.tsx

+ 22 - 1
src/app/(authenticated)/settings/about/page.tsx

@@ -1,10 +1,17 @@
+import Link from 'next/link'
 import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
 import { Separator } from '@/components/ui/separator'
-import { Info } from 'lucide-react'
+import { ExternalLink, Info } from 'lucide-react'
 
 export default function AboutSettingsPage() {
   const version = process.env.APP_VERSION || 'development'
 
+  const links = [
+    { label: 'Website', href: 'https://torqvoice.com/' },
+    { label: 'Documentation', href: 'https://torqvoice.com/docs' },
+    { label: 'Changelog', href: 'https://github.com/Torqvoice/torqvoice/releases' },
+  ]
+
   return (
     <div className="space-y-6">
       <Card className="border-0 shadow-sm">
@@ -23,6 +30,20 @@ export default function AboutSettingsPage() {
               <span className="text-sm text-muted-foreground">Version</span>
               <span className="text-sm font-medium">{version}</span>
             </div>
+            {links.map((link) => (
+              <div key={link.href} className="flex items-center justify-between">
+                <span className="text-sm text-muted-foreground">{link.label}</span>
+                <Link
+                  href={link.href}
+                  target="_blank"
+                  rel="noopener noreferrer"
+                  className="inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline"
+                >
+                  {link.label}
+                  <ExternalLink className="h-3 w-3" />
+                </Link>
+              </div>
+            ))}
           </div>
         </CardContent>
       </Card>