Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: optimization for landing screen #219

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/home/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import Heading from "@theme/Heading"

import LinkButton from "../shared/LinkButton"
import HeroImage from "@site/static/images/home/hero.svg"
import {analyticsHandler} from "@site/src/utils"
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Feature = ({feature}: FeatureProps): JSX.Element => {
<div
className="flex flex-col sm:flex-row p-SPACE_04 sm:p-SPACE_16 shadow-xl rounded-[20px] relative sm:ml-0"
style={{
backgroundImage: `url(${require("@site/static/images/home/grid.jpg").default})`,
backgroundImage: `url(${require("@site/static/images/home/grid.webp").default})`,
boxShadow: "0px 0px 0px 3px var(--ifm-color-brand-light-100)",
}}
>
Expand Down
30 changes: 15 additions & 15 deletions src/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ export const partnerImages: PartnerImage[] = [
{
id: 1,
name: "Digital Ocean",
logo: require("@site/static/icons/companies/digital-ocean.png").default,
logo: require("@site/static/icons/companies/digital-ocean.webp").default,
},
{
id: 2,
name: "Vercel",
logo: require("@site/static/icons/companies/vercel.png").default,
logo: require("@site/static/icons/companies/vercel.webp").default,
},
{
id: 3,
name: "Fastly",
logo: require("@site/static/icons/companies/fastly.png").default,
logo: require("@site/static/icons/companies/fastly.webp").default,
},
{
id: 4,
name: "Cloud Flare",
logo: require("@site/static/icons/companies/cloudflare.png").default,
logo: require("@site/static/icons/companies/cloudflare.webp").default,
},
{
id: 5,
name: "AWS",
logo: require("@site/static/icons/companies/aws.png").default,
logo: require("@site/static/icons/companies/aws.webp").default,
},
{
id: 6,
name: "Google Cloud",
logo: require("@site/static/icons/companies/google-cloud.png").default,
logo: require("@site/static/icons/companies/google-cloud.webp").default,
},
{
id: 7,
name: "Fly",
logo: require("@site/static/icons/companies/fly-io.png").default,
logo: require("@site/static/icons/companies/fly-io.webp").default,
},
]

Expand All @@ -54,7 +54,7 @@ const Highlight = ({text}: {text: string}) => (

export const features: Feature[] = [
{
logo: require("@site/static/images/home/orchestration.png").default,
logo: require("@site/static/images/home/orchestration.webp").default,
title: "Orchestration",
content: (
<>
Expand All @@ -65,7 +65,7 @@ export const features: Feature[] = [
),
},
{
logo: require("@site/static/images/home/governance.png").default,
logo: require("@site/static/images/home/governance.webp").default,
title: "Governance",
content: (
<>
Expand All @@ -78,7 +78,7 @@ export const features: Feature[] = [
),
},
{
logo: require("@site/static/images/home/efficiency.png").default,
logo: require("@site/static/images/home/efficiency.webp").default,
title: "Efficiency",
content: (
<>
Expand All @@ -89,7 +89,7 @@ export const features: Feature[] = [
),
},
// {
// logo: require("@site/static/images/home/resiliency.png").default,
// logo: require("@site/static/images/home/resiliency.webp").default,
// title: "Resiliency",
// content: (
// <>
Expand All @@ -103,7 +103,7 @@ export const features: Feature[] = [
// ),
// },
{
logo: require("@site/static/images/home/extendability.png").default,
logo: require("@site/static/images/home/extendability.webp").default,
title: "Extendability",
content: (
<>
Expand Down Expand Up @@ -212,19 +212,19 @@ export const chooseTailcall: ChooseTailcall[] = [
id: 1,
title: "Top developer experience",
description: "Design your APIs, with syntax highlighting and lint checks within your favourite IDE.",
image: require("@site/static/images/home/dev-experience.png").default,
image: require("@site/static/images/home/dev-experience.webp").default,
},
{
id: 2,
title: "Performance",
description: "Get performance that’s higher than your hand optimized implementation",
image: require("@site/static/images/home/performance.png").default,
image: require("@site/static/images/home/performance.webp").default,
},
{
id: 3,
title: "Scale Fearlessly",
description: "Leverage built-in best practices that guarantee robustness at any scale.",
image: require("@site/static/images/home/scale.png").default,
image: require("@site/static/images/home/scale.webp").default,
},
]

Expand Down
Empty file removed static/.nojekyll
Empty file.
Binary file removed static/icons/companies/aws.png
Binary file not shown.
Binary file added static/icons/companies/aws.webp
Binary file not shown.
Binary file removed static/icons/companies/cloudflare.png
Binary file not shown.
Binary file added static/icons/companies/cloudflare.webp
Binary file not shown.
Binary file removed static/icons/companies/digital-ocean.png
Binary file not shown.
Binary file added static/icons/companies/digital-ocean.webp
Binary file not shown.
Binary file removed static/icons/companies/fastly.png
Binary file not shown.
Binary file added static/icons/companies/fastly.webp
Binary file not shown.
Binary file removed static/icons/companies/fly-io.png
Binary file not shown.
Binary file added static/icons/companies/fly-io.webp
Binary file not shown.
Binary file removed static/icons/companies/google-cloud.png
Binary file not shown.
Binary file added static/icons/companies/google-cloud.webp
Binary file not shown.
Binary file removed static/icons/companies/vercel.png
Binary file not shown.
Binary file added static/icons/companies/vercel.webp
Binary file not shown.
Binary file removed static/images/home/bg-tailcall.jpg
Binary file not shown.
Binary file added static/images/home/bg-tailcall.webp
Binary file not shown.
Binary file removed static/images/home/dev-experience.png
Binary file not shown.
Binary file added static/images/home/dev-experience.webp
Binary file not shown.
Binary file removed static/images/home/efficiency.png
Binary file not shown.
Binary file added static/images/home/efficiency.webp
Binary file not shown.
Binary file removed static/images/home/extendability.png
Binary file not shown.
Binary file added static/images/home/extendability.webp
Binary file not shown.
Binary file removed static/images/home/governance.png
Binary file not shown.
Binary file added static/images/home/governance.webp
Binary file not shown.
Binary file removed static/images/home/grid.jpg
Binary file not shown.
Binary file added static/images/home/grid.webp
Binary file not shown.
Loading
Loading