import React from 'react'; import { graphql, useStaticQuery } from 'gatsby'; import classnames from 'classnames'; import { ROUTE } from '@config/routing'; import smoothScroll from '@utils/smoothScroll'; import { HEADER_ID } from '@features/IndexPage/components/Header/Header'; import { SECTION_ID as PORTFOLIO_SECTION_ID } from '@features/IndexPage/components/Portfolio/Portfolio'; import { SECTION_ID as CONTACT_SECTION_ID } from '@features/IndexPage/components/Contact'; import { makeStyles } from '@material-ui/core/styles'; import { AppBar, Toolbar, Container, Link } from '@material-ui/core'; import { Link as GatsbyLink } from 'gatsby-theme-material-ui'; function Navbar({ className, ...rest }) { const classes = useStyles(); const data = useStaticQuery(graphql` { logo: file(base: { eq: "logo.svg" }) { publicURL } } `); return (
logo
Start Portfolio Contact
); } const useStyles = makeStyles(theme => ({ appBar: { backgroundColor: 'transparent', color: '#fff', boxShadow: 'none', }, linkContainer: { '& > *:not(:last-child)': { marginRight: theme.spacing(2), }, [theme.breakpoints.down('xs')]: { '& > *:not(:last-child)': { marginRight: theme.spacing(1), }, }, }, logo: { width: '56px', height: 'auto', [theme.breakpoints.down('xs')]: { width: '48px', }, }, divider: { flexGrow: 1, }, link: { width: '100%', }, titleContainer: { display: 'flex', alignItems: 'center', '& > *:not(:last-child)': { marginRight: theme.spacing(1), }, }, toolbar: { padding: theme.spacing(2, 0), fontSize: '1.25rem', }, })); export default Navbar;