diff --git a/public/logos/github.svg b/public/logos/github.svg new file mode 100644 index 0000000..454fe75 --- /dev/null +++ b/public/logos/github.svg @@ -0,0 +1,16 @@ + diff --git a/public/logos/github_black.svg b/public/logos/github_black.svg new file mode 100644 index 0000000..5ddc5f8 --- /dev/null +++ b/public/logos/github_black.svg @@ -0,0 +1,11 @@ + diff --git a/src/App.tsx b/src/App.tsx index 1164b93..ea2c67d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -49,8 +49,10 @@ function Navbar({ onNavClick, logoUrl }: { onNavClick: (e: React.MouseEvent(null); @@ -68,7 +69,7 @@ export default function DevHackHeroCompact() { const isNothingPhone = /Nothing/i.test(ua) || /\bA063\b|\bA065\b|\bA142\b|\bA142P\b/i.test(deviceModel); const is20x9 = Math.abs(ratio - 9 / 20) < 0.05; const isZFold = /SM-F|Galaxy Z Fold|GalaxyZFold|Fold/i.test(ua); - const navEl = typeof document !== 'undefined' ? document.querySelector('nav') : null; + const navEl = typeof document !== 'undefined' ? document.querySelector('header') : null; const measuredNavHeight = navEl ? Math.round(navEl.getBoundingClientRect().height) : 0; setIsMobile(width < 768); @@ -77,6 +78,7 @@ export default function DevHackHeroCompact() { setIsTightHeroSpacingDevice(isCompactPortraitPhone || isFoldOrSurfaceLayout || isZFold); setIsZFoldDevice(isZFold); setNavHeight(measuredNavHeight); + setIsXLDesktop(width >= 1280); }; checkMobile(); window.addEventListener('resize', checkMobile); @@ -142,27 +144,46 @@ export default function DevHackHeroCompact() { {/* Scrolling Content */}
{
return () => window.removeEventListener('resize', checkMobile);
}, []);
+ const titlesponsor = [
+ {
+ name: "GitHub",
+ logo: "/logos/github.svg",
+ scale: isMobile ? 1.0 : 1.3,
+ hoverScale: isMobile ? 1.1 : 1.4
+ }
+ ]
const goldSponsors = [
{
name: "AIC DSU Innovation Foundation",
@@ -21,9 +29,9 @@ const Sponsors: React.FC = () => {
hoverScale: isMobile ? 2.8 : 2.3
},
{ name: "CodeCrafters.io", logo: "/logos/codecraft.svg" },
- { name:".xyz", logo: "/logos/xyz.png", scale: 1.2, hoverScale: 1.3 },
- { name:"n8n", logo: "/logos/n8n.png", scale: 1.2, hoverScale: 1.3 },
- {name:"Render" , logo: "/logos/render.png", scale: 1.8, hoverScale: 1.9 },
+ { name: ".xyz", logo: "/logos/xyz.png", scale: 1.2, hoverScale: 1.3 },
+ { name: "n8n", logo: "/logos/n8n.png", scale: 1.2, hoverScale: 1.3 },
+ { name: "Render", logo: "/logos/render.png", scale: 1.8, hoverScale: 1.9 },
]
const communityPartners = [
@@ -104,6 +112,22 @@ const Sponsors: React.FC = () => {