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) { window.__setTheme = function(theme) {
onChangeTheme(theme) onChangeTheme(theme)
} }
// onRefreshPage // onRefreshPage
if (localStorage.getItem('dark') || (new Date().getHours() >= 22 || new Date().getHours() <= 6)) { if (localStorage.getItem('dark') || (new Date().getHours() >= 22 || new Date().getHours() <= 6)) {
window.__isDarkTheme = true window.__isDarkTheme = true

View File

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

View File

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

View File

@ -85,7 +85,7 @@ const Header = () => {
: null : null
} }
</div> </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 /> <span />
<span /> <span />