From 97ca83bbafa5cb5c81489ac429c8f83fe8c7e780 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Tue, 14 Jul 2020 16:52:25 +0200 Subject: [PATCH] technology icon should use webp, remove mobile menu --- src/components/Layout/Navbar.js | 146 ++++-------------- .../components/Technologies/Technologies.js | 2 +- 2 files changed, 35 insertions(+), 113 deletions(-) diff --git a/src/components/Layout/Navbar.js b/src/components/Layout/Navbar.js index 923f4b8..95652a4 100644 --- a/src/components/Layout/Navbar.js +++ b/src/components/Layout/Navbar.js @@ -1,4 +1,4 @@ -import React, { useState } from "react" +import React from "react" import classnames from "classnames" import * as routes from "@config/routes" import useSmoothScroll from "@libs/useSmoothScroll" @@ -8,17 +8,8 @@ import { SECTION_ID as PROJECTS_SECTION_ID } from "@features/HomePage/components import { SECTION_ID as CONTACT_SECTION_ID } from "@features/HomePage/components/Contact" import { makeStyles } from "@material-ui/core/styles" -import { - AppBar, - Toolbar, - Container, - Hidden, - Menu, - MenuItem, - Link, -} from "@material-ui/core" -import { Menu as MenuIcon } from "@material-ui/icons" -import { Link as GatsbyLink, IconButton } from "gatsby-theme-material-ui" +import { AppBar, Toolbar, Container, Link } from "@material-ui/core" +import { Link as GatsbyLink } from "gatsby-theme-material-ui" const useStyles = makeStyles(theme => ({ appBar: { @@ -26,10 +17,15 @@ const useStyles = makeStyles(theme => ({ color: "#fff", boxShadow: "none", }, - hidden: { + linkContainer: { "& > *:not(:last-child)": { marginRight: theme.spacing(1.5), }, + [theme.breakpoints.down("xs")]: { + "& > *:not(:last-child)": { + marginRight: theme.spacing(0.75), + }, + }, }, logo: { width: "56px", @@ -58,18 +54,8 @@ const useStyles = makeStyles(theme => ({ })) function Navbar({ className, ...rest }) { - const [anchorEl, setAnchorEl] = useState(null) const classes = useStyles() const handleLinkClick = useSmoothScroll() - const open = Boolean(anchorEl) - - const handleMenuOpen = event => { - setAnchorEl(event.currentTarget) - } - - const handleMenuClose = () => { - setAnchorEl(null) - } return (
-
- - - Start - - - Projekty - - - Kontakt - - - - - - - - - - Start - - - - - Projekty - - - - - Kontakt - - - - +
+ + Start + + + Projekty + + + Kontakt +
diff --git a/src/features/HomePage/components/Technologies/Technologies.js b/src/features/HomePage/components/Technologies/Technologies.js index f61049d..197685d 100644 --- a/src/features/HomePage/components/Technologies/Technologies.js +++ b/src/features/HomePage/components/Technologies/Technologies.js @@ -25,7 +25,7 @@ function AboutMe() { childImageSharp { id fixed(height: 45, quality: 100) { - ...GatsbyImageSharpFixed + ...GatsbyImageSharpFixed_withWebp } } }