refactor: use image component

This commit is contained in:
Timothy Lin 2021-06-25 11:02:33 +08:00
parent cbaade5c7e
commit 0f844ff636
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import Image from 'next/image'
import Link from '@/components/Link'
import Image from './Image'
import Link from './Link'
const Card = ({ title, description, imgSrc, href }) => (
<div className="p-4 md:w-1/2 md" style={{ maxWidth: '544px' }}>

View File

@ -1,6 +1,6 @@
import Image from 'next/image'
import siteMetadata from '@/data/siteMetadata'
import projectsData from '@/data/projectsData'
import Image from '@/components/Image'
import Link from '@/components/Link'
import Card from '@/components/Card'
import { PageSeo } from '@/components/SEO'