Skip to content

Commit 032823d

Browse files
committed
Add icons, tweak the medium viewport styles
1 parent 18b5d86 commit 032823d

File tree

6 files changed

+72
-15
lines changed

6 files changed

+72
-15
lines changed
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading

src/components/index-page/five-pillars.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
import { SectionLabel } from "@/app/conf/_design-system/section-label"
22

3-
import CheckIcon from "@/icons/check.svg?svgr"
4-
import GlobeIcon from "@/icons/globe.svg?svgr"
5-
import CodeIcon from "@/icons/code.svg?svgr"
6-
import StarIcon from "@/icons/star.svg?svgr"
7-
import MagnifyingGlassIcon from "@/icons/magnifying-glass.svg?svgr"
3+
import GiftIcon from "@/app/conf/_design-system/pixelarticons/gift.svg?svgr"
4+
import TournamentIcon from "@/app/conf/_design-system/pixelarticons/tournament.svg?svgr"
5+
import ZapIcon from "@/app/conf/_design-system/pixelarticons/zap.svg?svgr"
6+
import BullseyeIcon from "@/app/conf/_design-system/pixelarticons/bullseye.svg?svgr"
7+
import SearchIcon from "@/app/conf/_design-system/pixelarticons/search.svg?svgr"
88

99
const pillars = [
1010
{
11-
icon: CheckIcon,
11+
icon: GiftIcon,
1212
title: "Product-centric",
1313
description:
1414
"GraphQL is unapologetically built for front-end engineers, aligning with their way of thinking, how views are structured and how data is consumed.",
1515
},
1616
{
17-
icon: GlobeIcon,
17+
icon: TournamentIcon,
1818
title: "Hierarchical",
1919
description:
2020
"Most product development involves the creation and manipulation of view hierarchies. GraphQL queries mirror UI structures, ensuring a natural way to request data that matches the shape of the response.",
2121
},
2222
{
23-
icon: CodeIcon,
23+
icon: ZapIcon,
2424
title: "Strong-typing",
2525
description:
2626
"Every GraphQL service defines a type system, enabling tools to syntactically validate queries before execution and ensuring predictable responses.",
2727
},
2828
{
29-
icon: StarIcon,
29+
icon: BullseyeIcon,
3030
title: "Client-specified response",
3131
description:
3232
"A GraphQL service publishes the capabilities that its clients are allowed to consume. It is the client who control the data they receive, requesting only what they need at a field level, unlike traditional fixed endpoints.",
3333
},
3434
{
35-
icon: MagnifyingGlassIcon,
35+
icon: SearchIcon,
3636
title: "Self-documenting",
3737
description:
3838
"GraphQL APIs can describe themselves, allowing tools and clients to query the schema for available types and capabilities. It serves as a powerful platform for building common tools and client software libraries.",
@@ -43,19 +43,19 @@ export function FivePillars() {
4343
return (
4444
<section className="gql-container gql-section xl:py-20">
4545
<SectionLabel className="mb-6">design principles</SectionLabel>
46-
<h2 className="typography-h2 mb-6 max-lg:text-center lg:mb-16">
46+
<h2 className="typography-h2 mb-6 max-sm:text-center lg:mb-16">
4747
Five Pillars of GraphQL
4848
</h2>
4949

5050
<div className="gql-radial-gradient gap-px">
5151
{pillars.map(({ title, icon: Icon, description }, index) => (
5252
<div key={title}>
53-
<div className="flex flex-col items-center gap-2 bg-neu-0 py-6 max-lg:text-center lg:flex-row lg:items-center lg:gap-8 lg:py-8">
54-
<div className="flex items-center max-lg:flex-col lg:w-[520px] lg:shrink-0">
55-
<div className="p-6">
53+
<div className="flex flex-col gap-2 bg-neu-0 py-6 max-sm:text-center lg:flex-row lg:items-center lg:gap-8 lg:py-8">
54+
<div className="flex items-center max-sm:flex-col lg:w-[430px] lg:shrink-0 xl:w-[520px]">
55+
<div className="pr-4 max-sm:p-6 md:max-lg:p-6">
5656
<Icon className="size-6 text-pri-base" />
5757
</div>
58-
<h3 className="typography-h3 lg:flex lg:h-[86px] lg:flex-1 lg:items-center lg:p-4">
58+
<h3 className="typography-h3 sm:items-center lg:flex lg:h-[86px] lg:flex-1 lg:p-4">
5959
{title}
6060
</h3>
6161
</div>

0 commit comments

Comments
 (0)