File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11import { images } from "@/constants" ;
2+ import Image from "next/image" ;
23
34export const RightCurve = ( ) => (
45 < div className = "pointer-events-none absolute left-full top-1/2 -mt-1 ml-10 hidden w-[10.125rem] xl:block" >
5- < img src = { images . curve2 } width = { 162 } height = { 76 } alt = "Curve 2" />
6+ < Image src = { images . curve2 } width = { 162 } height = { 76 } alt = "Curve 2" />
67 </ div >
78) ;
89
910export const LeftCurve = ( ) => (
1011 < div className = "pointer-events-none absolute right-full top-1/2 -mt-1 mr-10 hidden w-[32.625rem] xl:block" >
11- < img src = { images . curve1 } width = { 522 } height = { 182 } alt = "Curve 1" />
12+ < Image src = { images . curve1 } width = { 522 } height = { 182 } alt = "Curve 1" />
1213 </ div >
1314) ;
Original file line number Diff line number Diff line change 11import { lines } from "@/public/assets/index" ;
2+ import Image from "next/image" ;
23
34export const LeftLine = ( ) => {
45 return (
56 < div className = "pointer-events-none absolute right-full top-1/2 hidden h-[11.0625rem] w-[92.5rem] -translate-y-1/2 lg:block" >
6- < img className = "w-full" src = { lines } width = { 1480 } height = { 177 } alt = "Lines" />
7+ < Image className = "w-full" src = { lines } width = { 1480 } height = { 177 } alt = "Lines" />
78 </ div >
89 ) ;
910} ;
1011
1112export const RightLine = ( ) => {
1213 return (
1314 < div className = "pointer-events-none absolute left-full top-1/2 hidden h-[11.0625rem] w-[92.5rem] -translate-y-1/2 -scale-x-100 lg:block" >
14- < img className = "w-full" src = { lines } width = { 1480 } height = { 177 } alt = "Lines" />
15+ < Image className = "w-full" src = { lines } width = { 1480 } height = { 177 } alt = "Lines" />
1516 </ div >
1617 ) ;
1718} ;
Original file line number Diff line number Diff line change 11import { images } from "@/constants" ;
2+ import Image from "next/image" ;
23
34export const Gradient = ( ) => {
45 return (
56 < div className = "pointer-events-none absolute -left-[30.375rem] top-[18.25rem] w-[56.625rem] opacity-60 mix-blend-color-dodge" >
67 < div className = "absolute left-1/2 top-1/2 size-[58.85rem] -translate-x-3/4 -translate-y-1/2" >
7- < img className = "w-full" src = { images . gradient } width = { 942 } height = { 942 } alt = "Gradient" />
8+ < Image className = "w-full" src = { images . gradient } width = { 942 } height = { 942 } alt = "Gradient" />
89 </ div >
910 </ div >
1011 ) ;
Original file line number Diff line number Diff line change 11import ChatBubbleWing from "@/components/svg/chat-bubble-wing" ;
22import { images } from "@/constants" ;
3+ import Image from "next/image" ;
34
45export const Gradient = ( ) => {
56 return (
67 < div className = "pointer-events-none absolute -left-40 top-0 size-[56.625rem] opacity-50 mix-blend-color-dodge" >
7- < img
8+ < Image
89 className = "absolute left-1/2 top-1/2 h-[88.5625rem] w-[79.5625rem] max-w-[79.5625rem] -translate-x-1/2 -translate-y-1/2"
910 src = { images . gradient }
1011 width = { 1417 }
@@ -29,7 +30,7 @@ export const VideoChatMessage = () => {
2930 < div className = "absolute left-[3.125rem] top-8 w-full max-w-56 rounded-t-xl rounded-br-xl bg-n-6 pb-7 pl-5 pr-2.5 pt-2.5 font-code text-base md:max-w-[17.5rem]" >
3031 Video generated!
3132 < div className = "absolute -bottom-[1.125rem] left-5 flex size-9 items-center justify-center rounded-xl bg-color-1" >
32- < img src = { images . brainwaveWhiteSymbol } width = { 26 } height = { 26 } alt = "Brainwave" />
33+ < Image src = { images . brainwaveWhiteSymbol } width = { 26 } height = { 26 } alt = "Brainwave" />
3334 </ div >
3435 < p className = "tagline absolute bottom-1 right-2.5 text-[0.625rem] uppercase text-n-3" >
3536 just now
@@ -45,7 +46,7 @@ export const VideoChatMessage = () => {
4546export const VideoBar = ( ) => {
4647 return (
4748 < div className = "absolute bottom-0 left-0 flex w-full items-center p-6" >
48- < img src = { images . play } width = { 24 } height = { 24 } alt = "Play" className = "mr-3 object-contain" />
49+ < Image src = { images . play } width = { 24 } height = { 24 } alt = "Play" className = "mr-3 object-contain" />
4950
5051 < div className = "flex-1 bg-[#D9D9D9]" >
5152 < div className = "h-0.5 w-1/2 bg-color-1" > </ div >
You can’t perform that action at this time.
0 commit comments