Skip to content

Commit 3e597ab

Browse files
committed
Align border with end of stripes
1 parent a4f579d commit 3e597ab

File tree

4 files changed

+32
-30
lines changed

4 files changed

+32
-30
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration"
2+
3+
import blurBean from "./learn-blur-bean.webp"
4+
5+
export function LearnHeroStripes() {
6+
return (
7+
<div
8+
role="presentation"
9+
// eslint-disable-next-line tailwindcss/no-contradicting-classname
10+
className="pointer-events-none absolute inset-0 bg-neu-50 [--end-1:#FFF] [--end-2:rgb(255_204_239/.2)] [--start-1:#FFEAF8] [--start-2:hsl(var(--color-sec-lighter))] dark:[--end-1:hsl(var(--color-neu-0))] dark:[--end-2:hsl(var(--color-pri-base)/.1)] dark:[--start-1:hsl(var(--color-neu-100)/.2)] dark:[--start-2:hsl(var(--color-sec-light)/.1)] sm:h-[360px] lg:h-[calc(100%-163px)]"
11+
style={{
12+
maskImage: `url(${blurBean.src})`,
13+
WebkitMaskImage: `url(${blurBean.src})`,
14+
maskSize: "2200px",
15+
WebkitMaskSize: "2200px",
16+
maskPosition: "50% 60%",
17+
WebkitMaskPosition: "50% 60%",
18+
maskRepeat: "no-repeat",
19+
WebkitMaskRepeat: "no-repeat",
20+
}}
21+
>
22+
<StripesDecoration
23+
evenClassName="bg-[linear-gradient(180deg,var(--start-1)_-80%,var(--end-1)_102%)]"
24+
oddClassName="bg-[linear-gradient(180deg,var(--start-2)_-80%,var(--end-2)_102%)]"
25+
/>
26+
</div>
27+
)
28+
}

src/components/learn-aggregator/index.tsx renamed to src/components/learn-aggregator/teaser-section.tsx

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { ReactNode, useState } from "react"
22
import { clsx } from "clsx"
33

4-
import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration"
54
import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr"
65

76
import { Eyebrow } from "@/_design-system/eyebrow"
87

9-
import blurBean from "./learn-blur-bean.webp"
108
import { Button } from "@/app/conf/_design-system/button"
119

1210
export interface TeaserSectionProps
@@ -156,28 +154,3 @@ function TeaserSectionListItem({
156154
</li>
157155
)
158156
}
159-
160-
export function LearnHeroStripes() {
161-
return (
162-
<div
163-
role="presentation"
164-
// eslint-disable-next-line tailwindcss/no-contradicting-classname
165-
className="pointer-events-none absolute inset-0 h-[300px] bg-neu-50 [--end-1:#FFF] [--end-2:rgb(255_204_239/.2)] [--start-1:#FFEAF8] [--start-2:hsl(var(--color-sec-lighter))] dark:[--end-1:hsl(var(--color-neu-0))] dark:[--end-2:hsl(var(--color-pri-base)/.1)] dark:[--start-1:hsl(var(--color-neu-100)/.2)] dark:[--start-2:hsl(var(--color-sec-light)/.1)] sm:h-[360px] lg:h-[480px]"
166-
style={{
167-
maskImage: `url(${blurBean.src})`,
168-
WebkitMaskImage: `url(${blurBean.src})`,
169-
maskSize: "2200px",
170-
WebkitMaskSize: "2200px",
171-
maskPosition: "50% 60%",
172-
WebkitMaskPosition: "50% 60%",
173-
maskRepeat: "no-repeat",
174-
WebkitMaskRepeat: "no-repeat",
175-
}}
176-
>
177-
<StripesDecoration
178-
evenClassName="bg-[linear-gradient(180deg,var(--start-1)_-80%,var(--end-1)_102%)]"
179-
oddClassName="bg-[linear-gradient(180deg,var(--start-2)_-80%,var(--end-2)_102%)]"
180-
/>
181-
</div>
182-
)
183-
}

src/components/toc-hero/toc-hero-contents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function TocHeroContents({
1616
<div
1717
{...rest}
1818
className={clsx(
19-
"mt-2 w-full border border-neu-300 bg-neu-0 dark:border-neu-100 lg:mt-4",
19+
"mt-2 w-full border border-neu-300 bg-neu-0/[.64] backdrop-blur-[6px] dark:border-neu-100 lg:mt-4",
2020
className,
2121
)}
2222
>

src/pages/learn/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ title: Learn
55
import { Button } from '@/app/conf/_design-system/button';
66

77
import { NavbarFixed } from '../../components/navbar/navbar-fixed'
8-
import { TocHero, TocHeroContents } from '../../components/toc-hero';
9-
import { TeaserSection, LearnHeroStripes } from '../../components/learn-aggregator'
8+
import { TocHero, TocHeroContents } from '../../components/toc-hero'
9+
import { TeaserSection } from '../../components/learn-aggregator/teaser-section'
10+
import { LearnHeroStripes } from '../../components/learn-aggregator/learn-hero-stripes'
1011
import { pagesBySection } from '../../components/learn-aggregator/learn-pages'
1112
import { CommonQuestionsSection } from '../../components/learn-aggregator/common-questions'
1213
import { TrainingCoursesSection } from '../../components/learn-aggregator/training-courses'

0 commit comments

Comments
 (0)