diff options
| author | 2023-04-22 19:52:26 +0800 | |
|---|---|---|
| committer | 2023-04-22 19:52:26 +0800 | |
| commit | 4838df315931bb883f704ec3e1abe2685f296cdf (patch) | |
| tree | 57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/pages/home-shared/FeatureBox.tsx | |
| parent | db74ade0234a40c2120ad5f2a41bee50ce13de02 (diff) | |
| download | HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip | |
😀
Diffstat (limited to 'docs/components/pages/home-shared/FeatureBox.tsx')
| -rw-r--r-- | docs/components/pages/home-shared/FeatureBox.tsx | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/components/pages/home-shared/FeatureBox.tsx b/docs/components/pages/home-shared/FeatureBox.tsx new file mode 100644 index 0000000..c9d46c1 --- /dev/null +++ b/docs/components/pages/home-shared/FeatureBox.tsx @@ -0,0 +1,42 @@ +import Image from "next/image"; +import type { ReactNode } from "react"; + +export function FeatureBox({ + name, + description, + iconDark, + iconLight, +}: { + iconDark: Parameters<typeof Image>[0]["src"]; + iconLight: Parameters<typeof Image>[0]["src"]; + name: string; + description: ReactNode; +}) { + return ( + <div className="box-border relative flex flex-col gap-5 p-8 overflow-hidden text-black no-underline border dark:text-white rounded-xl dark:border-neutral-800"> + <Image + src={iconDark} + width={64} + height={64} + aria-hidden="true" + alt="" + className="hidden dark:block" + /> + <Image + src={iconLight} + width={64} + height={64} + aria-hidden="true" + alt="" + className="block dark:hidden" + /> + <div className="flex flex-col gap-2"> + <h3 className="m-0 font-bold leading-5 text-gray-900 font-space-grotesk dark:text-white"> + {name} + </h3> + + <p className="m-0 leading-6 opacity-70">{description}</p> + </div> + </div> + ); +} |
