From ad1e2d3f636a93cb8e7f39ee9caf866bdc7766b4 Mon Sep 17 00:00:00 2001 From: Sanidhya Kumar Verma Date: Sat, 21 Sep 2024 16:58:10 +0000 Subject: [PATCH] hero section implemented --- src/App.tsx | 3 ++ src/components/Button.tsx | 70 +++++++++++++++++++++++++++++++++++++++ src/components/Marker.tsx | 22 ++++++++++++ src/sections/Header.tsx | 8 +++-- src/sections/Hero.tsx | 39 ++++++++++++++++++++++ 5 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 src/components/Button.tsx create mode 100644 src/components/Marker.tsx create mode 100644 src/sections/Hero.tsx diff --git a/src/App.tsx b/src/App.tsx index 51f3fe9..a6df555 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,9 +1,12 @@ import { Header } from "./sections/Header"; +import { Hero } from "./sections/Hero"; export const App = () => { return (
+ +
); }; diff --git a/src/components/Button.tsx b/src/components/Button.tsx new file mode 100644 index 0000000..b8894bf --- /dev/null +++ b/src/components/Button.tsx @@ -0,0 +1,70 @@ +import type { PropsWithChildren } from "react"; +import { cn } from "../lib/utils"; +import { Marker } from "./Marker"; + +interface ButtonProps { + icon?: string; + href?: string; + onClick?: () => void; + containerClassName?: string; + markerFill?: string; +} + +export const Button = ({ + icon, + children, + href, + onClick, + containerClassName, + markerFill, +}: PropsWithChildren) => { + const Inner = () => ( + <> + + + + + + {icon && ( + circle + )} + + + {children} + + + + + + ); + + if (href) { + return ( + + + + ); + } + + return ( + + ); +}; diff --git a/src/components/Marker.tsx b/src/components/Marker.tsx new file mode 100644 index 0000000..e484f49 --- /dev/null +++ b/src/components/Marker.tsx @@ -0,0 +1,22 @@ +interface MarkerProps { + fill?: string; +} + +export const Marker = ({ fill }: MarkerProps) => { + return ( + + + + ); +}; diff --git a/src/sections/Header.tsx b/src/sections/Header.tsx index af6bd37..f7a1e3c 100644 --- a/src/sections/Header.tsx +++ b/src/sections/Header.tsx @@ -20,9 +20,11 @@ export const Header = () => { return (
- - logo - +
+ + logo + +
{ + return ( +
+ +
+
+
+ Video Editing +
+ +

+ Amazingly simple +

+ +

+ We designed Xora AI Video Editor to be an easy to use, quick to + learn, and surprisingly powerful. +

+ + + + +
+ +
+ hero +
+
+
+
+ ); +};