-
-
-
- Get started by editing{" "}
-
- app/page.tsx -- . -
- - - Save and see your changes instantly. - -
diff --git a/frontend/app/globals.css b/frontend/app/globals.css index a2dc41e..4aee959 100644 --- a/frontend/app/globals.css +++ b/frontend/app/globals.css @@ -22,5 +22,85 @@ body { background: var(--background); color: var(--foreground); - font-family: Arial, Helvetica, sans-serif; + font-family: sans-serif; +} + +/* Custom Animations for Dynamic Homepage */ +@keyframes gradient-x { + 0%, 100% { + background-size: 200% 200%; + background-position: left center; + } + 50% { + background-size: 200% 200%; + background-position: right center; + } +} + +@keyframes float { + 0%, 100% { + transform: translateY(0px); + } + 50% { + transform: translateY(-10px); + } +} + +@keyframes pulse-glow { + 0%, 100% { + opacity: 0.5; + transform: scale(1); + } + 50% { + opacity: 0.8; + transform: scale(1.05); + } +} + +/* Animation Classes */ +.animate-gradient-x { + animation: gradient-x 4s ease infinite; +} + +.animate-float { + animation: float 3s ease-in-out infinite; +} + +.animate-pulse-glow { + animation: pulse-glow 2s ease-in-out infinite; +} + +/* Animation Delays */ +.animation-delay-1000 { + animation-delay: 1s; +} + +.animation-delay-2000 { + animation-delay: 2s; +} + +.animation-delay-3000 { + animation-delay: 3s; +} + +.animation-delay-4000 { + animation-delay: 4s; +} + +.animation-delay-5000 { + animation-delay: 5s; +} + +.animation-delay-6000 { + animation-delay: 6s; +} + +/* Smooth hover transitions */ +.hover-lift { + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +.hover-lift:hover { + transform: translateY(-5px); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); } diff --git a/frontend/app/layout.tsx b/frontend/app/layout.tsx index f7fa87e..6b02e98 100644 --- a/frontend/app/layout.tsx +++ b/frontend/app/layout.tsx @@ -13,8 +13,8 @@ const geistMono = Geist_Mono({ }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Skinalyze", + description: "AI-powered skin disease detection platform. Upload photos or use your camera for instant skin condition analysis and health insights.", }; export default function RootLayout({ diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index 21b686d..622bb4a 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -1,103 +1,507 @@ -import Image from "next/image"; +"use client"; + +import { useState } from "react"; +import NextImage from "next/image"; +// Union type for safer section navigation +type Section = "home" | "about" | "features" | "tutorial"; +type View = "main" | "login" | "signup"; export default function Home() { - return ( -