Skip to content

Commit 5af8b24

Browse files
committed
fixing the images
1 parent 7daddb2 commit 5af8b24

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/components/Layout/HomeContent.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,11 @@ export function HomeContent() {
509509

510510
<div className="mt-20 px-5 lg:px-0 mb-6 max-w-4xl text-center text-opacity-80">
511511
<div className="uwu-visible flex justify-center">
512-
<Image
512+
<img
513513
alt="logo by @sawaratsuki1004"
514514
title="logo by @sawaratsuki1004"
515515
className="uwu-visible mb-10 lg:mb-8 h-24 lg:h-32"
516516
src="/images/uwu.png"
517-
width={313}
518-
height={160}
519517
/>
520518
</div>
521519
<Logo className="uwu-hidden text-brand dark:text-brand-dark w-24 lg:w-28 mb-10 lg:mb-8 mt-12 h-auto mx-auto self-start" />
@@ -804,12 +802,10 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
804802
className={cn(
805803
'overflow-clip relative before:absolute before:inset-0 before:pointer-events-none before:-translate-x-full group-hover:before:animate-[shimmer_1s_forwards] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent transition-transform ease-in-out duration-300'
806804
)}>
807-
<Image
805+
<img
808806
loading={isLazy ? 'lazy' : 'eager'}
809807
src={src}
810808
alt={alt}
811-
width={800}
812-
height={500}
813809
className="aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
814810
/>
815811
</div>
@@ -1568,7 +1564,7 @@ function Cover({background, children}) {
15681564
<div className="absolute inset-0 px-4 py-2 flex items-end bg-gradient-to-t from-black/40 via-black/0">
15691565
{children}
15701566
</div>
1571-
<Image
1567+
<img
15721568
src={background}
15731569
width={500}
15741570
height={263}
@@ -1645,13 +1641,11 @@ function Thumbnail({video}) {
16451641
<>
16461642
<div className="transition-opacity mt-2.5 -space-x-2 flex flex-row w-full justify-center">
16471643
{image.speakers.map((src, i) => (
1648-
<Image
1644+
<img
16491645
key={i}
16501646
className="h-8 w-8 border-2 shadow-md border-gray-70 object-cover rounded-full"
16511647
src={src}
16521648
alt=""
1653-
width={56}
1654-
height={54}
16551649
/>
16561650
))}
16571651
</div>

src/content/learn/thinking-in-react.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Kuna vijenzi vitano kwenye skrini hii:
5050
<CodeDiagram flip>
5151

5252
<img src="/images/docs/s_thinking-in-react_ui_outline.png" width="500" style={{margin: '0 auto'}} />
53+
5354
1. `FilterableProductTable` (kijivu) ina programu nzima.
5455
2. `SearchBar` (bluu) inapokea ingizo la mtumiaji.
5556
3. `ProductTable` (lavender) huonyesha na kuchuja orodha kulingana na ingizo la mtumiaji.

0 commit comments

Comments
 (0)