diff --git a/app/companies/[slug]/events/page.tsx b/app/companies/[slug]/events/page.tsx index 0ba7e505..c4749602 100644 --- a/app/companies/[slug]/events/page.tsx +++ b/app/companies/[slug]/events/page.tsx @@ -356,8 +356,19 @@ export default function CompanyEventsPage() { {/* Card Content */}
-
- {event.organizer.split(" ").map((n: string) => n[0]).join("")} + {/* Company Logo/Badge */} +
+ {company?.logo_url ? ( + {company.name} + ) : ( + company?.name.substring(0, 2).toUpperCase() + )}
@@ -413,11 +424,10 @@ export default function CompanyEventsPage() {
{event.payment === "Required" || event.payment === "Paid" ? "Paid" : "Free"} diff --git a/app/companies/[slug]/hackathons/page.tsx b/app/companies/[slug]/hackathons/page.tsx index dbba5f81..f26272fe 100644 --- a/app/companies/[slug]/hackathons/page.tsx +++ b/app/companies/[slug]/hackathons/page.tsx @@ -309,8 +309,19 @@ export default function CompanyHackathonsPage() { {/* Card Content */}
-
- + {/* Company Logo/Badge */} +
+ {company?.logo_url ? ( + {company.name} + ) : ( + company?.name.substring(0, 2).toUpperCase() + )}
@@ -340,19 +351,19 @@ export default function CompanyHackathonsPage() { {hackathon.date && !isNaN(new Date(hackathon.date).getTime()) ? new Date(hackathon.date).toLocaleDateString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - }) + month: "short", + day: "numeric", + year: "numeric", + }) : "TBA"}
{hackathon.registration_deadline && !isNaN(new Date(hackathon.registration_deadline).getTime()) ? `Reg: ${new Date(hackathon.registration_deadline).toLocaleDateString("en-US", { - month: "short", - day: "numeric", - })}` + month: "short", + day: "numeric", + })}` : hackathon.duration || "TBA"}
@@ -387,7 +398,7 @@ export default function CompanyHackathonsPage() { className="font-semibold px-6 py-2 rounded-full text-base bg-gradient-to-r from-primary to-purple-600 hover:from-primary/90 hover:to-purple-600/90 shadow-lg" asChild > - + View Details diff --git a/app/companies/register/page.tsx b/app/companies/register/page.tsx index 3a4afcba..6244ef9d 100644 --- a/app/companies/register/page.tsx +++ b/app/companies/register/page.tsx @@ -72,11 +72,11 @@ export default function CompanyRegisterPage() {

- You need to be signed in to register your company. This helps us track your + You need to be signed in to register your company. This helps us track your application and provide better support throughout the verification process.

-
- +
@@ -145,7 +145,7 @@ export default function CompanyRegisterPage() {

- +
@@ -232,14 +232,14 @@ export default function CompanyRegisterPage() {

Register Your Company

- Join CodeUnia's marketplace and start hosting hackathons and events for the developer community + Join Codeunia's marketplace and start hosting hackathons and events for the developer community

{/* Benefits */} -

Why host events on CodeUnia?

+

Why host events on Codeunia?

diff --git a/app/hackathons/page.tsx b/app/hackathons/page.tsx index 54ac8ef3..3dd24288 100644 --- a/app/hackathons/page.tsx +++ b/app/hackathons/page.tsx @@ -1,4 +1,4 @@ -"use client" +"use client" import { useState, useEffect, useRef } from "react" @@ -26,7 +26,7 @@ import type { Company } from "@/types/company" const hackathonCategories = [ "All", "Web Development", - "Mobile Apps", + "Mobile Apps", "AI/ML", "Blockchain", "IoT", @@ -80,7 +80,7 @@ export default function HackathonsPage() { if (response.ok) { const data = await response.json() setCompanies(data.companies || []) - + // Extract unique industries from companies const uniqueIndustries = Array.from( new Set(data.companies.map((c: Company) => c.industry).filter(Boolean)) @@ -263,98 +263,98 @@ export default function HackathonsPage() { return (
-
- +
+ {/* Hero Section */}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
- -
- -
- -
-
- - Code, Compete,{" "} - - Win - - - - Discover exciting hackathons and coding competitions. Build innovative solutions, collaborate with talented developers, and win amazing prizes! - -
-
-
+ +
+ +
+ +
+
+ + Code, Compete,{" "} + + Win + + + + Discover exciting hackathons and coding competitions. Build innovative solutions, collaborate with talented developers, and win amazing prizes! + +
+
+ {/* Search and Filters - Redesigned */}
@@ -620,7 +620,7 @@ export default function HackathonsPage() { {filteredFeaturedHackathons.length > 0 && (
- - ) : hackathon.company?.logo_url ? ( -
- {hackathon.company.name -
) : (
@@ -729,13 +719,13 @@ export default function HackathonsPage() {
- {copiedHackathonId === String (hackathon.id) && ( + {copiedHackathonId === String(hackathon.id) && ( Link copied! )}
@@ -743,9 +733,9 @@ export default function HackathonsPage() { {/* Company Badge */} {hackathon.company && (
-
@@ -837,7 +827,7 @@ export default function HackathonsPage() { {/* All Hackathons - Redesigned */}
- - ) : hackathon.company?.logo_url ? ( -
- {hackathon.company.name -
) : (
@@ -931,9 +911,9 @@ export default function HackathonsPage() { {/* Company Badge */} {hackathon.company ? (
-
@@ -996,7 +976,7 @@ export default function HackathonsPage() {
{regularHackathons.length === 0 && ( -
-
) } diff --git a/components/companies/VerificationBadge.tsx b/components/companies/VerificationBadge.tsx index 518dbaef..63902863 100644 --- a/components/companies/VerificationBadge.tsx +++ b/components/companies/VerificationBadge.tsx @@ -16,7 +16,7 @@ const statusConfig = { label: 'Verified', variant: 'default' as const, className: 'bg-green-500 hover:bg-green-600 text-white border-green-600', - tooltip: 'This company has been verified by CodeUnia', + tooltip: 'This company has been verified by Codeunia', }, pending: { icon: Clock, @@ -49,18 +49,18 @@ const sizeClasses = { }, } -export function VerificationBadge({ - status, - size = 'md', +export function VerificationBadge({ + status, + size = 'md', showLabel = false, - className + className }: VerificationBadgeProps) { const config = statusConfig[status] const sizes = sizeClasses[size] const Icon = config.icon const badge = ( -