diff --git a/src/Home.js b/src/Home.js index ce332cc1a..bba4d403c 100644 --- a/src/Home.js +++ b/src/Home.js @@ -1,9 +1,8 @@ import React from 'react'; import { Helmet } from 'react-helmet-async'; +import meImage from './assets/Me.jpeg'; export const Home = () => { - const publicUrl = process.env.PUBLIC_URL || '.'; - return (
@@ -27,9 +26,7 @@ export const Home = () => {
Portrait of Gregory Campbell { return ( @@ -26,9 +27,7 @@ export const Resume = () => {

Written Resume

Resume preview { - const publicUrl = process.env.PUBLIC_URL || '.'; - const webpSources = imgName - ? `${publicUrl}/images/${imgName}-320.webp 320w, ${publicUrl}/images/${imgName}-640.webp 640w, ${publicUrl}/images/${imgName}-1024.webp 1024w` - : null; - - const srcFallback = imgName ? `${publicUrl}/images/${imgName}-640.webp` : imgSrc; +export const ProjectCard = ({ title, description, imgSrc, imgAlt, link, children }) => { return (

{link ? {title} : title}

{description}

- {srcFallback && ( + {imgSrc && (