Skip to content

Commit ef43623

Browse files
committed
feat(docs): add Star icon and enhance HeroBannerSection with badge support on product features page
1 parent 9795287 commit ef43623

4 files changed

Lines changed: 58 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Loading

apps/docs/src/components/HeroBannerSection/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import { H1 } from '../Typography';
1010
interface HeroBannerSectionProps {
1111
heading?: ReactNode;
1212
description: ReactNode | ReactNode[];
13+
badge?: {
14+
text: string;
15+
icon?: ReactNode;
16+
};
1317
cliCommand?: string;
1418
mainLink?: {
1519
text: string;
@@ -42,6 +46,7 @@ interface HeroBannerSectionProps {
4246
export function HeroBannerSection({
4347
heading,
4448
description,
49+
badge,
4550
cliCommand,
4651
mainLink,
4752
secondaryLink,
@@ -61,6 +66,16 @@ export function HeroBannerSection({
6166
<div className="relative min-h-[calc(100vh-64px)] flex items-center">
6267
<div className={clsx('container grid items-center', heroImage ? 'md:grid-cols-2' : 'text-center')}>
6368
<div className={clsx(heroImage ? 'lg:w-[515px]' : 'lg:w-[842px] m-auto')}>
69+
{badge && (
70+
<div className="flex justify-center mb-12">
71+
<div className="bg-white/10 border border-white rounded-full px-4 py-2 h-10 flex items-center justify-center gap-2">
72+
{badge.icon && (
73+
<span className="w-6 h-6 flex items-center justify-center">{badge.icon}</span>
74+
)}
75+
<span className="text-white text-sm font-medium leading-[1.3]">{badge.text}</span>
76+
</div>
77+
</div>
78+
)}
6479
{heading && <H1 className="mt-12 md:mt-0">{heading}</H1>}
6580

6681
{Array.isArray(description) ? (

apps/docs/src/components/HomepageFeaturesSection/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function HomepageFeaturesSection() {
7474
</H2>
7575

7676
<div className="w-full flex flex-col md:flex-row rounded-[20px] overflow-hidden">
77-
<div className="flex-1 bg-[rgba(255,255,255,0.1)] p-10 rounded-t-[20px] md:rounded-tl-[20px] md:rounded-bl-[20px] md:rounded-tr-none md:rounded-br-none">
77+
<div className="flex-1 bg-white/10 p-10 rounded-t-[20px] md:rounded-tl-[20px] md:rounded-bl-[20px] md:rounded-tr-none md:rounded-br-none">
7878
<div className="flex flex-col gap-6">
7979
<H3 className="mb-0!">For Developers</H3>
8080
<ul className="flex flex-col gap-2 list-none p-0! m-0!">
Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,47 @@
11
import React from 'react';
22

3+
import StarIcon from '@site/src/assets/icons/Star.svg';
4+
import { HeroBannerSection } from '@site/src/components/HeroBannerSection';
5+
import { Body } from '@site/src/components/Typography';
6+
37
import Layout from '@theme/Layout';
48

59
import styles from './product.module.scss';
610

711
export default function ProductFeatures() {
8-
return <Layout title="Features">features page here</Layout>;
12+
return (
13+
<Layout title="Features">
14+
<div className={styles.linearGradient}>
15+
<div style={{ overflow: 'hidden' }}>
16+
<div className={styles.gradientWrapper}>
17+
<div className={styles.gradientCircleGreen} />
18+
<div className={styles.gradientCircleBlue} />
19+
<main className={styles.mainContentWrapper}>
20+
<HeroBannerSection
21+
badge={{
22+
text: 'Product Features',
23+
icon: <StarIcon className="*:stroke-white" />,
24+
}}
25+
heading={
26+
<>
27+
Explore what <span className="text-highlighted">Open Self Service</span> offers
28+
</>
29+
}
30+
description={
31+
<Body>
32+
Here's a breakdown of what the framework enables — both for business outcomes
33+
and developer experience.
34+
</Body>
35+
}
36+
/>
37+
<div>KEY BENEFITS here</div>
38+
<div>TECHNICAL CAPABILITIES BY COMPONENT here</div>
39+
<div>FUNCTIONAL BLOCKS here</div>
40+
<div>Footer section here</div>
41+
</main>
42+
</div>
43+
</div>
44+
</div>
45+
</Layout>
46+
);
947
}

0 commit comments

Comments
 (0)