Compare commits
10 Commits
d460e46d68
...
c1a49b5275
Author | SHA1 | Date |
---|---|---|
Midnight | c1a49b5275 | 1 year ago |
Midnight | 9d0320b3f5 | 1 year ago |
Midnight | 907ca6ab60 | 1 year ago |
Midnight | d11b43c1bf | 1 year ago |
Midnight | fda6e0ec08 | 1 year ago |
Midnight | f56163a6a1 | 2 years ago |
Midnight | c98b20565a | 3 years ago |
Midnight | 6754fa20d9 | 3 years ago |
Midnight | 530a95dac8 | 3 years ago |
Midnight | 19e0e205b5 | 3 years ago |
@ -1,3 +1,7 @@
|
||||
{
|
||||
"extends": ["next", "next/core-web-vitals"]
|
||||
}
|
||||
"extends": ["next", "next/core-web-vitals"],
|
||||
"rules": {
|
||||
// Other rules
|
||||
"@next/next/no-img-element": "off"
|
||||
}
|
||||
}
|
@ -1,31 +1,63 @@
|
||||
export default function StyledButton(props: any) {
|
||||
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>
|
||||
)
|
||||
if(props.type == "highlight") {
|
||||
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(--theme-color);
|
||||
transition-duration: 0.2s;
|
||||
gap: var(--padding-sm);
|
||||
color: white;
|
||||
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>
|
||||
)
|
||||
} 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>
|
||||
)
|
||||
}
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||
|
@ -1,4 +1,3 @@
|
||||
module.exports = {
|
||||
reactStrictMode: true,
|
||||
target: 'serverless',
|
||||
}
|
||||
reactStrictMode: true,
|
||||
};
|
||||
|
After Width: | Height: | Size: 979 KiB |
After Width: | Height: | Size: 211 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 409 KiB |
Before Width: | Height: | Size: 5.7 MiB |
Before Width: | Height: | Size: 386 KiB |
Before Width: | Height: | Size: 631 KiB |