File tree 2 files changed +7
-14
lines changed
2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 1
- import Image from 'next/image' ;
2
-
3
1
export default function Header ( { loading} ) {
4
2
return (
5
3
< div className = "w-full mx-auto h-96 relative bg-darkPurple" >
6
4
< 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
8
6
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"
10
8
alt = "Sentry Changelog"
11
9
height = { 273 }
12
10
width = { 450 }
Original file line number Diff line number Diff line change 1
1
import { ReactNode } from 'react' ;
2
- import Image from 'next/image' ;
3
2
4
3
import Date from './date' ;
5
4
import Tag from './tag' ;
@@ -31,15 +30,11 @@ export default function Article({
31
30
return (
32
31
< article className = { `bg-white rounded-lg shadow-lg mb-8 ${ className } ` } >
33
32
{ 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
+ />
43
38
) }
44
39
< div className = "p-6" >
45
40
< h3 className = "text-3xl text-primary font-semibold mb-2" > { title } </ h3 >
You can’t perform that action at this time.
0 commit comments