Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions docusaurus/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ const FeatureList: FeatureItem[] = [
},
];

function Feature({title, icon, description}: FeatureItem) {
function Feature({title, icon, description, index}: FeatureItem & {index: number}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center padding-horiz--md">
<div className={clsx('col col--4')} style={{marginBottom: '2rem'}}>
<div
className={styles.featureCard}
style={{'--animation-order': index} as React.CSSProperties}
>
<div className={styles.featureIcon}>{icon}</div>
<Heading as="h3">{title}</Heading>
<p>{description}</p>
<Heading as="h3" className={styles.featureTitle}>{title}</Heading>
<p className={styles.featureDescription}>{description}</p>
</div>
</div>
);
Expand All @@ -88,15 +91,15 @@ export default function HomepageFeatures(): ReactNode {
return (
<section className={styles.features}>
<div className="container">
<div className="text--center margin-bottom--xl">
<Heading as="h2">Why Reqon?</Heading>
<p className="hero__subtitle">
<div className="text--center margin-bottom--lg">
<Heading as="h2" className={styles.sectionTitle}>Why Reqon?</Heading>
<p className={styles.sectionSubtitle}>
Stop writing boilerplate. Start building data pipelines.
</p>
</div>
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
<Feature key={idx} index={idx} {...props} />
))}
</div>
</div>
Expand Down
104 changes: 100 additions & 4 deletions docusaurus/src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,108 @@
.features {
display: flex;
align-items: center;
padding: 4rem 0;
padding: 5rem 0 6rem;
width: 100%;
background-color: var(--ifm-background-surface-color);
background: linear-gradient(180deg, var(--ifm-background-surface-color) 0%, var(--ifm-background-color) 100%);
position: relative;
}

.features::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--reqon-border-color), transparent);
}

.sectionTitle {
font-size: 2.25rem;
font-weight: 800;
margin-bottom: 0.75rem;
background: linear-gradient(135deg, var(--ifm-color-primary-dark), var(--reqon-gradient-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.sectionSubtitle {
font-size: 1.2rem;
color: var(--ifm-color-emphasis-700);
max-width: 500px;
margin: 0 auto 3rem;
}

.featureCard {
background: var(--reqon-surface-1);
border-radius: 16px;
padding: 2rem;
border: 1px solid var(--reqon-border-color);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
height: 100%;
position: relative;
overflow: hidden;
}

.featureCard::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--reqon-gradient-start), var(--reqon-gradient-end));
opacity: 0;
transition: opacity 0.3s ease;
}

.featureCard:hover {
transform: translateY(-8px);
box-shadow: var(--reqon-shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
border-color: var(--ifm-color-primary-lighter);
}

.featureCard:hover::before {
opacity: 1;
}

.featureIcon {
font-size: 3rem;
margin-bottom: 1rem;
font-size: 2.75rem;
margin-bottom: 1.25rem;
display: inline-block;
animation: float 3s ease-in-out infinite;
animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-6px);
}
}

.featureTitle {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.75rem;
color: var(--ifm-heading-color);
}

.featureDescription {
color: var(--ifm-color-emphasis-700);
line-height: 1.65;
font-size: 0.95rem;
}

@media screen and (max-width: 996px) {
.features {
padding: 3rem 0 4rem;
}

.featureCard {
margin-bottom: 1.5rem;
}
}
Loading
Loading