Skip to content

Commit 7fc5ceb

Browse files
authored
Fix footer and header layout (#26)
- Make footer sticky to bottom with flexbox layout - Change date display to "Last tested {date}" for clarity - Align footer items vertically with flex centering - Remove unused Badge import
1 parent e3a14af commit 7fc5ceb

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

site/src/App.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ function App() {
134134
// Main matrix view
135135
return (
136136
<TooltipProvider>
137-
<div className="min-h-screen bg-ctp-base">
137+
<div className="min-h-screen bg-ctp-base flex flex-col">
138138
<Header generatedAt={data.generated_at} commitSha={data.commit_sha} />
139139

140-
<main className="container mx-auto px-4 py-8">
140+
<main className="container mx-auto px-4 py-8 flex-1">
141141
<div className="space-y-6">
142142
{/* Simple tab buttons */}
143143
<div className="flex gap-1 text-sm">
@@ -197,19 +197,19 @@ function App() {
197197
</div>
198198
</main>
199199

200-
<footer className="border-t border-ctp-surface0 mt-12 bg-ctp-mantle">
201-
<div className="container mx-auto px-4 py-6 text-center text-sm text-ctp-subtext0">
200+
<footer className="border-t border-ctp-surface0 bg-ctp-mantle">
201+
<div className="container mx-auto px-4 py-6 flex items-center justify-center gap-2 text-sm text-ctp-subtext0">
202202
<a
203203
href="https://github.com/runtimed/kernel-testbed"
204204
target="_blank"
205205
rel="noopener noreferrer"
206-
className="inline-flex items-center gap-2 hover:text-ctp-mauve transition-colors"
206+
className="flex items-center gap-2 hover:text-ctp-mauve transition-colors"
207207
>
208208
<Github className="h-4 w-4" />
209209
kernel-testbed
210210
</a>
211-
<span className="mx-2"></span>
212-
Jupyter kernel protocol conformance testing
211+
<span></span>
212+
<span>Jupyter kernel protocol conformance testing</span>
213213
</div>
214214
</footer>
215215
</div>

site/src/components/Header.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Badge } from '@/components/ui/badge';
21
import { FlaskConical, GitCommit, Calendar } from 'lucide-react';
32

43
interface HeaderProps {
@@ -36,10 +35,10 @@ export function Header({ generatedAt, commitSha }: HeaderProps) {
3635
</div>
3736
<div className="flex flex-col items-start sm:items-end gap-2">
3837
{formattedDate && (
39-
<Badge variant="outline" className="text-xs gap-1.5 bg-ctp-surface0/50 border-ctp-surface1">
38+
<span className="text-xs text-ctp-subtext0 flex items-center gap-1.5">
4039
<Calendar className="h-3 w-3 text-ctp-blue" />
41-
{formattedDate}
42-
</Badge>
40+
Last tested {formattedDate}
41+
</span>
4342
)}
4443
{commitSha && (
4544
<a

0 commit comments

Comments
 (0)