Skip to content

Commit 66a4b37

Browse files
committed
Move site to subpath
1 parent ee80879 commit 66a4b37

4 files changed

Lines changed: 107 additions & 47 deletions

File tree

next.config.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
images: {
4-
domains: ['utfs.io',"example.com","images.unsplash.com"],
5-
},
6-
// basePath: process.env.NODE_ENV == "production" ? "/bost" : "/"
7-
};
8-
9-
export default nextConfig;
10-
3+
images: {
4+
domains: ['utfs.io',"iitrpr.ac.in", 'i.imgur.com',"images.unsplash.com"],
5+
},
6+
// basePath: process.env.NODE_ENV == "production" ? "/bost" : "/",
7+
basePath: '/bost',
8+
};
9+
10+
export default nextConfig;

package-lock.json

Lines changed: 93 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Home/Hero.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import Image from 'next/image';
2+
import globeImg from '@/../public/home/Globe.svg'
3+
14

25
export default function Hero() {
36
return (
@@ -7,7 +10,7 @@ export default function Hero() {
710
<p className="roboto-light text-xl lg:text-3xl LandingHeroSubtitle">Innovative thinking that turns ideas into reality.<br/>We make it happen.</p>
811
</div>
912
<div className="w-full lg:w-1/3 h-1/2 lg:h-full flex justify-center LandingHeroImage items-center">
10-
<img src="./home/Globe.svg" className="object-cover Globe h-3/5 " />{" "}
13+
<Image src={globeImg} className="object-contain Globe h-3/5 " fill={false} />{" "}
1114
</div>
1215
</section>
1316
);

src/components/Navbar/Navbar.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { usePathname, useRouter } from "next/navigation";
1010
import { useRef } from "react";
1111
import gsap from "gsap";
1212
import { useGSAP } from "@gsap/react";
13+
import logoImage from '@/../public/Logo.png';
1314
gsap.registerPlugin(useGSAP);
1415

1516
export default function Navbar({ session }) {
@@ -84,7 +85,7 @@ export default function Navbar({ session }) {
8485
</SheetContent>
8586
</Sheet>
8687
<Link className="mr-6 Logo hidden lg:flex" href="/">
87-
<img src="/Logo.png" className=" h-[60px]"></img>
88+
<Image src={logoImage} height={60} width={60} alt="BoST" />
8889
</Link>
8990
<nav className="ml-auto hidden hamburger lg:flex gap-6">
9091
{session ? (

0 commit comments

Comments
 (0)