From 00e1ec0520035804d35bc213f7e50034d7c1119e Mon Sep 17 00:00:00 2001 From: agricreations Date: Mon, 25 Mar 2024 08:22:39 +0530 Subject: [PATCH] Working in hero section designs --- ui_tailwind_shadecn/app/globals.css | 67 ++++++-- .../src/components/custom_ui/Svg.tsx | 43 +++++ ui_tailwind_shadecn/src/screens/Home.tsx | 160 +++++++++++++----- 3 files changed, 216 insertions(+), 54 deletions(-) create mode 100644 ui_tailwind_shadecn/src/components/custom_ui/Svg.tsx diff --git a/ui_tailwind_shadecn/app/globals.css b/ui_tailwind_shadecn/app/globals.css index 6a75725..4d2b257 100644 --- a/ui_tailwind_shadecn/app/globals.css +++ b/ui_tailwind_shadecn/app/globals.css @@ -2,39 +2,80 @@ @tailwind components; @tailwind utilities; +@layer base { + +@layer base { + @layer base { :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; - --card: 0 0% 100%; --card-foreground: 222.2 84% 4.9%; - --popover: 0 0% 100%; --popover-foreground: 222.2 84% 4.9%; - - --primary: 222.2 47.4% 11.2%; + --primary: 221.2 83.2% 53.3%; --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%; - - --radius: 0.5rem; + --ring: 221.2 83.2% 53.3%; + --radius: 0.3rem; } - + + .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: 217.2 91.2% 59.8%; + --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%; + --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: 224.3 76.3% 48%; + } +} + + .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: 217.2 91.2% 59.8%; + --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%; + --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: 224.3 76.3% 48%; + } +} + .dark { --background: 222.2 84% 4.9%; --foreground: 210 40% 98%; diff --git a/ui_tailwind_shadecn/src/components/custom_ui/Svg.tsx b/ui_tailwind_shadecn/src/components/custom_ui/Svg.tsx new file mode 100644 index 0000000..86b4016 --- /dev/null +++ b/ui_tailwind_shadecn/src/components/custom_ui/Svg.tsx @@ -0,0 +1,43 @@ + + +const Icons = ()=>{ + return( +<> + + ) +} + +const Logo = ()=>{ + return( + <> + +
+ + + + + + + + +
+ + + ) +} + +export default Icons; +export {Logo} \ No newline at end of file diff --git a/ui_tailwind_shadecn/src/screens/Home.tsx b/ui_tailwind_shadecn/src/screens/Home.tsx index 71f62ba..f15294b 100644 --- a/ui_tailwind_shadecn/src/screens/Home.tsx +++ b/ui_tailwind_shadecn/src/screens/Home.tsx @@ -11,7 +11,8 @@ import { } from "lucide-react" import { Button } from "@/components/ui/button" - +import { Moon, Sun } from "lucide-react" +import { useTheme } from "@/components/theme-provider" import { NavigationMenu, @@ -64,18 +65,18 @@ import { Link } from "react-router-dom" import Grid from "@/components/custom_ui/Grid" +import { Input } from "@/components/ui/input" +import { Mail } from "lucide-react" + +import {Logo} from "@/components/custom_ui/Svg" + export function Dashboard() { + const { setTheme } = useTheme() return (
+ + + + + setTheme("light")}> + Light + + setTheme("dark")}> + Dark + + setTheme("system")}> + System + + + + + + + + +
+ +
+ + + + ) } + + +export function TypographyH4() { + return ( +

+ People stopped telling jokes +

+ ) +}