From f734d888d6f135f661533c860985c8930170c17a Mon Sep 17 00:00:00 2001 From: nitin mohan Date: Sat, 27 Jun 2026 22:46:59 +0530 Subject: [PATCH] refactor: refine footer, creators, and universities UI --- app/(public)/creators/page.tsx | 12 ++++----- components/footer.tsx | 44 +++++++++++++------------------ features/landing/universities.tsx | 16 +++++------ 3 files changed, 31 insertions(+), 41 deletions(-) diff --git a/app/(public)/creators/page.tsx b/app/(public)/creators/page.tsx index 1d1173e..43b06ef 100644 --- a/app/(public)/creators/page.tsx +++ b/app/(public)/creators/page.tsx @@ -196,7 +196,7 @@ export default function TeamPage() { href={member.socials.github} target="_blank" rel="noopener noreferrer" - className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-2 hover:bg-white/10 hover:text-white hover:shadow-lg" + className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-[3px] hover:bg-white/10 hover:text-white hover:shadow-md hover:shadow-white/5" aria-label="GitHub" > @@ -208,7 +208,7 @@ export default function TeamPage() { href={member.socials.linkedin} target="_blank" rel="noopener noreferrer" - className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-2 hover:bg-[#0A66C2] hover:text-white hover:shadow-lg hover:shadow-[#0A66C2]/30" + className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-[3px] hover:bg-[#0A66C2]/15 hover:text-[#0A66C2] hover:shadow-md hover:shadow-[#0A66C2]/15" aria-label="LinkedIn" > @@ -220,7 +220,7 @@ export default function TeamPage() { href={member.socials.twitter} target="_blank" rel="noopener noreferrer" - className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-2 hover:bg-black hover:text-white hover:shadow-lg hover:shadow-white/10" + className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-[3px] hover:bg-white/10 hover:text-white hover:shadow-md hover:shadow-white/5" aria-label="X (Twitter)" > @@ -232,7 +232,7 @@ export default function TeamPage() { href={member.socials.instagram} target="_blank" rel="noopener noreferrer" - className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-2 hover:bg-gradient-to-tr hover:from-[#f09433] hover:via-[#dc2743] hover:to-[#bc1888] hover:text-white hover:shadow-lg hover:shadow-[#E1306C]/30" + className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-[3px] hover:bg-[#E1306C]/15 hover:text-[#E1306C] hover:shadow-md hover:shadow-[#E1306C]/15" aria-label="Instagram" > @@ -244,7 +244,7 @@ export default function TeamPage() { href={member.socials.portfolio} target="_blank" rel="noopener noreferrer" - className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-2 hover:bg-[#10B981] hover:text-white hover:shadow-lg hover:shadow-[#10B981]/30" + className="rounded-lg p-2 text-muted-foreground transition-all duration-300 ease-out hover:-translate-y-[3px] hover:bg-[#10B981]/15 hover:text-[#10B981] hover:shadow-md hover:shadow-[#10B981]/15" aria-label="Portfolio" > @@ -254,7 +254,7 @@ export default function TeamPage() { {member.socials.email && ( diff --git a/components/footer.tsx b/components/footer.tsx index d490fa8..6c66e49 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -41,7 +41,7 @@ export default function Footer() {
@@ -72,10 +72,10 @@ export default function Footer() { {/* Platform */}
-

+

Platform

-
    +
      {["Subjects", "Universities", "Dashboard", "Student Login"].map( (item, i) => (
    • @@ -87,10 +87,10 @@ export default function Footer() { ? "/sign-in" : `/${item.toLowerCase()}` } - className="group flex w-fit items-center text-[15px] font-medium text-slate-300 transition-all duration-300 hover:text-blue-400 hover:drop-shadow-[0_0_12px_rgba(96,165,250,0.4)]" + className="group relative flex w-fit items-center text-[15px] font-medium text-slate-400 transition-all duration-300 hover:text-white" > - - + + @@ -105,30 +105,22 @@ export default function Footer() { {/* Learning */}
      -

      +

      Learning

      -
        - {[ - { name: "AI Notes", icon: BookOpen }, - { name: "PYQs", icon: GraduationCap }, - { name: "AI Tutor" }, - { name: "Syllabus" }, - ].map((item, i) => ( +
          + {["AI Notes", "PYQs", "AI Tutor", "Syllabus"].map((item, i) => (
        • - - + + - {item.icon && ( - - )} - {item.name} + {item}
        • @@ -138,18 +130,18 @@ export default function Footer() { {/* Company */}
          -

          +

          Company

          -
            +
              {["About", "Contact", "Creators", "Privacy"].map((item, i) => (
            • - - + + diff --git a/features/landing/universities.tsx b/features/landing/universities.tsx index f0888bf..32fb948 100644 --- a/features/landing/universities.tsx +++ b/features/landing/universities.tsx @@ -62,8 +62,7 @@ export default function Universities() { return (
              - {/* Background Glows & Patterns */} -
              + {/* Background Glows */}
              @@ -122,10 +121,9 @@ export default function Universities() { placeholder="Search universities by name, branch, or location..." className="w-full bg-transparent px-6 py-3 text-base text-foreground placeholder:text-muted-foreground/50 focus:outline-none" /> -
              +
              -
              - +
              @@ -147,14 +145,14 @@ export default function Universities() { animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.9 }} transition={{ duration: 0.3 }} - className={`group relative flex flex-col overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-b from-white/5 to-transparent p-5 shadow-2xl backdrop-blur-xl transition-all duration-500 hover:-translate-y-2 hover:border-blue-500/30 hover:shadow-blue-500/20 dark:from-white/5 dark:to-transparent ${ + className={`group relative flex flex-col overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-b from-white/5 to-transparent p-5 shadow-2xl backdrop-blur-xl transition-all duration-500 hover:-translate-y-[5.5px] hover:border-blue-500/20 hover:shadow-[0_10px_40px_-10px_rgba(59,130,246,0.15)] dark:from-white/5 dark:to-transparent ${ university.status === "Available" ? "cursor-pointer" : "" }`} > -
              +
              {/* Hover Glow */}
              -
              +
              {/* Badge */} @@ -205,7 +203,7 @@ export default function Universities() {
              {university.status === "Available" ? ( -
              +
              Explore University