Skip to content

Instantly share code, notes, and snippets.

View treyhuffine's full-sized avatar

Trey Huffine treyhuffine

View GitHub Profile
import React from 'react'
import { User32, Code32, Portfolio32, Education32 } from '@carbon/icons-react'
import { Container, Spacer, NavWrapper, NavButton, NavLink } from './styles'
const MobileNav = () => {
return (
<Container>
<Spacer />
<NavWrapper>
import styled from 'styled-components';
import { Link } from 'react-router-dom';
import Button from 'carbon-components-react/lib/components/Button';
export const Container = styled.div`
display: none;
@media (max-width: 640px) {
display: block;
}
import MobileNav from './MobileNav'
export default MobileNav
import React from 'react';
import Sidebar from '../Sidebar';
import UserHeader from '../UserHeader';
import MobileNav from '../MobileNav';
import { StyledContent } from './styles';
const Layout = ({ user, children }) => {
return (
<>
import styled from 'styled-components'
import { Content } from 'carbon-components-react/lib/components/UIShell'
export const StyledContent = styled(Content)`
min-height: 100vh;
@media (max-width: 640px) {
margin-left: 0 !important;
}
`
import Layout from './Layout'
export default Layout
import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import { SideNavItems, SideNavLink } from 'carbon-components-react/lib/components/UIShell';
import { StyledSideNav } from './styles';
const items = [
{ name: 'Me', path: '/' },
{ name: 'Projects', path: '/projects' },
{ name: 'Work', path: '/work' },
import styled from 'styled-components'
import { SideNav } from 'carbon-components-react/lib/components/UIShell'
export const StyledSideNav = styled(SideNav)`
@media (max-width: 640px) {
display: none;
}
`
import Sidebar from "./Sidebar"
export default Sidebar
import React from 'react';
import { useLocation } from 'react-router-dom';
import { ArrowRight16 } from '@carbon/icons-react';
import { HeaderContainer, Header, Image, ViewResumeLink } from './styles';
const UserHeader = ({ user }) => {
const location = useLocation();
return (