-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grouped and multiple inputs. Scrollable edit form.
- Loading branch information
1 parent
133c58f
commit 504bba2
Showing
14 changed files
with
390 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
import Link from "next/link"; | ||
|
||
type HeroProps = { | ||
title: string; | ||
link: { | ||
label: string; | ||
href: string; | ||
}[]; | ||
}; | ||
|
||
export const Hero = (props: HeroProps) => { | ||
return ( | ||
<div className="flex items-center justify-center min-h-[350px] relative"> | ||
<div className="flex flex-col gap-6 items-center justify-center min-h-[350px] relative"> | ||
<h1 className="text-3xl font-bold text-center">{props.title}</h1> | ||
{(props.link || []).map((link) => ( | ||
<Link href={link.href} key={link.href}> | ||
{link.label} | ||
</Link> | ||
))} | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.