Initial commit

This commit is contained in:
Martin Berg Alstad
2022-12-04 17:51:05 +01:00
commit 5e8aefe665
23 changed files with 2458 additions and 0 deletions

View File

0
src/components/header.ts Normal file
View File

View File

22
src/components/link.tsx Normal file
View File

@ -0,0 +1,22 @@
import { Component, JSX } from "solid-js";
import { LinkProps } from "../types/interfaces";
export const A: Component<LinkProps> = (
{
to,
rel,
children,
className,
id,
newTab = true,
}): JSX.Element => {
return (
<a href={ to } id={ id }
rel={ `${ rel } ${ newTab ? "noreferrer" : undefined }` }
target={ newTab ? "_blank" : undefined }
class={ `link ${ className }` }>
{ children }
</a>
);
};

View File