Files
tkmind_go/documentation/src/theme/Root.tsx
T

47 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-11-12 21:21:31 -05:00
import React from 'react';
import type { ReactNode } from 'react';
interface Props {
children: ReactNode;
}
2025-11-15 18:35:44 -06:00
const SHOW_BANNER = false;
2025-11-12 21:21:31 -05:00
export default function Root({ children }: Props): JSX.Element {
return (
<>
2025-11-15 18:35:44 -06:00
{SHOW_BANNER && (
<div
2025-11-12 21:21:31 -05:00
style={{
2025-11-15 18:35:44 -06:00
backgroundColor: '#25c2a0',
2025-11-12 21:21:31 -05:00
color: '#000',
2025-11-15 18:35:44 -06:00
padding: '8px 16px',
textAlign: 'center',
fontSize: '14px',
fontWeight: '500',
position: 'relative',
zIndex: 1000,
lineHeight: '1.3',
2025-11-12 21:21:31 -05:00
}}
>
2025-11-15 18:35:44 -06:00
✨ NO KEYBOARDS ALLOWED HACKATHON✨ : build next-gen interfaces with goose and win prizes.{' '}
<a
href="https://nokeyboardsallowed.dev"
target="_blank"
rel="noopener noreferrer"
style={{
color: '#000',
textDecoration: 'underline',
fontWeight: '700',
}}
>
Deadline Nov 14
</a>
.
</div>
)}
2025-11-12 21:21:31 -05:00
{children}
</>
);
}