WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions web/src/components/core/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Fade from "react-reveal/Fade";
import { Collapse } from "react-collapse";
import { Box, Divider, Flex, Grid, Input, jsx, Text } from "theme-ui";
import { navigate } from "gatsby";
import Login from "../users/login";

function MenuLink(props) {
return (
Expand Down Expand Up @@ -157,13 +158,21 @@ function StandardHeader({ logo, menuLinks, isSearch }) {
}}
>
<Container>
<Link to="/">
<img
src={logoSrc}
sx={{ maxWidth: "200px", marginTop: "2em" }}
alt={logo.alt}
/>
</Link>
<Grid gap={2} columns={[2]}>
<Box>
<Link to="/">
<img
src={logoSrc}
sx={{ maxWidth: "200px", marginTop: "2em" }}
alt={logo.alt}
/>
</Link>
</Box>
<Box sx={{ justifySelf: "end", alignSelf: "end", paddingBottom: 1 }}>
<Login />
</Box>
</Grid>

<Flex>
{menuLinks.map((link, index) =>
link.subMenu && link.subMenu.length > 0 ? (
Expand Down Expand Up @@ -231,6 +240,9 @@ class MobileHeader extends React.Component {
/>
</Link>
</Box>
<Box sx={{paddingRight: 1, paddingTop: 1}}>
<Login />
</Box>
<Box
pt={3}
sx={{
Expand Down