24
package.json
24
package.json
@@ -16,31 +16,31 @@
|
|||||||
"pretty": "prettier --write ."
|
"pretty": "prettier --write ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "<=2.2.1",
|
"@chakra-ui/react": "^2.2.6",
|
||||||
"@emotion/react": "^11.9.3",
|
"@emotion/react": "^11.10.0",
|
||||||
"@emotion/styled": "^11.9.3",
|
"@emotion/styled": "^11.10.0",
|
||||||
"@iconify/react": "^3.2.2",
|
"@iconify/react": "^3.2.2",
|
||||||
"@reduxjs/toolkit": "^1.8.3",
|
"@reduxjs/toolkit": "^1.8.4",
|
||||||
"date-fns": "^2.29.1",
|
"date-fns": "^2.29.1",
|
||||||
"formik": "^2.2.9",
|
"formik": "^2.2.9",
|
||||||
"framer-motion": "^6.5.1",
|
"framer-motion": "^7.1.0",
|
||||||
"next": "12.2.3",
|
"next": "12.2.5",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-redux": "^8.0.2",
|
"react-redux": "^8.0.2",
|
||||||
"sharp": "^0.30.7"
|
"sharp": "^0.30.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.6.1",
|
"@types/node": "^18.7.2",
|
||||||
"@types/react": "^18.0.15",
|
"@types/react": "^18.0.17",
|
||||||
"@types/react-redux": "^7.1.24",
|
"@types/react-redux": "^7.1.24",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
||||||
"eslint": "^8.20.0",
|
"eslint": "^8.21.0",
|
||||||
"eslint-config-next": "^12.2.3",
|
"eslint-config-next": "^12.2.5",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.6.1",
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
||||||
"eslint-plugin-react": "^7.30.1",
|
"eslint-plugin-react": "^7.30.1",
|
||||||
"eslint-plugin-react-hooks": "<4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"typescript": "^4.7.4"
|
"typescript": "^4.7.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||||
import {
|
import { darken, mode, whiten } from "@chakra-ui/theme-tools";
|
||||||
darken,
|
|
||||||
mode,
|
|
||||||
StyleFunctionProps,
|
|
||||||
whiten
|
|
||||||
} from "@chakra-ui/theme-tools";
|
|
||||||
import { Dict } from "@chakra-ui/utils";
|
import { Dict } from "@chakra-ui/utils";
|
||||||
|
|
||||||
const buttonStyles = {
|
const buttonStyles = {
|
||||||
@@ -14,7 +9,7 @@ const buttonStyles = {
|
|||||||
sizes: {},
|
sizes: {},
|
||||||
// styles for different visual variants ("outline", "solid")
|
// styles for different visual variants ("outline", "solid")
|
||||||
variants: {
|
variants: {
|
||||||
primary: (props: Dict<never> | StyleFunctionProps) => ({
|
primary: (props: Dict<never>) => ({
|
||||||
bg: "brand.primary",
|
bg: "brand.primary",
|
||||||
fontSize: "xl",
|
fontSize: "xl",
|
||||||
py: 3,
|
py: 3,
|
||||||
@@ -27,7 +22,7 @@ const buttonStyles = {
|
|||||||
)(props)
|
)(props)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
secondary: (props: Dict<never> | StyleFunctionProps) => ({
|
secondary: (props: Dict<never>) => ({
|
||||||
bg: "brand.secondary",
|
bg: "brand.secondary",
|
||||||
fontSize: "xl",
|
fontSize: "xl",
|
||||||
py: 3,
|
py: 3,
|
||||||
@@ -40,7 +35,7 @@ const buttonStyles = {
|
|||||||
)(props)
|
)(props)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
skip: (props: Dict<never> | StyleFunctionProps) => ({
|
skip: (props: Dict<never>) => ({
|
||||||
bg: "transparent",
|
bg: "transparent",
|
||||||
fontSize: "xl",
|
fontSize: "xl",
|
||||||
py: 3,
|
py: 3,
|
||||||
@@ -51,7 +46,7 @@ const buttonStyles = {
|
|||||||
color: "whiteAlpha.900"
|
color: "whiteAlpha.900"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
stickerButton: (props: Dict<never> | StyleFunctionProps) => ({
|
stickerButton: (props: Dict<never>) => ({
|
||||||
bg: "transparent",
|
bg: "transparent",
|
||||||
fontSize: "4rem",
|
fontSize: "4rem",
|
||||||
px: 2,
|
px: 2,
|
||||||
@@ -63,7 +58,7 @@ const buttonStyles = {
|
|||||||
)(props)
|
)(props)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
nav: (props: Dict<never> | StyleFunctionProps) => ({
|
nav: (props: Dict<never>) => ({
|
||||||
bg: "transparent",
|
bg: "transparent",
|
||||||
fontSize: "md",
|
fontSize: "md",
|
||||||
px: 2,
|
px: 2,
|
||||||
@@ -82,7 +77,7 @@ const buttonStyles = {
|
|||||||
textDecoration: "underline"
|
textDecoration: "underline"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
footer: (props: Dict<never> | StyleFunctionProps) => ({
|
footer: (props: Dict<never>) => ({
|
||||||
bg: "brand.main",
|
bg: "brand.main",
|
||||||
fontSize: "lg",
|
fontSize: "lg",
|
||||||
py: 3,
|
py: 3,
|
||||||
@@ -92,7 +87,7 @@ const buttonStyles = {
|
|||||||
bg: mode(whiten("brand.main", 20), darken("brand.main", 20))(props)
|
bg: mode(whiten("brand.main", 20), darken("brand.main", 20))(props)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
backToTop: (props: Dict<never> | StyleFunctionProps) => ({
|
backToTop: (props: Dict<never>) => ({
|
||||||
bg: "rgba(23, 25, 35, 0.5)",
|
bg: "rgba(23, 25, 35, 0.5)",
|
||||||
fontSize: "lg",
|
fontSize: "lg",
|
||||||
py: 2,
|
py: 2,
|
||||||
@@ -112,7 +107,7 @@ const buttonStyles = {
|
|||||||
border: "1px solid rgba(0, 134, 255, 1)"
|
border: "1px solid rgba(0, 134, 255, 1)"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
submit: (props: Dict<never> | StyleFunctionProps) => ({
|
submit: (props: Dict<never>) => ({
|
||||||
fontSize: "lg",
|
fontSize: "lg",
|
||||||
py: 2,
|
py: 2,
|
||||||
px: 4,
|
px: 4,
|
||||||
@@ -131,7 +126,7 @@ const buttonStyles = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
mobileNav: (props: Dict<never> | StyleFunctionProps) => ({
|
mobileNav: (props: Dict<never>) => ({
|
||||||
// bg: "transparent",
|
// bg: "transparent",
|
||||||
fontSize: "md",
|
fontSize: "md",
|
||||||
px: 2,
|
px: 2,
|
||||||
@@ -152,7 +147,7 @@ const buttonStyles = {
|
|||||||
border: "1px solid #0068ff"
|
border: "1px solid #0068ff"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
patreon: (props: Dict<never> | StyleFunctionProps) => ({
|
patreon: (props: Dict<never>) => ({
|
||||||
bg: "brand.patreon",
|
bg: "brand.patreon",
|
||||||
fontSize: "lg",
|
fontSize: "lg",
|
||||||
p: 3,
|
p: 3,
|
||||||
@@ -164,7 +159,7 @@ const buttonStyles = {
|
|||||||
)(props)
|
)(props)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
twitter: (props: Dict<never> | StyleFunctionProps) => ({
|
twitter: (props: Dict<never>) => ({
|
||||||
bg: "brand.twitter",
|
bg: "brand.twitter",
|
||||||
fontSize: "lg",
|
fontSize: "lg",
|
||||||
py: 3,
|
py: 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user