diff --git a/components/associations/Associations.js b/components/associations/Associations.js index 56c8ace..4c946f6 100644 --- a/components/associations/Associations.js +++ b/components/associations/Associations.js @@ -1,5 +1,5 @@ import { useEffect, useRef } from 'react'; -import Image from 'next/image'; +// import Image from 'next/image'; import Styles from './association.module.css'; import BottomGlitter from '../StyledText/BottomGlitter'; @@ -14,10 +14,8 @@ function Associations() {
- Google Developers Student Clubs, BIT Sindri @@ -25,10 +23,8 @@ function Associations() {
- GeeksForGeeks Student Chapter, BIT Sindri @@ -36,10 +32,8 @@ function Associations() {
- Codechef Student Chapter, BIT Sindri diff --git a/components/navbar/Navbar.js b/components/navbar/Navbar.js index ea32e33..fa702a8 100644 --- a/components/navbar/Navbar.js +++ b/components/navbar/Navbar.js @@ -1,13 +1,14 @@ /* eslint-disable no-alert */ import React, { useEffect, useState } from 'react'; import { HiMenuAlt4 } from 'react-icons/hi'; -import Image from 'next/image'; import Link from 'next/link'; import styles from './Navbar.module.css'; -import Logo from '../../assets/hncc-logo.png'; +// ✅ Fixed: use logo directly with instead of next/image for Netlify import Button from '../button/Button'; import Sidebar from './Sidebar'; +const Logo = '/hncc-logo.png'; + const SpanStyle = { zIndex: 1, color: 'inherit', @@ -61,7 +62,15 @@ function Navbar() {
- HnCC + {/* ✅ Fixed: using ensures it loads correctly from public on Netlify */} + HnCC

Hackathon and Coding Club

diff --git a/components/navbar/Sidebar.js b/components/navbar/Sidebar.js index f925915..bfcb333 100644 --- a/components/navbar/Sidebar.js +++ b/components/navbar/Sidebar.js @@ -1,12 +1,13 @@ import React, { useEffect, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; import { CgClose } from 'react-icons/cg'; -import Image from 'next/image'; import Link from 'next/link'; import styles from './Hamburger.module.css'; -import Logo from '../../assets/hncc-logo.png'; +// ✅ Fixed: use logo directly with instead of next/image for Netlify import Button from '../button/Button'; +const Logo = '/hncc-logo.png'; + const SpanStyle = { zIndex: 1, color: 'inherit', @@ -65,7 +66,15 @@ function Sidebar({ isMounted, unmount }) {
- HnCC + {/* ✅ Fixed: use for Netlify compatibility */} + HnCC
diff --git a/assets/hncc-logo.png b/public/hncc-logo.png similarity index 100% rename from assets/hncc-logo.png rename to public/hncc-logo.png