diff --git a/components.json b/components.json index 8c574b7..797b325 100644 --- a/components.json +++ b/components.json @@ -7,11 +7,13 @@ "config": "tailwind.config.ts", "css": "src/app/globals.css", "baseColor": "slate", - "cssVariables": true, + "cssVariables": false, "prefix": "" }, "aliases": { "components": "@/components", - "utils": "@/lib/utils" + "utils": "@/lib/utils", + "ui": "@/components/ui", + "magicui": "@/components/magicui" } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 59f51fc..7b4419a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@radix-ui/react-slot": "^1.1.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", + "framer-motion": "^11.3.30", "lucide-react": "^0.436.0", "next": "14.2.6", "react": "^18", @@ -2824,6 +2825,31 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/framer-motion": { + "version": "11.3.30", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.3.30.tgz", + "integrity": "sha512-9VmqGe9OIjfMoCcs+ZsKXlv6JaG5QagKX2F1uSbkG3Z33wgjnz60Kw+CngC1M49rDYau+Y9aL+8jGagAwrbVyw==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", diff --git a/package.json b/package.json index a2c9bca..b316cc4 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@radix-ui/react-slot": "^1.1.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", + "framer-motion": "^11.3.30", "lucide-react": "^0.436.0", "next": "14.2.6", "react": "^18", diff --git a/src/app/globals.css b/src/app/globals.css index 99a7b0c..ee65b92 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,69 +1,4 @@ @tailwind base; @tailwind components; @tailwind utilities; - -@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-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; - --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%; - } - - .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%; - --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%; - --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%; - } -} - -@layer base { - * { - @apply border-border; - } - body { - @apply bg-background text-foreground; - } -} \ No newline at end of file + \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index a885bee..48f3d9b 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,115 +1,68 @@ -"use client" +"use client"; -import { useState } from "react" -import { Card, CardContent, CardHeader } from "@/components/ui/card" -import { Button } from "@/components/ui/button" -import { Input } from "@/components/ui/input" -import { Dialog, DialogContent } from "@/components/ui/dialog" -import { Menu, X } from "lucide-react" -import AttendanceTracker from "@/components/AttendanceTracker" -import Features from "@/components/Features" -import { - NavigationMenu, - NavigationMenuContent, - NavigationMenuItem, - NavigationMenuLink, - NavigationMenuList, - NavigationMenuTrigger, - navigationMenuTriggerStyle, -} from "@/components/ui/navigation-menu" -import Link from "next/link" +import { useState } from 'react'; +import HomePage from '@/components/HomePage'; +import { Button } from "@/components/ui/button"; +import { Card, CardContent, CardHeader } from "@/components/ui/card"; -export default function Component() { - const [isAttendanceTrackerOpen, setIsAttendanceTrackerOpen] = useState(false) - const [activeTab, setActiveTab] = useState("home") - const [isMenuOpen, setIsMenuOpen] = useState(false) +export default function Home() { + const [showDashboard, setShowDashboard] = useState(false); + const [activeTab, setActiveTab] = useState("home"); const webPages = [ - { name: "Uni-Notes", url: "https://uni-notes.netlify.app/" }, - { name: "ERP", url: "https://erp.bits-pilani.ac.in/" }, - { name: "ACM Library", url: "https://openlib-cs.acmbpdc.org/" }, - { name: "GDSC Resources", url: "https://gdscbpdc.github.io" } - ] + { name: "Uni-Notes", url: "https://uninotes.com" }, + { name: "ERP", url: "https://erp.bits-pilani.ac.in" }, + // Add other web pages as needed + ]; + + if (!showDashboard) { + return setShowDashboard(true)} />; + } return (
- -
-
- - - - setActiveTab("home")}>Home - - - setActiveTab("features")}>Features - - - setIsAttendanceTrackerOpen(true)}> - Attendance Tracker - - - - -
- - -
- {isMenuOpen && ( -
- - -
- )} +
{activeTab === "home" && ( -
+
{webPages.map((page, index) => ( -
-

{page.name}

-