From 4a2afad7d936dd5cdce91893ffebf01efe3f749f Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 8 Mar 2025 22:13:54 +0100 Subject: [PATCH] feat: landing page redesign --- package.json | 2 +- src/app/(public)/page.tsx | 184 +++++++++++++++++++++++++++++------- src/components/ui/badge.tsx | 36 +++++++ yarn.lock | 9 +- 4 files changed, 193 insertions(+), 38 deletions(-) create mode 100644 src/components/ui/badge.tsx diff --git a/package.json b/package.json index 2eb9952..45cec33 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@radix-ui/react-dropdown-menu": "^2.1.2", "@radix-ui/react-label": "^2.1.1", "@radix-ui/react-popover": "^1.1.4", - "@radix-ui/react-slot": "^1.1.1", + "@radix-ui/react-slot": "^1.1.2", "@radix-ui/react-tabs": "^1.1.2", "@radix-ui/react-tooltip": "^1.1.6", "arctic": "^2.3.1", diff --git a/src/app/(public)/page.tsx b/src/app/(public)/page.tsx index 074ee4d..b24f7b1 100644 --- a/src/app/(public)/page.tsx +++ b/src/app/(public)/page.tsx @@ -2,8 +2,10 @@ import CloseTabNotice from '@/components/app/CloseTabNotice/CloseTabNotice'; import LandingStepper from '@/components/app/LandingStepper/LandingStepper'; import Video from '@/components/app/Video/Video'; import { Button } from '@/components/ui/button'; +import { Card, CardContent } from '@/components/ui/card'; +import { Badge } from '@/components/ui/badge'; import { validateRequest } from '@/lib/auth'; -import { ArrowRight, Github } from 'lucide-react'; +import { ArrowRight, Github, Sparkles, MessageCircle, TrendingUp, Zap } from 'lucide-react'; import Link from 'next/link'; import React from 'react'; @@ -13,38 +15,48 @@ export default async function Home() { <>
-
-
-
- -
- Now you can add team members! -
- -
-

+ {/* Hero Section */} +
+
+
+
+ + + + Now you can add team members! + + +
+

User feedback for developers

-

+

Save time and build better products with headless but streamlined feedback - collection + collection that transforms how you understand your users.

-
+
{user ? ( - + ) : ( - + )} - @@ -52,9 +64,73 @@ export default async function Home() {
+ + {/* Abstract Decoration */} +
-
+ + {/* Features Cards */} +
+
+ Why choose us? +

+ Features designed for developers +

+

+ Everything you need to collect, analyze and act on user feedback +

+
+ +
+ + +
+ +
+

Seamless Collection

+

+ Simple API integration lets you collect feedback without disrupting user experience +

+
+
+ + + +
+ +
+

Powerful Analytics

+

+ Turn feedback into actionable insights with our intuitive analysis tools +

+
+
+ + + +
+ +
+

GitHub Integration

+

+ Automatically create issues from feedback to streamline your development workflow +

+
+
+
+
+
+ + {/* How It Works Steps */} +
+
+
+ How it works +

+ Three simple steps to better products +

+
), }, @@ -76,12 +152,14 @@ export default async function Home() { description: 'Make a query to the API and create your own UI to collect user feedback', html: ( - // eslint-disable-next-line @next/next/no-img-element - Code example +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + Code example +
), }, { @@ -89,13 +167,18 @@ export default async function Home() { description: 'Use the tools provided to analyze feedback and improve your product!', html: ( -
-

- The new github integration will help you out with creating issues to - improve your project. It is as simple as installing an app and selecting a - repo! -

-
+ + +
+ +

+ The new GitHub integration will help you out with creating issues to + improve your project. It is as simple as installing an app and selecting a + repo! +

+
+
+
), }, ]} @@ -103,7 +186,36 @@ export default async function Home() {
+ + {/* CTA Section */} +
+
+
+

Ready to get started?

+

+ Join developers who are building better products with user feedback +

+
+ {user ? ( + + + + ) : ( + + + + )} +
+
+
+

); -} +} \ No newline at end of file diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx new file mode 100644 index 0000000..f000e3e --- /dev/null +++ b/src/components/ui/badge.tsx @@ -0,0 +1,36 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const badgeVariants = cva( + "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", + { + variants: { + variant: { + default: + "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", + secondary: + "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", + destructive: + "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", + outline: "text-foreground", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +export interface BadgeProps + extends React.HTMLAttributes, + VariantProps {} + +function Badge({ className, variant, ...props }: BadgeProps) { + return ( +
+ ) +} + +export { Badge, badgeVariants } diff --git a/yarn.lock b/yarn.lock index 8cb32fe..94cc658 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1639,13 +1639,20 @@ dependencies: "@radix-ui/react-compose-refs" "1.1.0" -"@radix-ui/react-slot@1.1.1", "@radix-ui/react-slot@^1.1.1": +"@radix-ui/react-slot@1.1.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.1.1.tgz#ab9a0ffae4027db7dc2af503c223c978706affc3" integrity sha512-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g== dependencies: "@radix-ui/react-compose-refs" "1.1.1" +"@radix-ui/react-slot@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.1.2.tgz#daffff7b2bfe99ade63b5168407680b93c00e1c6" + integrity sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ== + dependencies: + "@radix-ui/react-compose-refs" "1.1.1" + "@radix-ui/react-tabs@^1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@radix-ui/react-tabs/-/react-tabs-1.1.2.tgz#a72da059593cba30fccb30a226d63af686b32854"