some fixes

This commit is contained in:
Sergey Yarkov 2020-07-20 21:44:03 +03:00
parent bdcb6cc55a
commit ff2b6f0aef
4 changed files with 12 additions and 3 deletions

View File

@ -11,6 +11,7 @@ const OnDark = () => {
window.__setTheme = function(theme) {
onChangeTheme(theme)
}
// onRefreshPage
if (localStorage.getItem('dark') || (new Date().getHours() >= 22 || new Date().getHours() <= 6)) {
window.__isDarkTheme = true

View File

@ -42,12 +42,15 @@ const Footer = () => {
</div>
</div>
<div className="footer-nav__helpers">
<span>Разработка при помощи:</span>
<div className="helpers-icons">
<a href="https://www.gatsbyjs.org/" rel='noreferrer' target="_blank">
<GatsbyIcon />
GatsbyJS
</a>
<a href="https://www.netlify.com/" rel='noreferrer' target="_blank">
<NetlifyIcon />
Netlify
</a>
</div>
</div>

View File

@ -51,15 +51,20 @@ footer {
& .footer-nav__helpers {
display: flex;
align-items: flex-end;
justify-content: flex-end;
flex-direction: column;
& span {
margin-right: 10px;
font-size: 14px;
margin-bottom: 10px;
}
& .helpers-icons {
display: flex;
align-items: center;
& a {
text-decoration: none;
font-size: 0;
}
& a:nth-child(1) {
text-decoration: none;
margin-right: 10px;
}
}

View File

@ -85,7 +85,7 @@ const Header = () => {
: null
}
</div>
<button onClick={mobileHandler} className={isMobileOpen ? "header-content__button mobile active" : 'header-content__button mobile'}>
<button aria-label='menu' onClick={mobileHandler} className={isMobileOpen ? "header-content__button mobile active" : 'header-content__button mobile'}>
<span />
<span />
<span />