Skip to content

Commit

Permalink
fix(homepage): changed LandingPage component clipping title (#5937)
Browse files Browse the repository at this point in the history
Fixed clipping title on landing page

Switched out "mb-4" with "pd-4" as the "bg-clip-text" was cutting out
the lower half of letters of the main title when the screen width was in
the range of 1000-1200px ish
  • Loading branch information
Firgrep committed Sep 12, 2023
1 parent 6d8cfca commit 3f7551c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/pages/landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function LandingPage() {
<main className="relative flex flex-col items-center justify-center w-full h-full overflow-hidden [--geist-foreground:#fff] dark:[--geist-foreground:#000] [--gradient-stop-1:0px] [--gradient-stop-2:120px] sm:[--gradient-stop-1:0px] sm:[--gradient-stop-2:120px]">
<Background />
<FadeIn className="z-10 flex flex-col items-center justify-center w-full h-full">
<h1 className="mt-12 lg:!mt-20 mx-6 w-[300px] md:!w-full font-extrabold text-5xl lg:text-6xl leading-tight xl:leading-snug text-center mb-4 bg-clip-text text-transparent bg-gradient-to-b from-black/80 to-black dark:from-white dark:to-[#AAAAAA]">
<h1 className="mt-12 lg:!mt-20 mx-6 w-[300px] md:!w-full font-extrabold text-5xl lg:text-6xl leading-tight xl:leading-snug text-center pb-4 bg-clip-text text-transparent bg-gradient-to-b from-black/80 to-black dark:from-white dark:to-[#AAAAAA]">
Make Ship Happen
</h1>
<p className="mx-6 text-xl max-h-[112px] md:max-h-[96px] w-[315px] md:w-[660px] md:text-2xl font-space-grotesk text-center text-[#666666] dark:text-[#888888]">
Expand Down

1 comment on commit 3f7551c

@vercel
Copy link

@vercel vercel bot commented on 3f7551c Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.