chore: include more quotes, new quote for each day, add to features section, dynamic theme_color

This commit is contained in:
Kyle Gill
2019-05-21 21:18:17 -06:00
parent 90250e7a98
commit 4a27d6fc5f
10 changed files with 171 additions and 57 deletions

View File

@@ -1,4 +1,5 @@
import React from "react"
import { Helmet } from "react-helmet"
import theme from "styles/theme"
const ThemeTogglerContext = React.createContext({
@@ -22,6 +23,7 @@ class ThemeToggler extends React.Component {
"background-color",
theme[newTheme].colors.bodyBackground
)
this.setState({ themeName: newTheme })
}
@@ -35,6 +37,12 @@ class ThemeToggler extends React.Component {
toggle: this.toggle,
}}
>
<Helmet>
<meta
name="theme-color"
content={theme[themeName].colors.bodyBackground}
/>
</Helmet>
{children}
</ThemeTogglerContext.Provider>
)