-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.tsx
More file actions
96 lines (94 loc) · 2.94 KB
/
Footer.tsx
File metadata and controls
96 lines (94 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import Box from '@mui/material/Box';
import Link from '@mui/material/Link';
import { Link as RouterLink } from 'react-router-dom';
import { GITHUB_URL } from '../constants';
interface FooterProps {
onTrackEvent?: (name: string, props?: Record<string, string | undefined>) => void;
selectedSpec?: string;
selectedLibrary?: string;
}
export function Footer({ onTrackEvent, selectedSpec, selectedLibrary }: FooterProps) {
return (
<Box sx={{ textAlign: 'center', mt: 4, pt: 4, borderTop: '1px solid #f3f4f6' }}>
<Box
sx={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
gap: 1,
fontSize: '0.8rem',
fontFamily: '"MonoLisa", "MonoLisa Fallback", monospace',
color: '#9ca3af',
}}
>
<Link
href={GITHUB_URL}
target="_blank"
rel="noopener noreferrer"
onClick={() => onTrackEvent?.('external_link', { destination: 'github', spec: selectedSpec, library: selectedLibrary })}
sx={{
color: '#9ca3af',
textDecoration: 'none',
'&:hover': { color: '#6b7280' },
}}
>
github
</Link>
<span>·</span>
<Link
href="https://plausible.io/pyplots.ai"
target="_blank"
rel="noopener noreferrer"
onClick={() => onTrackEvent?.('external_link', { destination: 'stats', spec: selectedSpec, library: selectedLibrary })}
sx={{
color: '#9ca3af',
textDecoration: 'none',
'&:hover': { color: '#6b7280' },
}}
>
stats
</Link>
<span>·</span>
<Link
href="https://www.linkedin.com/in/markus-neusinger/"
target="_blank"
rel="noopener noreferrer"
onClick={() => onTrackEvent?.('external_link', { destination: 'linkedin', spec: selectedSpec, library: selectedLibrary })}
sx={{
color: '#9ca3af',
textDecoration: 'none',
'&:hover': { color: '#6b7280' },
}}
>
markus neusinger
</Link>
<span>·</span>
<Link
component={RouterLink}
to="/mcp"
onClick={() => onTrackEvent?.('internal_link', { destination: 'mcp', spec: selectedSpec, library: selectedLibrary })}
sx={{
color: '#9ca3af',
textDecoration: 'none',
'&:hover': { color: '#6b7280' },
}}
>
mcp
</Link>
<span>·</span>
<Link
component={RouterLink}
to="/legal"
onClick={() => onTrackEvent?.('internal_link', { destination: 'legal', spec: selectedSpec, library: selectedLibrary })}
sx={{
color: '#9ca3af',
textDecoration: 'none',
'&:hover': { color: '#6b7280' },
}}
>
legal
</Link>
</Box>
</Box>
);
}