Skip to content

Commit

Permalink
refactor:next config
Browse files Browse the repository at this point in the history
  • Loading branch information
ademsuslu committed Dec 5, 2024
1 parent cd6a631 commit 822ce8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/shared/blog/blog-items.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Image from 'next/image';
import Link from 'next/link';
import React from 'react'
import { BsCalendarPlus } from "react-icons/bs";
Expand All @@ -19,7 +20,9 @@ const BlogItems: React.FC<Props> = ({ data }) => {
return (
<Link className='border border-white shadow-sm rounded-md p-1' href={`blog/${data.title}`}>
<div className="aspect-[800/600] overflow-hidden rounded-md ">
<img src={data.img} alt={data.title} loading="lazy" width="800" height="600" decoding="async" data-nimg="1" />
<div className=''>
<Image src={data.img} alt={data.title} loading="lazy" width={800} height={600} decoding="async" data-nimg="1" />
</div>
</div>
<h2 className="mt-1 line-clamp-2 text-balance font-medium capitalize leading-tight">{data.title}</h2>
<p className="mt-1 flex items-center text-xs leading-none text-muted-foreground">
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const nextConfig = {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.pexels.com"',
hostname: 'images.pexels.com',
},
],
},
Expand Down

0 comments on commit 822ce8a

Please sign in to comment.