From 92436d38f04f34c77edece80c2e22d3c1a4e88c1 Mon Sep 17 00:00:00 2001 From: WasiqB Date: Sat, 28 Sep 2024 19:11:06 +0300 Subject: [PATCH] feat: :sparkles: updated ui for all the pages --- app/(app)/globals.css | 103 ++++++++++++------- app/(app)/layout.tsx | 24 +---- app/(app)/page.tsx | 50 +++++----- app/(app)/results/page.tsx | 163 +++++++++++++++---------------- components/home/feature.tsx | 57 +++++++++++ components/home/footer.tsx | 67 +++++++++++++ components/home/nav-bar.tsx | 75 ++++++++++++++ components/home/open-source.tsx | 21 ++++ components/home/user-card.tsx | 42 ++++++++ components/icons/github.tsx | 15 +++ components/icons/linkedin.tsx | 15 +++ components/icons/sponsor.tsx | 15 +++ components/icons/x.tsx | 15 +++ components/icons/youtube.tsx | 15 +++ components/ui/avatar.tsx | 50 ++++++++++ components/ui/hover-card.tsx | 29 ++++++ components/ui/rainbow-button.tsx | 28 ++++++ components/utils/file-upload.tsx | 11 ++- eslint.config.mjs | 8 +- lib/xml-parser.ts | 6 +- package.json | 2 + pnpm-lock.yaml | 61 ++++++++++++ tailwind.config.ts | 18 ++++ 23 files changed, 719 insertions(+), 171 deletions(-) create mode 100644 components/home/feature.tsx create mode 100644 components/home/footer.tsx create mode 100644 components/home/nav-bar.tsx create mode 100644 components/home/open-source.tsx create mode 100644 components/home/user-card.tsx create mode 100644 components/icons/github.tsx create mode 100644 components/icons/linkedin.tsx create mode 100644 components/icons/sponsor.tsx create mode 100644 components/icons/x.tsx create mode 100644 components/icons/youtube.tsx create mode 100644 components/ui/avatar.tsx create mode 100644 components/ui/hover-card.tsx create mode 100644 components/ui/rainbow-button.tsx diff --git a/app/(app)/globals.css b/app/(app)/globals.css index 6084d22..d657139 100644 --- a/app/(app)/globals.css +++ b/app/(app)/globals.css @@ -11,62 +11,78 @@ @layer base { :root { --background: 0 0% 100%; - --foreground: 222.2 84% 4.9%; + --foreground: 240 10% 3.9%; --card: 0 0% 100%; - --card-foreground: 222.2 84% 4.9%; + --card-foreground: 240 10% 3.9%; --popover: 0 0% 100%; - --popover-foreground: 222.2 84% 4.9%; - --primary: 222.2 47.4% 11.2%; - --primary-foreground: 210 40% 98%; - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - --muted: 210 40% 96.1%; - --muted-foreground: 215.4 16.3% 46.9%; - --accent: 210 40% 96.1%; - --accent-foreground: 222.2 47.4% 11.2%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 210 40% 98%; - --border: 214.3 31.8% 91.4%; - --input: 214.3 31.8% 91.4%; - --ring: 222.2 84% 4.9%; + --popover-foreground: 240 10% 3.9%; + --primary: 240 5.9% 10%; + --primary-foreground: 0 0% 98%; + --secondary: 240 4.8% 95.9%; + --secondary-foreground: 240 5.9% 10%; + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; + --accent: 240 4.8% 95.9%; + --accent-foreground: 240 5.9% 10%; + --destructive: 0 72.22% 50.59%; + --destructive-foreground: 0 0% 98%; + --border: 240 5.9% 90%; + --input: 240 5.9% 90%; + --ring: 240 5% 64.9%; + --chart-1: 12 76% 61%; --chart-2: 173 58% 39%; --chart-3: 197 37% 24%; --chart-4: 43 74% 66%; --chart-5: 27 87% 67%; + --passed: 141.7 76.6% 73.1%; --failed: 0 84.2% 60.2%; --skipped: 50.4 97.8% 63.5%; + --radius: 0.5rem; + + --color-1: 0 100% 63%; + --color-2: 270 100% 63%; + --color-3: 210 100% 63%; + --color-4: 195 100% 63%; + --color-5: 90 100% 63%; } .dark { - --background: 222.2 84% 4.9%; - --foreground: 210 40% 98%; - --card: 222.2 84% 4.9%; - --card-foreground: 210 40% 98%; - --popover: 222.2 84% 4.9%; - --popover-foreground: 210 40% 98%; - --primary: 210 40% 98%; - --primary-foreground: 222.2 47.4% 11.2%; - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - --muted: 217.2 32.6% 17.5%; - --muted-foreground: 215 20.2% 65.1%; - --accent: 217.2 32.6% 17.5%; - --accent-foreground: 210 40% 98%; + --background: 240 10% 3.9%; + --foreground: 0 0% 98%; + --card: 240 10% 3.9%; + --card-foreground: 0 0% 98%; + --popover: 240 10% 3.9%; + --popover-foreground: 0 0% 98%; + --primary: 0 0% 98%; + --primary-foreground: 240 5.9% 10%; + --secondary: 240 3.7% 15.9%; + --secondary-foreground: 0 0% 98%; + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; + --accent: 240 3.7% 15.9%; + --accent-foreground: 0 0% 98%; --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 40% 98%; - --border: 217.2 32.6% 17.5%; - --input: 217.2 32.6% 17.5%; - --ring: 212.7 26.8% 83.9%; + --destructive-foreground: 0 85.7% 97.3%; + --border: 240 3.7% 15.9%; + --input: 240 3.7% 15.9%; + --ring: 240 4.9% 83.9%; + --chart-1: 220 70% 50%; --chart-2: 160 60% 45%; --chart-3: 30 80% 55%; --chart-4: 280 65% 60%; --chart-5: 340 75% 55%; + --passed: 141.7 76.6% 73.1%; --failed: 0 84.2% 60.2%; --skipped: 50.4 97.8% 63.5%; + --color-1: 0 100% 63%; + --color-2: 270 100% 63%; + --color-3: 210 100% 63%; + --color-4: 195 100% 63%; + --color-5: 90 100% 63%; } } @@ -78,3 +94,22 @@ @apply bg-background text-foreground; } } + +.gradient-text { + background: linear-gradient(45deg, #f31890, #0574f3, #04f85d, #f41a51); + -webkit-background-clip: text; + background-clip: text; + color: transparent; + background-size: 300% 300%; + animation: gradient-shift 5s ease-in-out infinite; +} + +@keyframes gradient-shift { + 0%, + 100% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } +} diff --git a/app/(app)/layout.tsx b/app/(app)/layout.tsx index a241f4b..b3e1983 100644 --- a/app/(app)/layout.tsx +++ b/app/(app)/layout.tsx @@ -1,19 +1,7 @@ import type { Metadata } from 'next'; -// import localFont from 'next/font/local'; import './globals.css'; import { DetailedHTMLProps, HtmlHTMLAttributes } from 'react'; -// import { ThemeProvider } from '@/components/theme-provider'; - -// const geistSans = localFont({ -// src: './fonts/GeistVF.woff', -// variable: '--font-geist-sans', -// weight: '100 900', -// }); -// const geistMono = localFont({ -// src: './fonts/GeistMonoVF.woff', -// variable: '--font-geist-mono', -// weight: '100 900', -// }); +import { Footer } from '@/components/home/footer'; export const metadata: Metadata = { title: 'Ultra Reporter', @@ -33,15 +21,9 @@ const RootLayout = ({ - - {/* */} + {children} - {/* */} +