File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
import { HTMLAttributes } from "react"
2
- import NextImage from "next/image"
3
2
import { type StaticImageData } from "next/image"
4
3
import { MdChevronRight } from "react-icons/md"
5
4
5
+ import { TwImage } from "@/components/Image"
6
6
import { ButtonLink } from "@/components/ui/buttons/Button"
7
7
8
8
import { cn } from "@/lib/utils/cn"
@@ -33,7 +33,7 @@ const BentoCard = ({
33
33
) }
34
34
>
35
35
< div className = "mb-6 grid place-items-center" >
36
- < NextImage src = { imgSrc } alt = "" width = { imgWidth } height = { imgHeight } />
36
+ < TwImage src = { imgSrc } alt = "" width = { imgWidth } height = { imgHeight } />
37
37
</ div >
38
38
< div >
39
39
< h3 className = "mb-2 text-3xl font-black" > { title } </ h3 >
Original file line number Diff line number Diff line change 1
- import NextImage from "next/image"
2
1
import { useTranslation } from "next-i18next"
3
2
4
3
import type { ClassNameProp , CommonHeroProps } from "@/lib/types"
5
4
5
+ import { TwImage } from "@/components/Image"
6
6
import Morpher from "@/components/Morpher"
7
7
8
8
export type HomeHeroProps = Pick < CommonHeroProps , "heroImg" > & ClassNameProp
9
9
10
10
const HomeHero = ( { heroImg, className } : HomeHeroProps ) => {
11
11
const { t } = useTranslation ( "page-index" )
12
+
12
13
return (
13
14
< div className = { className } >
14
15
< div className = "h-[300px] sm:h-[350px] md:h-[380px] lg:h-[440px]" >
15
- < NextImage
16
+ < TwImage
16
17
src = { heroImg }
17
18
alt = { t ( "page-index:page-index-hero-image-alt" ) }
18
19
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
Original file line number Diff line number Diff line change 1
1
import { Fragment , lazy , Suspense , useState } from "react"
2
2
import type { GetStaticProps , InferGetStaticPropsType } from "next"
3
- import NextImage from "next/image"
4
3
import { useRouter } from "next/router"
5
4
import { useTranslation } from "next-i18next"
6
5
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
@@ -386,7 +385,7 @@ const HomePage = ({
386
385
387
386
< Section >
388
387
< SectionBanner >
389
- < NextImage src = { ActivityImage } alt = "" />
388
+ < TwImage src = { ActivityImage } alt = "" />
390
389
</ SectionBanner >
391
390
392
391
< SectionContent >
@@ -405,7 +404,7 @@ const HomePage = ({
405
404
406
405
< Section className = "md:flex-row-reverse" >
407
406
< SectionBanner >
408
- < NextImage src = { LearnImage } alt = "" />
407
+ < TwImage src = { LearnImage } alt = "" />
409
408
</ SectionBanner >
410
409
411
410
< SectionContent >
@@ -450,7 +449,7 @@ const HomePage = ({
450
449
451
450
< Section >
452
451
< SectionBanner >
453
- < NextImage src = { BuildersImage } alt = "" />
452
+ < TwImage src = { BuildersImage } alt = "" />
454
453
</ SectionBanner >
455
454
456
455
< SectionContent >
@@ -518,7 +517,7 @@ const HomePage = ({
518
517
519
518
< Section className = "md:flex-row-reverse" >
520
519
< SectionBanner >
521
- < NextImage src = { CommunityImage } alt = "" />
520
+ < TwImage src = { CommunityImage } alt = "" />
522
521
</ SectionBanner >
523
522
524
523
< SectionContent >
You can’t perform that action at this time.
0 commit comments