parent
19e0e205b5
commit
530a95dac8
@ -1,31 +1,63 @@
|
|||||||
export default function StyledButton(props: any) {
|
export default function StyledButton(props: any) {
|
||||||
return (
|
if(props.type == "highlight") {
|
||||||
<div>
|
return (
|
||||||
<style jsx>{`
|
<div>
|
||||||
a {
|
<style jsx>{`
|
||||||
justify-content: center;
|
a {
|
||||||
text-align: center;
|
justify-content: center;
|
||||||
font-family: "Red Hat Display";
|
text-align: center;
|
||||||
display: inline-flex;
|
font-family: "Red Hat Display";
|
||||||
align-items: center;
|
display: inline-flex;
|
||||||
padding: 0.4em 1em;
|
align-items: center;
|
||||||
font-family: "Red Hat Display";
|
padding: 0.4em 1em;
|
||||||
font-weight: 500;
|
font-family: "Red Hat Display";
|
||||||
font-size: 1.1em;
|
font-weight: 500;
|
||||||
border-radius: 8px;
|
font-size: 1.1em;
|
||||||
background-color: var(--background-color-dark);
|
border-radius: 8px;
|
||||||
transition-duration: 0.2s;
|
background-color: var(--theme-color);
|
||||||
gap: var(--padding-sm);
|
transition-duration: 0.2s;
|
||||||
color: unset;
|
gap: var(--padding-sm);
|
||||||
text-decoration: unset;
|
color: unset;
|
||||||
}
|
text-decoration: unset;
|
||||||
a:hover {
|
}
|
||||||
background-color: var(--theme-color-500);
|
a:hover {
|
||||||
text-decoration: none;
|
background-color: var(--theme-color-500);
|
||||||
transition-duration: 0.2s;
|
text-decoration: none;
|
||||||
}
|
transition-duration: 0.2s;
|
||||||
`}</style>
|
}
|
||||||
<a style={props.style} href={props.href} target={props.target} rel={props.rel}>{props.children}</a>
|
`}</style>
|
||||||
</div>
|
<a style={props.style} href={props.href} target={props.target} rel={props.rel}>{props.children}</a>
|
||||||
)
|
</div>
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<style jsx>{`
|
||||||
|
a {
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Red Hat Display";
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0.4em 1em;
|
||||||
|
font-family: "Red Hat Display";
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.1em;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: var(--background-color-dark);
|
||||||
|
transition-duration: 0.2s;
|
||||||
|
gap: var(--padding-sm);
|
||||||
|
color: unset;
|
||||||
|
text-decoration: unset;
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
background-color: var(--theme-color-500);
|
||||||
|
text-decoration: none;
|
||||||
|
transition-duration: 0.2s;
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
<a style={props.style} href={props.href} target={props.target} rel={props.rel}>{props.children}</a>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
After Width: | Height: | Size: 5.9 MiB |
After Width: | Height: | Size: 124 KiB |
Loading…
Reference in new issue