Skip to content

Commit 85cd491

Browse files
committed
style(company-pages): adjust spacing and banner sizing for better layout consistency
- Update company header section padding from `py-12` to `pt-24 pb-12` in events and hackathons pages for consistent top spacing - Adjust main content area padding from `py-12` to `pt-24 pb-12` on company profile page to align with header spacing - Increase company profile banner height from `h-48` to `h-56 sm:h-64` for better visual prominence on responsive layouts - Adjust CardHeader negative margin from `-mt-16` to `-mt-20` to properly overlap with larger banner on company profile - Ensures consistent spacing across all company pages and improves visual hierarchy with responsive banner sizing
1 parent c5a6734 commit 85cd491

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/companies/[slug]/events/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default function CompanyEventsPage() {
162162

163163
{/* Company Header */}
164164
{company && (
165-
<section className="py-12 bg-gradient-to-b from-muted/30 to-background border-b border-primary/10">
165+
<section className="pt-24 pb-12 bg-gradient-to-b from-muted/30 to-background border-b border-primary/10">
166166
<div className="container px-4 mx-auto">
167167
<motion.div
168168
initial={{ opacity: 0, y: 20 }}

app/companies/[slug]/hackathons/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function CompanyHackathonsPage() {
144144

145145
{/* Company Header */}
146146
{company && (
147-
<section className="py-12 bg-gradient-to-b from-muted/30 to-background border-b border-primary/10">
147+
<section className="pt-24 pb-12 bg-gradient-to-b from-muted/30 to-background border-b border-primary/10">
148148
<div className="container px-4 mx-auto">
149149
<motion.div
150150
initial={{ opacity: 0, y: 20 }}

app/companies/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function CompanyProfilePage() {
8888
<div className="flex flex-col min-h-screen bg-gradient-to-br from-background via-background to-muted/10">
8989
<Header />
9090

91-
<main className="flex-1 py-12">
91+
<main className="flex-1 pt-24 pb-12">
9292
<div className="container px-4 mx-auto">
9393
<motion.div
9494
initial={{ opacity: 0, y: 20 }}

components/companies/CompanyProfile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
2929
<Card className="overflow-hidden">
3030
{/* Banner */}
3131
<div
32-
className="h-48 bg-gradient-to-r from-primary/20 via-primary/10 to-primary/20"
32+
className="h-56 sm:h-64 bg-gradient-to-r from-primary/20 via-primary/10 to-primary/20"
3333
style={company.banner_url ? {
3434
backgroundImage: `url(${company.banner_url})`,
3535
backgroundSize: 'cover',
3636
backgroundPosition: 'center',
3737
} : undefined}
3838
/>
3939

40-
<CardHeader className="relative -mt-16 pb-4">
40+
<CardHeader className="relative -mt-20 pb-4">
4141
<div className="flex flex-col sm:flex-row items-start sm:items-end gap-4">
4242
{/* Logo */}
4343
<Avatar className="h-32 w-32 border-4 border-background shadow-xl">

0 commit comments

Comments
 (0)