diff --git a/src/components/logo.jsx b/src/components/logo.jsx index e051dfb..173ba01 100644 --- a/src/components/logo.jsx +++ b/src/components/logo.jsx @@ -1,15 +1,15 @@ import React from 'react' -import { Link } from 'gatsby' import { useSiteData } from '../hooks/use-site-data' import LogoComponent from '../images/logo.svg' +import Link from '../components/Link' const Logo = () => { const sitedata = useSiteData() return (
- +
diff --git a/src/html.js b/src/html.js index fa20298..64bc1f0 100644 --- a/src/html.js +++ b/src/html.js @@ -7,8 +7,11 @@ import React from 'react' import PropTypes from 'prop-types' +import dayjs from 'dayjs' export default function HTML(props) { + const thisYear = dayjs().get('y') + return ( @@ -22,9 +25,9 @@ export default function HTML(props) { {props.preBodyComponents} + {/*TODO: Show beautiful message here*/}
{
    {footerLinks.map(({ name, link }) => ( -
  • +
  • {name}
  • ))} diff --git a/src/pages/index.jsx b/src/pages/index.jsx index b51aa8d..2651edd 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -40,21 +40,21 @@ const Page = ({ />
    - +

    Projects

    Basement dweller first

    - +

    Photography

    All around the world

    - +

    Writings

    diff --git a/src/pages/photography.jsx b/src/pages/photography.jsx new file mode 100644 index 0000000..c1ba328 --- /dev/null +++ b/src/pages/photography.jsx @@ -0,0 +1,45 @@ +import React, { useEffect, useContext } from 'react' +import { graphql } from 'gatsby' +import { Helmet } from 'react-helmet-async' + +import { isDev } from '../environment' +import SEO from '../components/SEO' +import { History } from '../store' + +const Page = ({ pageContext: { breadcrumb } }) => { + const pageName = 'Photography' + const historyDispatch = useContext(History.Dispatch) + + useEffect(() => { + historyDispatch({ + location: breadcrumb.location, + crumbLabel: pageName, + crumbs: breadcrumb.crumbs, + }) + }) + + if (isDev) { + console.group(pageName) + // console.log(items) + console.log(breadcrumb) + console.groupEnd() + } + + return ( + <> + + + +
    content will come soon
    + + ) +} + +// export const pageQuery = graphql`` + +export default Page diff --git a/src/styles/pages/_index.scss b/src/styles/pages/_index.scss index e19fa25..518dec4 100644 --- a/src/styles/pages/_index.scss +++ b/src/styles/pages/_index.scss @@ -1,5 +1,5 @@ [page='index'] { - footer { + #footer { display: none; } } diff --git a/src/styles/palette.json b/src/styles/palette.json deleted file mode 100644 index 3b20b4f..0000000 --- a/src/styles/palette.json +++ /dev/null @@ -1,51 +0,0 @@ -[ - { - "paletteName": "Marvin", - "swatches": [ - { - "name": "primary", - "color": "1F242E" - }, - { - "name": "10", - "color": "262B36" - }, - { - "name": "09", - "color": "313845" - }, - { - "name": "08", - "color": "474F5E" - }, - { - "name": "07", - "color": "697182" - }, - { - "name": "06", - "color": "929AAB" - }, - { - "name": "05", - "color": "B8BFCE" - }, - { - "name": "04", - "color": "D2D8E4" - }, - { - "name": "03", - "color": "E4E8F0" - }, - { - "name": "02", - "color": "F3F5FA" - }, - { - "name": "01", - "color": "FAFCFF" - } - ] - } -] \ No newline at end of file