Skip to content

Commit f0aae11

Browse files
authored
Design QA changes (#2155)
* Remove 1px bottom border * Center testimonials on screens larger than 1840px. * Add border-top to footer * Format
1 parent 7ec308f commit f0aae11

File tree

4 files changed

+86
-3
lines changed

4 files changed

+86
-3
lines changed

src/app/conf/2025/components/testimonials/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ export function TestimonialsList({
7575
return (
7676
<div
7777
className={clsx(
78-
"flex w-full flex-row gap-10 overflow-x-auto px-4 py-6 lg:mt-16 lg:py-16",
78+
"nextra-scrollbar relative flex w-full flex-row gap-10 overflow-x-auto px-4 py-6 [scroll-snap-type:x_mandatory] lg:mt-16 lg:py-16",
7979
className,
8080
)}
8181
>
82+
<div className="scroll-start-x scroll-start-x-[20%] [@media(width<=1840px)]:hidden" />
8283
{testimonials.map((testimonial, i) => (
8384
<div
8485
key={i}

src/components/footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function Footer() {
116116
<footer className="relative !bg-neu-100 text-neu-900 dark:!bg-neu-0 max-md:px-0 max-md:pt-0">
117117
<Stripes />
118118

119-
<div className="mx-auto max-w-[120rem] border-neu-400 dark:border-neu-100 3xl:border-x">
119+
<div className="mx-auto max-w-[120rem] border-neu-400 dark:border-neu-100 3xl:border-x 3xl:dark:border-t">
120120
<div className="flex flex-wrap justify-between gap-4 p-4 max-md:w-full md:p-6 2xl:px-10">
121121
<NextLink href="/" className="nextra-logo flex items-center">
122122
<GraphQLWordmarkLogo className="h-6" title="GraphQL" />

src/components/index-page/use-cases/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ export function UseCases({
139139
id={`graphql-use-case-${i}`}
140140
className={clsx(
141141
"relative h-full flex-1 p-8 lg:p-12 xl:p-16",
142-
selectedIndex === i ? "border-b border-sec-dark" : "hidden",
142+
selectedIndex === i
143+
? "border-sec-dark max-lg:border-b"
144+
: "hidden",
143145
)}
144146
>
145147
<div className="relative z-10 my-auto max-h-[528px] max-w-2xl">

tailwind.config.ts

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const config: Config = {
201201
})
202202
}),
203203
tailwindMediaHover(),
204+
scrollStartPlugin(),
204205
browserPlugin,
205206
],
206207
darkMode: ["class", 'html[class~="dark"]'],
@@ -214,3 +215,82 @@ function tailwindMediaHover() {
214215
addVariant("hover-none", "@media (hover: none)")
215216
})
216217
}
218+
219+
function scrollStartPlugin() {
220+
return plugin(({ addBase, matchUtilities, theme }) => {
221+
addBase({
222+
"@keyframes --scroll-start-snap-y": {
223+
to: { width: "0" },
224+
},
225+
"@keyframes --scroll-start-snap-x": {
226+
to: { height: "0" },
227+
},
228+
})
229+
230+
addBase({
231+
".scroll-start-y": {
232+
position: "absolute",
233+
width: "1px",
234+
top: "var(--scroll-start-y)",
235+
containerType: "size",
236+
visibility: "hidden",
237+
animation: "--scroll-start-snap-y 0.01s both",
238+
},
239+
".scroll-start-y::before": {
240+
content: '""',
241+
height: "1px",
242+
display: "block",
243+
},
244+
"@container (width: 1px)": {
245+
".scroll-start-y::before": {
246+
scrollSnapAlign: "start",
247+
},
248+
},
249+
})
250+
251+
addBase({
252+
".scroll-start-x": {
253+
position: "absolute",
254+
height: "1px",
255+
left: "var(--scroll-start-x)",
256+
containerType: "size",
257+
visibility: "hidden",
258+
animation: "--scroll-start-snap-x 0.01s both",
259+
},
260+
".scroll-start-x::before": {
261+
content: '""',
262+
width: "1px",
263+
display: "block",
264+
},
265+
"@container (height: 1px)": {
266+
".scroll-start-x::before": {
267+
scrollSnapAlign: "start",
268+
},
269+
},
270+
})
271+
272+
matchUtilities(
273+
{
274+
"scroll-start-y": value => ({
275+
"--scroll-start-y": value,
276+
}),
277+
},
278+
{
279+
values: theme("spacing"),
280+
type: ["length", "percentage"],
281+
},
282+
)
283+
284+
matchUtilities(
285+
{
286+
"scroll-start-x": value => ({
287+
"--scroll-start-x": value,
288+
}),
289+
},
290+
{
291+
values: theme("spacing"),
292+
type: ["length", "percentage"],
293+
},
294+
)
295+
})
296+
}

0 commit comments

Comments
 (0)