Skip to content

Instantly share code, notes, and snippets.

@joake
Created May 29, 2019 08:29
Show Gist options
  • Save joake/81b21d4c0e6fcda40b0c61ad118e6bb3 to your computer and use it in GitHub Desktop.
Save joake/81b21d4c0e6fcda40b0c61ad118e6bb3 to your computer and use it in GitHub Desktop.
import { } from 'react';
import { Link } from 'vev';
export default function({ link, linkText }: Props) {
return (
<Link to={link} className="fill">{linkText || 'Open link'}</Link>
);
}
<div>
<LinkField name="link" default="" />
<TextField name="linkText" default="Open Link" />
</div>
:host{
}
a {
display: vev(flex);
flex-direction: vev(row);
align-items: vev(center);
justify-content: vev(center);
text-decoration: none;
color: vev($bg3);
background: vev($primary4);
border: vev(1px solid $primary4);
border-radius: vev(25px);
transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);
font-family: vev();
font-size: vev(18px);
font-weight: vev(normal);
line-height: vev();
letter-spacing: vev();
word-spacing: vev();
text-transform: vev();
box-shadow: vev();
text-shadow: vev();
}
a:hover {
font-size: vev(18px);
font-weight: vev(normal);
line-height: vev();
letter-spacing: vev();
word-spacing: vev();
text-transform: vev();
text-decoration: none;
color: vev($bg4);
background: vev($primary3);
border: vev(1px solid $primary3);
cursor: pointer;
box-shadow: vev();
text-shadow: vev();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment