Skip to content

Commit

Permalink
use webp on blog/learn/explore
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Mar 6, 2024
1 parent 9ac0692 commit d396758
Show file tree
Hide file tree
Showing 104 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/(pages)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function BlogPostPage({ params }: BlogPostPageProps) {

const ctaData = { ctaTitle, ctaDescription, ctaUrl }

const headerImageUrl = `/images/blog/${slug}.png`
const headerImageUrl = `/images/blog/${slug}.webp`

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion app/(pages)/learn/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function LearnPostPage({ params }: LearnPostPageProps) {
} = learnPost

const ctaData = { ctaTitle, ctaDescription, ctaUrl }
const headerImageUrl = `/images/learn/${slug}.png`
const headerImageUrl = `/images/learn/${slug}.webp`

return (
<>
Expand Down
4 changes: 2 additions & 2 deletions app/components/blog/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const PostCard = ({
const { author, createdAt, postDescription, postTitle, slug } = blogPost
const customImagePath =
type === 'blog'
? `/images/blog/${slug}-small.png`
: `/images/learn/${slug}-small.png`
? `/images/blog/${slug}-small.webp`
: `/images/learn/${slug}-small.webp`
return (
<div
className="col-span-4 sm:col-span-2 lg:col-span-1 border border-th-bkg-3 rounded-xl group relative"
Expand Down
2 changes: 1 addition & 1 deletion app/components/explore/Category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Category = ({
return sortTokens(tokensForCategory)
}, [tokensForCategory])

const backgroundImageUrl = `/images/categories/${slug}.png`
const backgroundImageUrl = `/images/categories/${slug}.webp`

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion app/components/explore/ExploreCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ExploreCategories = ({
<Link href={`/explore/categories/${slug}`}>
<div className="overflow-hidden rounded-t-xl">
<CardImage
customImagePath={`/images/categories/${slug}-small.png`}
customImagePath={`/images/categories/${slug}-small.webp`}
/>
</div>
<div className="px-4 py-3">
Expand Down
4 changes: 2 additions & 2 deletions app/components/explore/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const PageHeader = ({
const imageSrc = backgroundImageUrl
? backgroundImageUrl
: theme === 'Dark'
? '/images/new/cube-bg.png'
: '/images/new/cube-bg-light.png'
? '/images/new/cube-bg.webp'
: '/images/new/cube-bg-light.webp'

useEffect(() => {
setMounted(true)
Expand Down
Binary file removed public/images/blog/depin-is-solving-solana-small.png
Binary file not shown.
Binary file not shown.
Binary file removed public/images/blog/depin-is-solving-solana.png
Binary file not shown.
Binary file added public/images/blog/depin-is-solving-solana.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed public/images/blog/mango-rewards-are-live-small.png
Binary file not shown.
Binary file not shown.
Binary file removed public/images/blog/mango-rewards-are-live.png
Binary file not shown.
Binary file added public/images/blog/mango-rewards-are-live.webp
Binary file not shown.
Binary file removed public/images/blog/meme-coin-mania-small.png
Binary file not shown.
Binary file added public/images/blog/meme-coin-mania-small.webp
Binary file not shown.
Binary file removed public/images/blog/meme-coin-mania.png
Binary file not shown.
Binary file added public/images/blog/meme-coin-mania.webp
Binary file not shown.
Binary file removed public/images/blog/nosana-interview-small.png
Binary file not shown.
Binary file added public/images/blog/nosana-interview-small.webp
Binary file not shown.
Binary file removed public/images/blog/nosana-interview.png
Binary file not shown.
Binary file added public/images/blog/nosana-interview.webp
Binary file not shown.
Binary file removed public/images/blog/when-in-doubt-zoom-out-small.png
Binary file not shown.
Binary file not shown.
Binary file removed public/images/blog/when-in-doubt-zoom-out.png
Binary file not shown.
Binary file added public/images/blog/when-in-doubt-zoom-out.webp
Binary file not shown.
Binary file removed public/images/categories/ai-small.png
Binary file not shown.
Binary file added public/images/categories/ai-small.webp
Binary file not shown.
Binary file removed public/images/categories/ai.png
Binary file not shown.
Binary file added public/images/categories/ai.webp
Binary file not shown.
Binary file removed public/images/categories/amm-small.png
Binary file not shown.
Binary file added public/images/categories/amm-small.webp
Binary file not shown.
Binary file removed public/images/categories/amm.png
Binary file not shown.
Binary file added public/images/categories/amm.webp
Binary file not shown.
Binary file removed public/images/categories/bridged-portal-small.png
Binary file not shown.
Binary file not shown.
Binary file removed public/images/categories/bridged-portal.png
Binary file not shown.
Binary file added public/images/categories/bridged-portal.webp
Binary file not shown.
Binary file removed public/images/categories/defi-small.png
Binary file not shown.
Binary file added public/images/categories/defi-small.webp
Binary file not shown.
Binary file removed public/images/categories/defi.png
Binary file not shown.
Binary file added public/images/categories/defi.webp
Binary file not shown.
Binary file removed public/images/categories/depin-small.png
Binary file not shown.
Binary file added public/images/categories/depin-small.webp
Binary file not shown.
Binary file removed public/images/categories/depin.png
Binary file not shown.
Binary file added public/images/categories/depin.webp
Binary file not shown.
Binary file removed public/images/categories/derivatives-small.png
Binary file not shown.
Binary file added public/images/categories/derivatives-small.webp
Binary file not shown.
Binary file removed public/images/categories/derivatives.png
Binary file not shown.
Binary file added public/images/categories/derivatives.webp
Binary file not shown.
Binary file removed public/images/categories/exchange-small.png
Binary file not shown.
Binary file added public/images/categories/exchange-small.webp
Binary file not shown.
Binary file removed public/images/categories/exchange.png
Diff not rendered.
Binary file added public/images/categories/exchange.webp
Binary file not shown.
Binary file removed public/images/categories/gaming-small.png
Diff not rendered.
Binary file added public/images/categories/gaming-small.webp
Binary file not shown.
Binary file removed public/images/categories/gaming.png
Diff not rendered.
Binary file added public/images/categories/gaming.webp
Binary file not shown.
Binary file removed public/images/categories/governance-small.png
Diff not rendered.
Binary file added public/images/categories/governance-small.webp
Binary file not shown.
Binary file removed public/images/categories/governance.png
Diff not rendered.
Binary file added public/images/categories/governance.webp
Binary file not shown.
Binary file removed public/images/categories/infrastructure-small.png
Diff not rendered.
Binary file not shown.
Binary file removed public/images/categories/infrastructure.png
Diff not rendered.
Binary file added public/images/categories/infrastructure.webp
Binary file not shown.
Binary file removed public/images/categories/layer-1-small.png
Diff not rendered.
Binary file added public/images/categories/layer-1-small.webp
Binary file not shown.
Binary file removed public/images/categories/layer-1.png
Diff not rendered.
Binary file added public/images/categories/layer-1.webp
Binary file not shown.
Binary file removed public/images/categories/liquid-staking-small.png
Diff not rendered.
Binary file not shown.
Binary file removed public/images/categories/liquid-staking.png
Diff not rendered.
Binary file added public/images/categories/liquid-staking.webp
Binary file not shown.
Binary file removed public/images/categories/meme-small.png
Diff not rendered.
Binary file added public/images/categories/meme-small.webp
Binary file not shown.
Binary file removed public/images/categories/meme.png
Diff not rendered.
Binary file added public/images/categories/meme.webp
Binary file not shown.
Binary file removed public/images/categories/payments-small.png
Diff not rendered.
Binary file added public/images/categories/payments-small.webp
Binary file not shown.
Binary file removed public/images/categories/payments.png
Diff not rendered.
Binary file added public/images/categories/payments.webp
Binary file not shown.
Binary file added public/images/categories/placeholder.webp
Binary file not shown.
Binary file removed public/images/categories/stablecoin-small.png
Diff not rendered.
Binary file added public/images/categories/stablecoin-small.webp
Binary file not shown.
Binary file removed public/images/categories/stablecoin.png
Diff not rendered.
Binary file added public/images/categories/stablecoin.webp
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file removed public/images/learn/trade-pre-launch-jup-small.png
Diff not rendered.
Binary file not shown.
Binary file removed public/images/learn/trade-pre-launch-jup.png
Diff not rendered.
Binary file added public/images/learn/trade-pre-launch-jup.webp
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit d396758

Please sign in to comment.