Skip to content

Commit cb5a75d

Browse files
committed
Remove paddings on narrow mobiles
1 parent 65a6499 commit cb5a75d

File tree

6 files changed

+5
-101
lines changed

6 files changed

+5
-101
lines changed

src/components/index-page/graphql-advantages/consistency.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function ConsistencyFigure() {
4949
return (
5050
<section
5151
id="type-system"
52-
className="nextra-codeblocks flex w-full bg-gradient-to-b from-transparent to-sec-lighter px-[14px] py-[30px] dark:to-sec-darker/25 xl:px-[46px] [&_pre]:!h-[420px]"
52+
className="nextra-codeblocks flex w-full bg-gradient-to-b from-transparent to-sec-lighter px-[14px] py-[30px] dark:to-sec-darker/25 max-[360px]:px-0 xl:px-[46px] max-[360px]:[&_:is(.rounded-t-md,pre)]:rounded-none [&_pre]:!h-[370px] md:[&_pre]:!h-[420px]"
5353
>
5454
<div
5555
className="nextra-codeblocks grid w-full grid-cols-2 [&_.highlighted]:!bg-pri-lighter/50 dark:[&_.highlighted]:!bg-neu-200/10"

src/components/index-page/graphql-advantages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { VersionlessFigure } from "./versionless"
1111

1212
export function GraphQLAdvantages() {
1313
return (
14-
<section className="bg-neu-50 dark:bg-neu-50/25">
15-
<div className="gql-container gql-section">
14+
<section className="overflow-x-hidden bg-neu-50 dark:bg-neu-50/25">
15+
<div className="gql-container gql-section lg:py-16">
1616
<SectionLabel>GraphQL advantages</SectionLabel>
1717
<div className="mt-8 flex flex-col gap-y-10 lg:gap-y-16 xl:gap-y-24">
1818
<Subsection

src/components/index-page/graphql-advantages/precision.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function PrecisionFigure() {
9393
<div
9494
ref={ref}
9595
id="predictable-results"
96-
className="nextra-codeblocks flex w-full bg-gradient-to-b from-transparent to-sec-lighter px-[14px] py-[30px] *:w-1/2 dark:to-sec-darker/25 xl:px-[46px] [&_pre]:!h-48"
96+
className="nextra-codeblocks flex w-full max-w-[100vw] bg-gradient-to-b from-transparent to-sec-lighter px-[14px] py-[30px] *:w-1/2 dark:to-sec-darker/25 max-[360px]:px-0 xl:px-[46px] max-[360px]:[&_:is(.rounded-t-md,pre)]:rounded-none [&_pre]:!h-48"
9797
aria-hidden
9898
>
9999
<Pre data-filename="Query" className="p-4">

src/components/index-page/graphql-advantages/versionless.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function VersionlessFigure() {
3232

3333
return (
3434
<section
35-
className="flex w-full bg-gradient-to-b from-pri-lighter/[.05] to-pri-lighter/40 px-[14px] py-[30px] dark:from-sec-darker/[.01] dark:to-pri-light/10 xl:px-[46px]"
35+
className="flex w-full max-w-[100vw] bg-gradient-to-b from-pri-lighter/[.05] to-pri-lighter/40 px-[14px] py-[30px] dark:from-sec-darker/[.01] dark:to-pri-light/10 max-[360px]:px-0 xl:px-[46px] max-[360px]:[&_div]:rounded-none"
3636
id="without-versions"
3737
>
3838
<div

src/components/index-page/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Hero } from "./hero"
22
import { TrustedBy } from "./trusted-by"
33
import { SingleRequest } from "./single-request"
44
import { BringYourOwnCode } from "./bring-your-own-code"
5-
import { WhoIsUsing } from "./who-is-using"
65
import { HowItWorks } from "./how-it-works"
76
import { ProvenSolution } from "./proven-solution"
87
import { FivePillars } from "./five-pillars"
@@ -31,7 +30,6 @@ export function IndexPage() {
3130
</section>
3231
<SingleRequest />
3332
<BringYourOwnCode />
34-
<WhoIsUsing />
3533
</div>
3634
)
3735
}

src/components/index-page/who-is-using.tsx

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)