forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): repo landing page (vercel#122)
Co-authored-by: Thomas Knickman <[email protected]> Co-authored-by: jueungrace <[email protected]> Co-authored-by: Shu Ding <[email protected]>
- Loading branch information
1 parent
beb209a
commit 6c87980
Showing
58 changed files
with
983 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
.../components/pages/pack-home/CTAButton.tsx → ...omponents/pages/home-shared/CTAButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
17 changes: 9 additions & 8 deletions
17
...omponents/pages/pack-home/PackFeature.tsx → ...mponents/pages/home-shared/FeatureBox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { Features } from "../../../content/features"; | ||
import { FadeIn } from "./FadeIn"; | ||
import { SectionHeader, SectionSubtext } from "./Headings"; | ||
import { FeatureBox } from "./FeatureBox"; | ||
|
||
export function FeaturesBento({ header, body, features }: { header: string, body: string, features: Features }) { | ||
return ( | ||
<section className="relative flex flex-col items-center px-6 pb-16 font-sans md:pb-24 lg:pb-32 gap-9 lg:gap-14"> | ||
<FadeIn className="flex flex-col items-center gap-5 md:gap-6"> | ||
<SectionHeader>{header}</SectionHeader> | ||
<SectionSubtext> | ||
{body} | ||
</SectionSubtext> | ||
</FadeIn> | ||
<div className="grid grid-cols-1 gap-x-4 gap-y-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-6 lg:gap-y-6 max-w-[1200px]"> | ||
{features.map((feature) => ( | ||
<FadeIn | ||
className="flex" | ||
key={feature.name.replace(/\s+/g, "-").toLowerCase()} | ||
> | ||
<FeatureBox | ||
name={feature.name} | ||
description={feature.description} | ||
iconDark={feature.iconDark} | ||
iconLight={feature.iconLight} | ||
/> | ||
</FadeIn> | ||
))} | ||
</div> | ||
</section> | ||
); | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...pages/pack-home/GradientSectionBorder.tsx → ...ges/home-shared/GradientSectionBorder.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,8 @@ | ||
import { PACK_HOME_FEATURES } from "../../../content/features"; | ||
import { FadeIn } from "./FadeIn"; | ||
import { SectionHeader, SectionSubtext } from "./Headings"; | ||
import { PackFeature } from "./PackFeature"; | ||
import { FeaturesBento } from "../home-shared/FeaturesBento"; | ||
|
||
export function PackFeatures() { | ||
return ( | ||
<section className="font-sans relative px-6 pb-16 md:pb-24 lg:pb-32 gap-9 lg:gap-14 items-center flex flex-col"> | ||
<FadeIn className="flex flex-col gap-5 md:gap-6 items-center"> | ||
<SectionHeader>Why Turbopack?</SectionHeader> | ||
<SectionSubtext> | ||
With incremental behavior and adaptable bundling strategies, Turbopack | ||
provides a fast and flexible development experience for apps of any | ||
size. | ||
</SectionSubtext> | ||
</FadeIn> | ||
<div className="grid grid-cols-1 gap-x-4 gap-y-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-6 lg:gap-y-6 max-w-[1200px]"> | ||
{PACK_HOME_FEATURES.map((feature) => ( | ||
<FadeIn | ||
className="flex" | ||
key={feature.name.replace(/\s+/g, "-").toLowerCase()} | ||
> | ||
<PackFeature | ||
name={feature.name} | ||
description={feature.description} | ||
iconDark={feature.IconDark} | ||
iconLight={feature.IconLight} | ||
/> | ||
</FadeIn> | ||
))} | ||
</div> | ||
</section> | ||
<FeaturesBento header="Why Turbopack?" body="With incremental behavior and adaptable bundling strategies, Turbopack provides a fast and flexible development experience for apps of any size." features={PACK_HOME_FEATURES} /> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.