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

fix(docs): mobile screen, prevent gradient and hero overflow #6849

Merged
Merged
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
3 changes: 1 addition & 2 deletions docs/components/pages/home-shared/Gradient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function Gradient({
return (
<span
className={cn(
"absolute",
"absolute max-w-full rounded-full",
gradients.glow,
{
[gradients.glowPink]: pink,
Expand All @@ -40,7 +40,6 @@ export function Gradient({
width,
height,
opacity,
borderRadius: "100%",
}}
/>
);
Expand Down
30 changes: 14 additions & 16 deletions docs/components/pages/pack-home/PackHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ export function PackHero() {
noVertical
>
<FadeIn className="z-50 flex items-center justify-center w-full">
<div className="absolute min-w-[614px] min-h-[614px]">
<Image
alt="Turbopack"
className="hidden dark:block"
height={614}
src="/images/docs/pack/turbopack-hero-hexagons-dark.svg"
width={614}
/>
<Image
alt="Turbopack"
className="block dark:hidden"
height={614}
src="/images/docs/pack/turbopack-hero-hexagons-light.svg"
width={614}
/>
</div>
<Image
alt="Turbopack"
className="absolute hidden dark:block"
height={614}
src="/images/docs/pack/turbopack-hero-hexagons-dark.svg"
width={614}
/>
<Image
alt="Turbopack"
className="absolute block dark:hidden"
height={614}
src="/images/docs/pack/turbopack-hero-hexagons-light.svg"
width={614}
/>
<div className="absolute z-50 flex items-center justify-center w-64 h-64">
<Gradient
className="dark:opacity-100 opacity-40"
Expand Down
34 changes: 16 additions & 18 deletions docs/components/pages/repo-home/RepoHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,22 @@ export function RepoHero() {
className="font-sans w-auto min-h-[calc(100svh-var(--nextra-navbar-height))] pb-16 pt-[48px] md:pb-24 lg:pb-32 md:pt-16 lg:pt-20 flex justify-between gap-8 items-center flex-col relative z-0"
noVertical
>
<FadeIn className="z-50 flex items-center justify-center w-full ">
<div className="absolute min-w-[614px] min-h-[614px]">
{/* TODO: On dark mode, there should be a "breathing" gradient inside the inner circle */}
<Image
alt="Turborepo"
className="hidden dark:block"
height={614}
src="/images/docs/repo/repo-hero-circles-dark.svg"
width={614}
/>
<Image
alt="Turborepo"
className="block dark:hidden"
height={614}
src="/images/docs/repo/repo-hero-circles-light.svg"
width={614}
/>
</div>
<FadeIn className="z-50 flex items-center justify-center w-full">
{/* TODO: On dark mode, there should be a "breathing" gradient inside the inner circle */}
<Image
alt="Turborepo"
className="absolute hidden dark:block"
height={614}
src="/images/docs/repo/repo-hero-circles-dark.svg"
width={614}
/>
<Image
alt="Turborepo"
className="absolute block dark:hidden"
height={614}
src="/images/docs/repo/repo-hero-circles-light.svg"
width={614}
/>
<div className="absolute z-50 flex items-center justify-center w-64 h-64">
<Gradient
className="dark:opacity-100 opacity-40"
Expand Down
Loading