mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-13 08:46:56 +08:00
Fix theme, meta tags & modal dark mode
This commit is contained in:
parent
7409e7b9be
commit
b1e992c111
@ -10,12 +10,14 @@ import {
|
|||||||
useDisclosure,
|
useDisclosure,
|
||||||
IconButton,
|
IconButton,
|
||||||
Button,
|
Button,
|
||||||
|
useColorModeValue,
|
||||||
} from "@chakra-ui/react";
|
} from "@chakra-ui/react";
|
||||||
import Search from "components/search";
|
import Search from "components/search";
|
||||||
import { IoSearch } from "react-icons/io5";
|
import { IoSearch } from "react-icons/io5";
|
||||||
|
|
||||||
const ModalSearch = (props) => {
|
const ModalSearch = (props) => {
|
||||||
const { isOpen, onOpen, onClose } = useDisclosure();
|
const { isOpen, onOpen, onClose } = useDisclosure();
|
||||||
|
const bg = useColorModeValue("light.100", "dark.800");
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<IconButton
|
<IconButton
|
||||||
@ -27,7 +29,7 @@ const ModalSearch = (props) => {
|
|||||||
/>
|
/>
|
||||||
<Modal isOpen={isOpen} onClose={onClose} motionPreset='slideInBottom'>
|
<Modal isOpen={isOpen} onClose={onClose} motionPreset='slideInBottom'>
|
||||||
<ModalOverlay />
|
<ModalOverlay />
|
||||||
<ModalContent>
|
<ModalContent bg={bg}>
|
||||||
<ModalHeader fontWeight="light">Search</ModalHeader>
|
<ModalHeader fontWeight="light">Search</ModalHeader>
|
||||||
<ModalCloseButton />
|
<ModalCloseButton />
|
||||||
<ModalBody pb="5">
|
<ModalBody pb="5">
|
||||||
|
@ -30,9 +30,11 @@ function MyApp({ Component, pageProps, router }) {
|
|||||||
<meta property="og:image" content="/images/banner.png" />
|
<meta property="og:image" content="/images/banner.png" />
|
||||||
<meta property="twitter:title" content="SVGL - Beautiful SVG logos" />
|
<meta property="twitter:title" content="SVGL - Beautiful SVG logos" />
|
||||||
<meta property="twitter:url" content="https://svgl.vercel.app/" />
|
<meta property="twitter:url" content="https://svgl.vercel.app/" />
|
||||||
<meta property="twitter:card" content="summary" />
|
<meta property="twitter:card" content="summary_large_image" />
|
||||||
<meta property="twitter:creator" content="@pheralb" />
|
<meta property="twitter:creator" content="@pheralb" />
|
||||||
<meta property="twitter:description" content="Beautiful SVG logos. Free and open source." />
|
<meta property="twitter:description" content="Beautiful SVG logos. Free and open source." />
|
||||||
|
<meta property="twitter:image:src" content="/images/banner.png" />
|
||||||
|
<meta name="twitter:site" content="@pheralb_" />
|
||||||
<meta name="keywords" content="svg,vector,logo,logos,download" />
|
<meta name="keywords" content="svg,vector,logo,logos,download" />
|
||||||
<meta content="#16161a" name="theme-color" />
|
<meta content="#16161a" name="theme-color" />
|
||||||
<link rel="icon" href="/icons/icon.ico" />
|
<link rel="icon" href="/icons/icon.ico" />
|
||||||
|
@ -8,7 +8,7 @@ const theme = extendTheme(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
config: {
|
config: {
|
||||||
initialColorMode: "dark",
|
initialColorMode: "light",
|
||||||
useSystemColorMode: false,
|
useSystemColorMode: false,
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
|
Loading…
Reference in New Issue
Block a user