Skip to content

Commit f26e8ef

Browse files
committed
refactor: enhance layout and styling of Hero component with selection card class
1 parent afa9479 commit f26e8ef

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

components/Hero.tsx

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const featureHighlights = [
3333

3434
const stackQuestion = (stacksData as DataQuestionSource[])[0]
3535
const stackAnswers = stackQuestion?.answers ?? []
36+
const selectionCardClass =
37+
"rounded-3xl border border-border/70 bg-background/95 p-6 shadow-sm text-left"
3638

3739
export function Hero() {
3840
const router = useRouter()
@@ -98,15 +100,15 @@ export function Hero() {
98100

99101

100102

101-
<motion.div
102-
className="mx-auto w-full max-w-4xl text-left"
103-
variants={itemVariants}
104-
>
105-
<div className="flex flex-col gap-6 lg:flex-row lg:items-start">
106-
<div className="flex-1 space-y-4">
107-
<h2 className="text-lg font-semibold uppercase tracking-wide text-muted-foreground">
103+
<motion.div className="mx-auto w-full max-w-4xl text-left" variants={itemVariants}>
104+
<div className="grid gap-5 lg:grid-cols-[1fr_auto_1fr] lg:items-stretch">
105+
<div className={`${selectionCardClass} flex flex-col gap-4`}>
106+
<p className="text-sm font-semibold uppercase tracking-wide text-muted-foreground">
108107
Start fast with popular stacks
109-
</h2>
108+
</p>
109+
<p className="text-sm text-muted-foreground">
110+
Pick a curated quickstart and we&apos;ll pre-fill the wizard with stack defaults.
111+
</p>
110112
<div className="flex flex-wrap gap-3">
111113
{popularStacks.map((stack) => {
112114
const descriptor = getIconDescriptor(stack.icon ?? stack.value)
@@ -163,10 +165,17 @@ export function Hero() {
163165
</div>
164166
</div>
165167

166-
<form
167-
onSubmit={handleGithubSubmit}
168-
className="flex flex-1 flex-col gap-3 rounded-3xl border border-border/70 bg-background/95 p-6 shadow-sm"
169-
>
168+
<div className="flex items-center justify-center">
169+
<span className="sr-only">Choose one entry point</span>
170+
<span
171+
aria-hidden
172+
className="text-xs font-semibold uppercase tracking-[0.6em] text-muted-foreground"
173+
>
174+
OR
175+
</span>
176+
</div>
177+
178+
<form onSubmit={handleGithubSubmit} className={`${selectionCardClass} flex flex-col gap-4`}>
170179
<div className="space-y-2 text-left">
171180
<p className="text-sm font-semibold uppercase tracking-wide text-muted-foreground">
172181
Scan a GitHub repository

0 commit comments

Comments
 (0)