Skip to content

Commit

Permalink
fix: config and assets (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshd332 authored Dec 10, 2023
1 parent 51d85e4 commit f0de3b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
10 changes: 6 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '',
images: {
domains: ['localhost'],
},
trailingSlash: true,
basePath: '',
assetPrefix: '',
images: {
domains: ['localhost', 'pragyan.org'],
},
};

export default nextConfig;
5 changes: 3 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import Footer from '@/components/Footer/Footer';
import './globals.css';
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import { content } from '@/components/AboutCard/AboutContent.json';
const inter = Inter({ subsets: ['latin'] });

export const metadata: Metadata = {
title: "Pragyan 24 | Let's Celebrate Technology",
description: "Pragyan '24 Main Website",
title: "Pragyan '24 | Let's Celebrate Technology",
description: content,
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
Expand Down
Binary file modified src/assets/images/leftPortal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/rightPortal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions src/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const NavBar = () => {
const [isOpened, setIsOpened] = useState(false);
const [authButton, setAuthButton] = useState<JSX.Element>(<LoginButton />);
const [mobileAuthButton, setMobileAuthButton] = useState<JSX.Element>(
<LoginButtonMobile text="LOGIN" />,
<Link href="/login">
<LoginButtonMobile text="LOGIN" />
</Link>,
);

useEffect(() => {
Expand All @@ -54,7 +56,11 @@ const NavBar = () => {
);
} else {
setAuthButton(<LoginButton />);
setMobileAuthButton(<LoginButtonMobile text="LOGIN" />);
setMobileAuthButton(
<Link href="/login">
<LoginButtonMobile text="LOGIN" />
</Link>,
);
}
}
}, []);
Expand Down

0 comments on commit f0de3b6

Please sign in to comment.