Skip to content

Commit 7328f16

Browse files
committed
wikidata contributions link
1 parent 1c16471 commit 7328f16

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

poliloom-gui/src/app/stats/page.tsx

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -333,29 +333,9 @@ export default function StatsPage() {
333333
<div className="max-w-6xl mx-auto px-6 py-12">
334334
<div className="mb-8">
335335
<h1 className="text-3xl font-bold text-gray-900 mb-4">Community Stats</h1>
336-
<div className="flex items-baseline justify-between gap-4">
337-
<p className="text-lg text-gray-600">
338-
Track evaluation progress and coverage across countries.
339-
</p>
340-
{process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL && (
341-
<a
342-
href={process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL}
343-
target="_blank"
344-
rel="noopener noreferrer"
345-
className="text-indigo-600 hover:underline whitespace-nowrap inline-flex items-center gap-1"
346-
>
347-
View Wikidata contributions
348-
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
349-
<path
350-
strokeLinecap="round"
351-
strokeLinejoin="round"
352-
strokeWidth={2}
353-
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
354-
/>
355-
</svg>
356-
</a>
357-
)}
358-
</div>
336+
<p className="text-lg text-gray-600">
337+
Track evaluation progress and coverage across countries.
338+
</p>
359339
</div>
360340

361341
{loading && (
@@ -390,10 +370,27 @@ export default function StatsPage() {
390370
</div>
391371
)}
392372

393-
<div className="text-center pt-8 pb-4">
373+
<div className="flex justify-center gap-3 pt-8 pb-4">
394374
<Button href="https://www.opensanctions.org/impressum/" variant="secondary" size="small">
395375
Impressum
396376
</Button>
377+
{process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL && (
378+
<Button
379+
href={process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL}
380+
variant="secondary"
381+
size="small"
382+
>
383+
View Wikidata contributions
384+
<svg className="w-4 h-4 ml-1 stroke-indigo-600" fill="none" viewBox="0 0 24 24">
385+
<path
386+
strokeLinecap="round"
387+
strokeLinejoin="round"
388+
strokeWidth={2}
389+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
390+
/>
391+
</svg>
392+
</Button>
393+
)}
397394
</div>
398395
</div>
399396
</main>

0 commit comments

Comments
 (0)