Replace assests using webp intead of png

This commit is contained in:
Faisal Amir 2024-03-14 20:20:15 +07:00
parent cfde9f886a
commit 199f1f4db4
30 changed files with 31 additions and 31 deletions

View File

@ -93,20 +93,20 @@ const Testimonial = () => {
{firstColumn.map((item, i) => {
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
<div key={i} className="tweet-wrapper">
<Tweet id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
<div key={i}>
<iframe
width="100%"
height="260"
src={`https://www.youtube.com/embed/${item.id}`}
title="Install Jan to Run LLM Offline and Local First"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
allowFullScreen
className="rounded-xl"
loading="lazy"
/>
@ -118,20 +118,20 @@ const Testimonial = () => {
{secondColumn.map((item, i) => {
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
<div key={i} className="tweet-wrapper">
<Tweet id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
<div key={i}>
<iframe
width="100%"
height="260"
src={`https://www.youtube.com/embed/${item.id}`}
title="Install Jan to Run LLM Offline and Local First"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
allowFullScreen
className="rounded-xl"
loading="lazy"
/>
@ -143,20 +143,20 @@ const Testimonial = () => {
{thirdColumn.map((item, i) => {
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
<div key={i} className="tweet-wrapper">
<Tweet id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
<div key={i}>
<iframe
width="100%"
height="260"
src={`https://www.youtube.com/embed/${item.id}`}
title="Install Jan to Run LLM Offline and Local First"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
allowFullScreen
className="rounded-xl"
loading="lazy"
/>
@ -168,20 +168,20 @@ const Testimonial = () => {
{fourthColumn.map((item, i) => {
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
<div key={i} className="tweet-wrapper">
<Tweet id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
<div key={i}>
<iframe
width="100%"
height="260"
src={`https://www.youtube.com/embed/${item.id}`}
title="Install Jan to Run LLM Offline and Local First"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
allowFullScreen
className="rounded-xl"
loading="lazy"
/>

View File

@ -186,8 +186,8 @@ export default function Home() {
className="object-cover w-full object-center mx-auto h-full lg:-left-4 relative"
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/app-frame-light.png'),
dark: useBaseUrl('/img/homepage/app-frame-dark.png'),
light: useBaseUrl('/img/homepage/app-frame-light.webp'),
dark: useBaseUrl('/img/homepage/app-frame-dark.webp'),
}}
/>
</div>
@ -338,8 +338,8 @@ export default function Home() {
<ThemedImage
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/features01.png'),
dark: useBaseUrl('/img/homepage/features01dark.png'),
light: useBaseUrl('/img/homepage/features01.webp'),
dark: useBaseUrl('/img/homepage/features01dark.webp'),
}}
/>
)}
@ -347,8 +347,8 @@ export default function Home() {
<ThemedImage
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/features02.png'),
dark: useBaseUrl('/img/homepage/features02dark.png'),
light: useBaseUrl('/img/homepage/features02.webp'),
dark: useBaseUrl('/img/homepage/features02dark.webp'),
}}
/>
)}
@ -356,8 +356,8 @@ export default function Home() {
<ThemedImage
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/features03.png'),
dark: useBaseUrl('/img/homepage/features03dark.png'),
light: useBaseUrl('/img/homepage/features03.webp'),
dark: useBaseUrl('/img/homepage/features03dark.webp'),
}}
/>
)}
@ -365,8 +365,8 @@ export default function Home() {
<ThemedImage
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/features04.png'),
dark: useBaseUrl('/img/homepage/features04dark.png'),
light: useBaseUrl('/img/homepage/features04.webp'),
dark: useBaseUrl('/img/homepage/features04dark.webp'),
}}
/>
)}
@ -649,8 +649,8 @@ export default function Home() {
className="w-28 mx-auto h-auto"
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/mac-system-black.png'),
dark: useBaseUrl('/img/homepage/mac-system-white.png'),
light: useBaseUrl('/img/homepage/mac-system-black.webp'),
dark: useBaseUrl('/img/homepage/mac-system-white.webp'),
}}
/>
<h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">
@ -718,8 +718,8 @@ export default function Home() {
className="w-full mx-auto h-auto"
alt="App screenshots"
sources={{
light: useBaseUrl('/img/homepage/mapbase-light.png'),
dark: useBaseUrl('/img/homepage/mapbase.png'),
light: useBaseUrl('/img/homepage/mapbase-light.webp'),
dark: useBaseUrl('/img/homepage/mapbase.webp'),
}}
/>
</div>

View File

@ -160,7 +160,7 @@
[class*='actions_'] {
display: none !important;
}
[class*='.authorFollow_'] {
[class*='authorFollow_'] {
display: none !important;
}
[class*='replies_'] {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 KiB

BIN
docs/static/img/homepage/features01.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 704 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

BIN
docs/static/img/homepage/features02.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
docs/static/img/homepage/features03.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 410 KiB

BIN
docs/static/img/homepage/features04.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

BIN
docs/static/img/homepage/mapbase.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB