Skip to content

Commit 4addaed

Browse files
committed
common footer
1 parent 7328f16 commit 4addaed

File tree

3 files changed

+39
-27
lines changed

3 files changed

+39
-27
lines changed

poliloom-gui/src/app/page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { Box } from '@/components/ui/Box'
44
import { Button } from '@/components/ui/Button'
5+
import { Footer } from '@/components/ui/Footer'
56
import { Toggle } from '@/components/ui/Toggle'
67
import { MultiSelect, MultiSelectOption } from '@/components/entity/MultiSelect'
78
import { useUserPreferences } from '@/contexts/UserPreferencesContext'
@@ -65,9 +66,9 @@ export default function Home() {
6566
const handleCountryChange = createFilterHandler(PreferenceType.COUNTRY, countries)
6667

6768
return (
68-
<main className="bg-gray-50 min-h-0 overflow-y-auto">
69+
<main className="bg-gray-50 min-h-0 overflow-y-auto flex flex-col">
6970
{/* Filters Section */}
70-
<div className="max-w-6xl mx-auto px-6 py-12">
71+
<div className="flex-1 max-w-6xl mx-auto px-6 pt-12 w-full">
7172
<div className="mb-8">
7273
<h1 className="text-3xl font-bold text-gray-900 mb-4">Configure Your Session</h1>
7374
<p className="text-lg text-gray-600">
@@ -130,6 +131,8 @@ export default function Home() {
130131
</div>
131132
</Box>
132133
</div>
134+
135+
<Footer />
133136
</main>
134137
)
135138
}

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

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Select } from '@/components/ui/Select'
77
import { Loader } from '@/components/ui/Spinner'
88
import { CenteredCard } from '@/components/ui/CenteredCard'
99
import { Button } from '@/components/ui/Button'
10+
import { Footer } from '@/components/ui/Footer'
1011
import { useUserProgress } from '@/contexts/UserProgressContext'
1112
import { StatsResponse, EvaluationTimeseriesPoint, CountryCoverage } from '@/types'
1213

@@ -329,8 +330,8 @@ export default function StatsPage() {
329330
}
330331

331332
return (
332-
<main className="bg-gray-50 min-h-0 overflow-y-auto">
333-
<div className="max-w-6xl mx-auto px-6 py-12">
333+
<main className="bg-gray-50 min-h-0 overflow-y-auto flex flex-col">
334+
<div className="flex-1 max-w-6xl mx-auto px-6 pt-12 w-full">
334335
<div className="mb-8">
335336
<h1 className="text-3xl font-bold text-gray-900 mb-4">Community Stats</h1>
336337
<p className="text-lg text-gray-600">
@@ -369,30 +370,9 @@ export default function StatsPage() {
369370
</HeaderedBox>
370371
</div>
371372
)}
372-
373-
<div className="flex justify-center gap-3 pt-8 pb-4">
374-
<Button href="https://www.opensanctions.org/impressum/" variant="secondary" size="small">
375-
Impressum
376-
</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-
)}
394-
</div>
395373
</div>
374+
375+
<Footer />
396376
</main>
397377
)
398378
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { Button } from './Button'
2+
3+
export function Footer() {
4+
return (
5+
<div className="flex justify-center gap-3 py-8">
6+
<Button href="https://www.opensanctions.org/impressum/" variant="secondary" size="small">
7+
Impressum
8+
</Button>
9+
{process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL && (
10+
<Button
11+
href={process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL}
12+
variant="secondary"
13+
size="small"
14+
className="text-indigo-600 hover:text-indigo-700"
15+
>
16+
View Wikidata contributions
17+
<svg className="w-4 h-4 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
18+
<path
19+
strokeLinecap="round"
20+
strokeLinejoin="round"
21+
strokeWidth={2}
22+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
23+
/>
24+
</svg>
25+
</Button>
26+
)}
27+
</div>
28+
)
29+
}

0 commit comments

Comments
 (0)