Updated
This commit is contained in:
parent
8197905483
commit
efc045bebd
48 changed files with 779 additions and 1140 deletions
18
@dasig/components/Link.astro
Normal file
18
@dasig/components/Link.astro
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
interface Props {
|
||||
to: string
|
||||
newtab?: boolean
|
||||
}
|
||||
|
||||
const { to, newtab } = Astro.props
|
||||
---
|
||||
|
||||
<a href={to} aria-label={`Go to ${to}`} rel="noopener" target={newtab ? '_blank' : '_self'} data-astro-prefetch>
|
||||
<slot />
|
||||
</a>
|
||||
|
||||
<style lang="sass">
|
||||
a
|
||||
text-decoration: none
|
||||
color: inherit
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue