feat(shared): Added link components
This commit is contained in:
parent
daa0c7b488
commit
e260d9c634
2 changed files with 22 additions and 0 deletions
13
packages/freesewing.shared/components/page-link.js
Normal file
13
packages/freesewing.shared/components/page-link.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
|
const PageLink = ({ href, txt }) => (
|
||||||
|
<Link href={href}>
|
||||||
|
<a className={`
|
||||||
|
text-lg font-bold text-secondary
|
||||||
|
hover:text-secondary-focus hover:underline`}
|
||||||
|
title={txt}>{txt}</a>
|
||||||
|
</Link>
|
||||||
|
)
|
||||||
|
|
||||||
|
export default PageLink
|
||||||
|
|
9
packages/freesewing.shared/components/web-link.js
Normal file
9
packages/freesewing.shared/components/web-link.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
const WebLink = ({ href, txt }) => (
|
||||||
|
<a href={href} className={`
|
||||||
|
text-lg font-bold text-secondary
|
||||||
|
hover:text-secondary-focus hover:underline`}
|
||||||
|
title={txt}>{txt}</a>
|
||||||
|
)
|
||||||
|
|
||||||
|
export default WebLink
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue