Skip to content

Commit 59573e8

Browse files
authored
Merge pull request #238 from ACM-VIT/main
fix
2 parents 00a0ed5 + 7317a8e commit 59573e8

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

app/@protected_routes/clientSide.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ export default function ClientSide({
8383
<div ref={navbarRef}>
8484
<NavBar isNavOn={isNavOn} toggleNavbar={toggleNavbar} />
8585
</div>
86-
{isNavOn && (
87-
<div className="fixed inset-0 bg-black bg-opacity-50 z-10 transition-opacity duration-300"></div>
88-
)}
8986
<main
9087
className={`flex-grow transition-all duration-300 ease-in-out ${
9188
isNavOn ? "lg:w-[95vw] md:w-[92vw]" : "w-[100vw]"

app/globals.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "tailwindcss";
2+
@custom-variant dark (&:where(.dark, .dark *));
23

34
:root {
45
--foreground-rgb: 0, 0, 0;

next.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3+
turbopack: {},
34
images: {
45
domains: ['storage.googleapis.com'],
56
},
7+
webpack: (config, { isServer }) => {
8+
if (isServer) {
9+
config.externals.push('canvas');
10+
} else {
11+
config.resolve.alias.canvas = false;
12+
}
13+
return config;
14+
},
615
};
716

817
export default nextConfig;

0 commit comments

Comments
 (0)