Skip to content

Commit 0931f47

Browse files
Redesign logo with Radix Icons and improve layout spacing
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
1 parent 645a4cc commit 0931f47

2 files changed

Lines changed: 55 additions & 41 deletions

File tree

src/app/page.tsx

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,46 @@ export default function Home() {
4545
</Stack>
4646

4747
{/* Features Grid */}
48-
<div className="mt-16 w-full max-w-5xl">
49-
<Grid cols={3} gap={8}>
50-
<Stack align="center" gap={3} className="text-center">
51-
<div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center">
52-
<GitHubLogoIcon className="h-6 w-6 text-primary" />
48+
<div className="mt-20 w-full max-w-5xl">
49+
<Grid cols={3} gap={8} className="items-start">
50+
<Stack align="center" gap={4} className="text-center">
51+
<div className="w-14 h-14 bg-primary/10 rounded-xl flex items-center justify-center shadow-sm">
52+
<GitHubLogoIcon className="h-7 w-7 text-primary" />
53+
</div>
54+
<div className="space-y-2">
55+
<Typography variant="h5" className="font-semibold">Open Source</Typography>
56+
<Typography variant="muted" className="text-sm leading-relaxed max-w-sm">
57+
Building transparent, accessible solutions for the community
58+
</Typography>
5359
</div>
54-
<Typography variant="h5">Open Source</Typography>
55-
<Typography variant="muted">
56-
Building transparent, accessible solutions for the community
57-
</Typography>
5860
</Stack>
5961

60-
<Stack align="center" gap={3} className="text-center">
61-
<div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center">
62-
<svg className="h-6 w-6 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
62+
<Stack align="center" gap={4} className="text-center">
63+
<div className="w-14 h-14 bg-primary/10 rounded-xl flex items-center justify-center shadow-sm">
64+
<svg className="h-7 w-7 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
6365
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
6466
</svg>
6567
</div>
66-
<Typography variant="h5">Community</Typography>
67-
<Typography variant="muted">
68-
Connecting passionate developers and researchers worldwide
69-
</Typography>
68+
<div className="space-y-2">
69+
<Typography variant="h5" className="font-semibold">Community</Typography>
70+
<Typography variant="muted" className="text-sm leading-relaxed max-w-sm">
71+
Connecting passionate developers and researchers worldwide
72+
</Typography>
73+
</div>
7074
</Stack>
7175

72-
<Stack align="center" gap={3} className="text-center">
73-
<div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center">
74-
<svg className="h-6 w-6 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
76+
<Stack align="center" gap={4} className="text-center">
77+
<div className="w-14 h-14 bg-primary/10 rounded-xl flex items-center justify-center shadow-sm">
78+
<svg className="h-7 w-7 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
7579
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
7680
</svg>
7781
</div>
78-
<Typography variant="h5">Innovation</Typography>
79-
<Typography variant="muted">
80-
Pushing boundaries with cutting-edge research and development
81-
</Typography>
82+
<div className="space-y-2">
83+
<Typography variant="h5" className="font-semibold">Innovation</Typography>
84+
<Typography variant="muted" className="text-sm leading-relaxed max-w-sm">
85+
Pushing boundaries with cutting-edge research and development
86+
</Typography>
87+
</div>
8288
</Stack>
8389
</Grid>
8490
</div>

src/components/ui/logo.tsx

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { LightningBoltIcon, CubeIcon } from '@radix-ui/react-icons'
2+
import { LightningBoltIcon, ChevronLeftIcon, ChevronRightIcon } from '@radix-ui/react-icons'
33
import { cn } from '@/lib/utils'
44

55
interface LogoProps {
@@ -11,19 +11,22 @@ interface LogoProps {
1111
const sizeClasses = {
1212
sm: {
1313
container: 'h-6',
14-
icon: 'h-4 w-4',
14+
icon: 'h-3 w-3',
15+
lightning: 'h-4 w-4',
1516
text: 'text-lg font-bold',
16-
spacing: 'gap-1.5'
17+
spacing: 'gap-2'
1718
},
1819
md: {
1920
container: 'h-8',
20-
icon: 'h-5 w-5',
21+
icon: 'h-4 w-4',
22+
lightning: 'h-5 w-5',
2123
text: 'text-xl font-bold',
22-
spacing: 'gap-2'
24+
spacing: 'gap-2.5'
2325
},
2426
lg: {
2527
container: 'h-12',
26-
icon: 'h-8 w-8',
28+
icon: 'h-6 w-6',
29+
lightning: 'h-7 w-7',
2730
text: 'text-3xl font-bold',
2831
spacing: 'gap-3'
2932
}
@@ -34,25 +37,30 @@ export function Logo({ className, size = 'md', variant = 'full' }: LogoProps) {
3437

3538
const IconComponent = () => (
3639
<div className={cn(
37-
"relative inline-flex items-center justify-center",
40+
"inline-flex items-center justify-center",
3841
sizes.container,
39-
"bg-gradient-to-br from-primary via-primary/80 to-primary/60",
40-
"rounded-lg shadow-sm"
42+
"relative"
4143
)}>
42-
{/* Lightning bolt as main icon */}
43-
<LightningBoltIcon
44+
{/* Left Chevron */}
45+
<ChevronLeftIcon
4446
className={cn(
4547
sizes.icon,
46-
"text-primary-foreground drop-shadow-sm z-10"
48+
"text-primary/60"
4749
)}
4850
/>
49-
{/* Subtle cube in background for "Hub" concept */}
50-
<CubeIcon
51+
{/* Central Lightning Bolt - The main focus */}
52+
<LightningBoltIcon
5153
className={cn(
52-
"absolute top-0 right-0 h-2 w-2",
53-
size === 'lg' ? 'h-3 w-3' : 'h-2 w-2',
54-
"text-primary-foreground/40"
55-
)}
54+
sizes.lightning,
55+
"text-primary mx-0.5 relative z-10"
56+
)}
57+
/>
58+
{/* Right Chevron */}
59+
<ChevronRightIcon
60+
className={cn(
61+
sizes.icon,
62+
"text-primary/60"
63+
)}
5664
/>
5765
</div>
5866
)

0 commit comments

Comments
 (0)