mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: new homepage
This commit is contained in:
1 parent
2ce69b085a
commit
3631fb3cab
4 files changed
+207
-13
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
Link as RadixLink,
|
||||
LinkProps as RadixLinkProps,
|
||||
} from '@radix-ui/themes';
|
||||
import NextLink from 'next/link';
|
||||
|
||||
interface LinkProps extends RadixLinkProps {
|
||||
href: string;
|
||||
}
|
||||
|
||||
export function Link({ href, children, target, onClick, ...props }: LinkProps) {
|
||||
return (
|
||||
<RadixLink
|
||||
href={href}
|
||||
onClick={(event) => event.preventDefault()}
|
||||
{...props}
|
||||
>
|
||||
<NextLink
|
||||
href={href}
|
||||
target={target}
|
||||
onClick={onClick}
|
||||
style={{ all: 'inherit' }}
|
||||
>
|
||||
{children}
|
||||
</NextLink>
|
||||
</RadixLink>
|
||||
);
|
||||
}
|
||||
@@ -114,6 +114,7 @@ export default function Navbar() {
|
||||
|
||||
return (
|
||||
<LinkRadix
|
||||
highContrast={selected}
|
||||
color="gray"
|
||||
underline={selected ? 'always' : 'hover'}
|
||||
href="#"
|
||||
|
||||
Reference in new issue
Block a user