Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions app/companies/[slug]/events/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,19 @@ export default function CompanyEventsPage() {
{/* Card Content */}
<div className="flex-1 flex flex-col p-4">
<div className="flex items-center gap-3 mb-2">
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-primary to-purple-600 flex items-center justify-center text-white font-bold text-lg shadow-lg">
{event.organizer.split(" ").map((n: string) => n[0]).join("")}
{/* Company Logo/Badge */}
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-primary to-purple-600 flex items-center justify-center text-white font-bold text-sm shadow-lg overflow-hidden">
{company?.logo_url ? (
<Image
src={company.logo_url}
alt={company.name}
width={40}
height={40}
className="object-cover w-full h-full"
/>
) : (
company?.name.substring(0, 2).toUpperCase()
)}
</div>
<div className="flex-1 min-w-0">
<div className="flex items-start justify-between gap-2">
Expand Down Expand Up @@ -413,11 +424,10 @@ export default function CompanyEventsPage() {
</div>
<Badge
variant="outline"
className={`text-xs ${
event.payment === "Required" || event.payment === "Paid"
className={`text-xs ${event.payment === "Required" || event.payment === "Paid"
? "border-green-200 text-green-700 bg-green-50"
: "border-blue-200 text-blue-700 bg-blue-50"
}`}
}`}
>
{event.payment === "Required" || event.payment === "Paid" ? "Paid" : "Free"}
</Badge>
Expand Down
31 changes: 21 additions & 10 deletions app/companies/[slug]/hackathons/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,19 @@ export default function CompanyHackathonsPage() {
{/* Card Content */}
<div className="flex-1 flex flex-col p-4">
<div className="flex items-center gap-3 mb-2">
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-primary to-purple-600 flex items-center justify-center text-white shadow-lg">
<Trophy className="h-5 w-5" />
{/* Company Logo/Badge */}
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-primary to-purple-600 flex items-center justify-center text-white font-bold text-sm shadow-lg overflow-hidden">
{company?.logo_url ? (
<Image
src={company.logo_url}
alt={company.name}
width={40}
height={40}
className="object-cover w-full h-full"
/>
) : (
company?.name.substring(0, 2).toUpperCase()
)}
</div>
<div className="flex-1 min-w-0">
<div className="flex items-start justify-between gap-2">
Expand Down Expand Up @@ -340,19 +351,19 @@ export default function CompanyHackathonsPage() {
<Calendar className="h-3 w-3" />
{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"}
</div>
<div className="flex items-center gap-1">
<Clock className="h-3 w-3" />
{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"}
</div>
<div className="flex items-center gap-1">
Expand Down Expand Up @@ -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
>
<Link href={`/hackathons/${hackathon.id}`}>
<Link href={`/hackathons/${hackathon.slug}`}>
View Details <ArrowRight className="ml-1 h-5 w-5" />
</Link>
</Button>
Expand Down
12 changes: 6 additions & 6 deletions app/companies/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export default function CompanyRegisterPage() {
</CardHeader>
<CardContent className="text-center space-y-6">
<p className="text-sm text-muted-foreground">
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.
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<Button
<Button
className="bg-gradient-to-r from-blue-500 to-cyan-500 hover:from-blue-600 hover:to-cyan-600 text-white"
asChild
>
Expand Down Expand Up @@ -131,7 +131,7 @@ export default function CompanyRegisterPage() {
</p>
</div>
</div>

<div className="flex gap-4">
<div className="flex-shrink-0">
<div className="w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center font-semibold">
Expand All @@ -145,7 +145,7 @@ export default function CompanyRegisterPage() {
</p>
</div>
</div>

<div className="flex gap-4">
<div className="flex-shrink-0">
<div className="w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center font-semibold">
Expand Down Expand Up @@ -232,14 +232,14 @@ export default function CompanyRegisterPage() {
</div>
<h1 className="text-4xl font-bold tracking-tight">Register Your Company</h1>
<p className="text-lg text-muted-foreground max-w-2xl mx-auto">
Join CodeUnia&apos;s marketplace and start hosting hackathons and events for the developer community
Join Codeunia&apos;s marketplace and start hosting hackathons and events for the developer community
</p>
</div>

{/* Benefits */}
<Card className="border-0 shadow-lg bg-gradient-to-r from-blue-50 to-cyan-50 dark:from-blue-900/20 dark:to-cyan-900/20">
<CardContent className="p-6">
<h3 className="font-semibold text-lg mb-4">Why host events on CodeUnia?</h3>
<h3 className="font-semibold text-lg mb-4">Why host events on Codeunia?</h3>
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<div className="flex gap-3">
<CheckCircle2 className="h-5 w-5 text-green-600 dark:text-green-400 flex-shrink-0 mt-0.5" />
Expand Down
Loading
Loading