diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 3d8a99903965196144a8d1a7d1c84b4bfc124136..6ec2c5f406c423f5e5ad00a942854321409c26f8 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -26,41 +26,41 @@ const navigation = { ], community: [ { - name: 'Project on openCode', + name: 'Projekt auf openCode', href: 'https://gitlab.opencode.de/open-code/badgebackend', external: true, }, { - name: 'Contribute', + name: 'Beitragen', href: 'https://gitlab.opencode.de/open-code/badgebackend/badge-api/-/blob/main/CONTRIBUTING.md', external: true, }, { - name: 'Open issue', + name: 'Issue öffnen', href: 'https://gitlab.opencode.de/open-code/badgebackend/badge-api/-/issues/new', external: true, }, ], legal: [ { - name: 'Imprint', + name: 'Impressum', href: 'https://opencode.de/de/impressum', external: true, }, { - name: 'Privacy policy', + name: 'Datenschutzerklärung', href: 'https://opencode.de/de/datenschutz', external: true, }, { - name: 'License', + name: 'Lizenz', href: 'https://gitlab.opencode.de/open-code/badgebackend/badge-api/-/blob/main/LICENSE', external: true, }, ], accessibility: [ { - name: 'Declaration on Accessibility', + name: 'Erklärung zur Barrierefreiheit', href: '/declaration-on-accessibility', external: false, }, @@ -94,7 +94,7 @@ export default function Footer() { /> </a> <p className="text-balance text-sm/6 text-gray-600"> - The Badge Programm is an{' '} + Das Badge Programm ist ein{' '} <a href="https://opencode.de/" target="_blank" @@ -103,7 +103,7 @@ export default function Footer() { > openCode </a>{' '} - service by{' '} + Dienst der{' '} <a href="https://zendis.de/" target="_blank" @@ -112,7 +112,7 @@ export default function Footer() { > ZenDiS </a>{' '} - maintained by{' '} + maintained durch{' '} <a href="https://l3montree.com" target="_blank" @@ -128,7 +128,7 @@ export default function Footer() { <div className="md:grid md:grid-cols-2 md:gap-8"> <div> <h3 className="text-sm/6 font-semibold text-gray-900"> - Official Badges + Offizielle Badges </h3> <ul role="list" className="mt-6 space-y-4"> {navigation.officialBadges.map((item) => ( @@ -176,7 +176,7 @@ export default function Footer() { <div className="md:grid md:grid-cols-2 md:gap-8"> <div> <h3 className="text-sm/6 font-semibold text-gray-900"> - Legal + Rechtliches </h3> <ul role="list" className="mt-6 space-y-4"> {navigation.legal.map((item) => ( @@ -199,7 +199,7 @@ export default function Footer() { </div> <div className="mt-10 md:mt-0"> <h3 className="text-sm/6 font-semibold text-gray-900"> - Accessibility + Barrierefreiheit </h3> <ul role="list" className="mt-6 space-y-4"> {navigation.accessibility.map((item) => ( diff --git a/src/components/ResultGrid.tsx b/src/components/ResultGrid.tsx index e96d1567ca521838a5536d06be5381083f6f65e2..2452741b10589a6132c3bd44677c1df99f571d2a 100644 --- a/src/components/ResultGrid.tsx +++ b/src/components/ResultGrid.tsx @@ -19,7 +19,7 @@ export default function ResultGrid({ currentScan }: Props) { <div className="mx-auto max-w-7xl px-6 lg:px-8"> <div className="mb-8"> <h2 className="mb-1 text-2xl font-semibold"> - Displaying results for: + Ergebnisse für: </h2> <a target="_blank" @@ -36,7 +36,7 @@ export default function ResultGrid({ currentScan }: Props) { } </a> </div> - <div className="-mx-6 grid grid-cols-2 gap-0.5 overflow-hidden sm:mx-0 sm:rounded-2xl md:grid-cols-3"> + <div className="-mx-6 grid grid-cols-1 gap-0.5 overflow-hidden px-6 sm:mx-0 sm:rounded-2xl sm:px-0 md:grid-cols-3"> {currentScan.runs[0].properties.testedRepository && currentScan?.runs[0].properties.badges .sort((a, b) => @@ -44,13 +44,13 @@ export default function ResultGrid({ currentScan }: Props) { ) .map((badge) => ( <div - className="overflow-hidden bg-gray-400/10 p-10" + className="overflow-hidden rounded-xl bg-gray-400/10 p-10 sm:rounded-none" key={`${badge.badgeId}-${badge.badgeLevel}`} > <div className="relative aspect-square"> {!badge.badgeGranted && ( - <div className="absolute right-0 top-0 -translate-y-1/2 translate-x-1/2 rotate-45 bg-red-600 px-10 py-2 font-bold text-white"> - Not granted + <div className="absolute right-0 top-0 -translate-y-1/2 translate-x-1/2 rotate-45 bg-red-600 px-10 py-2 text-xs font-bold text-white"> + Nicht gewährt </div> )} <Image diff --git a/src/components/ResultTable.tsx b/src/components/ResultTable.tsx index 68b02437e9867708aa8b303d95794960dfe7b853..feca39b70401f525111d852461d8b94aa6f9e9cc 100644 --- a/src/components/ResultTable.tsx +++ b/src/components/ResultTable.tsx @@ -6,15 +6,6 @@ import { SarifApiResponse } from '../lib/apiClient' import { cn } from '../lib/utils' import { Badge } from './ui/badge' -const people = [ - { - name: 'Lindsay Walton', - title: 'Front-end Developer', - email: 'lindsay.walton@example.com', - role: 'Member', - }, - // More people... -] interface Props { currentScan: SarifApiResponse } @@ -32,7 +23,7 @@ export default function ResultTable({ currentScan }: Props) { <details className=""> <summary className="relative flex cursor-pointer flex-row justify-between text-lg font-medium text-gray-900"> <span> - Details on: {badge.badgeId}{' '} + Details für: {badge.badgeId}{' '} {badge.badgeLevel} <Badge variant={ @@ -72,13 +63,13 @@ export default function ResultTable({ currentScan }: Props) { scope="col" className="col-span-2 px-3 py-3.5 text-left font-semibold" > - Description + Beschreibung </th> <th scope="col" className="col-span-2 px-3 py-3.5 text-left font-semibold" > - Evidence + Nachweis </th> </tr> </thead>