Skip to content

Commit 1434ced

Browse files
authored
ref: Don't use Image for rewrite (#9195)
1 parent 0f60ca3 commit 1434ced

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

app/changelog/header.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import Image from 'next/image';
2-
31
export default function Header({loading}) {
42
return (
53
<div className="w-full mx-auto h-96 relative bg-darkPurple">
64
<div className="relative w-full lg:max-w-7xl mx-auto px-4 lg:px-8 pt-8 grid grid-cols-12 items-center">
7-
<Image
5+
<img
86
className={`justify-self-center col-span-10 z-20 hidden lg:block ${loading ? 'animate-fade-in-left' : ''}`}
9-
src="/changelog/assets/hero.png"
7+
src="https://docs.sentry.io/changelog/assets/hero.png"
108
alt="Sentry Changelog"
119
height={273}
1210
width={450}

src/components/changelog/article.tsx

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {ReactNode} from 'react';
2-
import Image from 'next/image';
32

43
import Date from './date';
54
import Tag from './tag';
@@ -31,15 +30,11 @@ export default function Article({
3130
return (
3231
<article className={`bg-white rounded-lg shadow-lg mb-8 ${className}`}>
3332
{image && (
34-
<div className="relative w-full h-64">
35-
<Image
36-
className="object-cover rounded-lg rounded-b-none"
37-
src={image}
38-
fill
39-
alt={title}
40-
sizes="(max-width: 768px) 100vw"
41-
/>
42-
</div>
33+
<img
34+
className="object-cover relative w-full h-64 rounded-lg rounded-b-none"
35+
src={image}
36+
alt={title}
37+
/>
4338
)}
4439
<div className="p-6">
4540
<h3 className="text-3xl text-primary font-semibold mb-2">{title}</h3>

0 commit comments

Comments
 (0)