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
18 changes: 14 additions & 4 deletions src/components/HeroSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,19 @@ export default function HeroSection() {
<div className="inline-block px-4 py-2 dark:text-gray-100 dark:bg-slate-800 bg-[#021640]/10 text-[#021640] rounded-full text-sm md:text-base font-medium tracking-wide uppercase mt-10">
{siteConfig.hero.title}
</div>
<h1 className="text-5xl sm:text-5xl md:text-7xl lg:text-8xl font-extrabold dark:text-white text-[#021640] leading-tight tracking-wide">
{siteConfig.hero.subtitle}
</h1>
{(() => {
const words = siteConfig.hero.subtitle.split(" ");
const first = words[0];
const rest = words.slice(1).join(" ");
return (
<h1 className="text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-extrabold dark:text-white text-[#021640] leading-tight tracking-tighter max-w-3xl mx-auto lg:mx-0">
<span className="block sm:inline">{first}</span>
<span className="block sm:inline">
{rest ? ` ${rest}` : ""}
</span>
</h1>
);
})()}
<p className="text-xl md:text-2xl dark:text-gray-300 text-gray-600 leading-relaxed md:leading-normal max-w-2xl mx-auto lg:mx-0">
{siteConfig.hero.description}
</p>
Expand Down Expand Up @@ -61,7 +71,7 @@ export default function HeroSection() {
<img
src={siteConfig.hero.image}
alt="ASME NIT Rourkela - Engineering Excellence"
className="w-full h-[440px] md:h-[500px] lg:h-[560px] object-cover transition-transform duration-300 hover:scale-105"
className="w-full h-[320px] sm:h-[380px] md:h-[500px] lg:h-[560px] object-cover transition-transform duration-300 hover:scale-105"
/>
<div className="absolute inset-0 ring-1 ring-black/10 rounded-xl"></div>
</div>
Expand Down
11 changes: 7 additions & 4 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export default function Navbar() {
}
};

const navItemBase =
"relative text-base font-semibold px-4 py-2 rounded-lg transition-all duration-300 hover:scale-105 hover:bg-slate-50 dark:hover:bg-slate-800 after:absolute after:bottom-0 after:left-0 after:h-[2.5px] after:w-full after:origin-bottom-right after:scale-x-0 after:bg-gradient-to-r after:from-[#0A1440] after:to-[#1A56DB] after:transition-transform after:duration-300 hover:after:origin-bottom-left hover:after:scale-x-100";

return (
<header
className={`w-full fixed top-0 left-0 z-50 transition-all duration-300 ${
Expand Down Expand Up @@ -87,10 +90,10 @@ export default function Navbar() {
key={item.name}
to={item.href}
className={({ isActive }) =>
`text-base font-medium tracking-wide transition-all duration-300 whitespace-nowrap px-4 py-2 rounded-lg ${
`${navItemBase} whitespace-nowrap ${
isActive
? "text-[#021640] dark:text-white border-b-2 border-blue-400 pb-1 -translate-y-0.5"
: "text-gray-700 dark:text-gray-200 hover:text-[#021640] dark:hover:text-white hover:-translate-y-1"
? "text-[#021640] dark:text-white border-b-2 border-blue-400 pb-1 -translate-y-0.5 after:origin-bottom-left after:scale-x-100"
: "text-gray-700 dark:text-gray-200 hover:text-[#021640] dark:hover:text-white hover:-translate-y-1"
}`
}
>
Expand Down Expand Up @@ -199,7 +202,7 @@ export default function Navbar() {
<a
key={item.name}
href={item.href}
className="dark:text-white block w-full py-4 px-6 text-lg font-medium text-white hover:text-gray-300 hover:bg-white/10 rounded-lg transition-all duration-200 text-center"
className={`relative block w-full text-center text-lg font-semibold px-6 py-4 rounded-lg transition-all duration-200 text-white hover:text-gray-300 hover:bg-white/10 after:absolute after:bottom-0 after:left-0 after:h-[2.5px] after:w-full after:origin-bottom-right after:scale-x-0 after:bg-gradient-to-r after:from-[#0A1440] after:to-[#1A56DB] after:transition-transform after:duration-300 hover:after:origin-bottom-left hover:after:scale-x-100`}
onClick={() => setMobileMenuOpen(false)}
>
{item.name}
Expand Down
4 changes: 4 additions & 0 deletions src/components/Sponsor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const SponsorsSection = () => {
background: #021640;
transform: scale(1.2);
}

.dark .sponsors-swiper .swiper-pagination-bullet-active {
background: #2563eb;
}
`}</style>
</div>
</section>
Expand Down
Loading