Changed from astro to pure solidjs
This commit is contained in:
parent
3203e91c5a
commit
e85dc60101
76 changed files with 2281 additions and 3843 deletions
3
src/components/Link/Link.sass
Normal file
3
src/components/Link/Link.sass
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
a
|
||||
text-decoration: none
|
||||
color: inherit
|
||||
18
src/components/Link/Link.tsx
Normal file
18
src/components/Link/Link.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import './Link.sass'
|
||||
import { A } from '@solidjs/router'
|
||||
|
||||
interface Props {
|
||||
to: string
|
||||
children?: any
|
||||
newtab?: boolean
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<A href={props.to} aria-label={`Go to ${props.to}`} target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
|
||||
{props.children}
|
||||
</A>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue