fix case study links. update blog thumb

This commit is contained in:
Jonathan Summers-Muir committed 2021-11-05 09:48:42 +08:00
1 parent f5bdc00d24
commit d7e9531ca1
7 files changed
+16 -10

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+15 -9
View File
@@ -3,6 +3,8 @@ import authors from 'lib/authors.json'
import Link from 'next/link'
import React from 'react'
import { capitalize } from '~/lib/helpers'
import Image from 'next/image'
import PostTypes from '~/types/post'
interface Props {
@@ -19,15 +21,19 @@ const BlogListItem = ({ blog }: Props) => {
<a href={`/blog/${blog.url}`}>
<div className="inline-block">
<div className="flex flex-col space-y-3">
<img
src={
!blog.thumb
? `https://images.unsplash.com/photo-1569982175971-d92b01cf8694?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1`
: `/images/blog/${blog.thumb}`
}
style={{ minHeight: '220px', maxHeight: '220px', minWidth: '100%' }}
className="w-full object-cover border dark:border-dark rounded-sm shadow-sm"
/>
<div
className={`relative overflow-auto w-full h-40 border dark:border-dark rounded-sm shadow-sm`}
>
<Image
layout="fill"
src={
!blog.thumb
? `https://images.unsplash.com/photo-1569982175971-d92b01cf8694?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1`
: `/images/blog/${blog.thumb}`
}
objectFit="cover"
/>
</div>
<div>
<div className="space-x-3">
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = withMDX({
trailingSlash: false,
images: {
domains: ['github.com', 'ca.slack-edge.com', 'res.cloudinary.com'],
domains: ['github.com', 'ca.slack-edge.com', 'res.cloudinary.com', 'images.unsplash.com'],
},
async headers() {
return [