Initial commit
This commit is contained in:
0
src/components/footer.tsx
Normal file
0
src/components/footer.tsx
Normal file
0
src/components/header.ts
Normal file
0
src/components/header.ts
Normal file
0
src/components/layout.tsx
Normal file
0
src/components/layout.tsx
Normal file
22
src/components/link.tsx
Normal file
22
src/components/link.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
|
0
src/components/navBar.tsx
Normal file
0
src/components/navBar.tsx
Normal file
Reference in New Issue
Block a user