Skip to content

Commit

Permalink
updated favicon and logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerryzjx committed Jul 10, 2024
1 parent 6736352 commit 89844bc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
Binary file removed app/favicon.ico
Binary file not shown.
38 changes: 21 additions & 17 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
import { GeistSans } from "geist/font/sans";
import '@fontsource/nunito/400.css';
import '@fontsource/nunito/700.css';
import "./globals.css";

const defaultUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";

export const metadata = {
metadataBase: new URL(defaultUrl),
title: "Electrium Shop",
description: "Electrium Mobility's Shop",
metadataBase: new URL(defaultUrl),
title: "Electrium Shop",
description: "Electrium Mobility's Shop",
icons: {
icon: '/img/favicon.png',
},
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={GeistSans.className}>
<body>
{children}
</body>
</html>
);
}
return (
<html lang="en">
<body style={{ fontFamily: 'Nunito, sans-serif' }}>
{children}
</body>
</html>
);
}
4 changes: 2 additions & 2 deletions components/shop/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ export default function Navbar() {
return (
<nav className="flex justify-between items-center p-4 bg-white">
<div className="flex items-center">
<Image src="/img/logo.png" alt="Electrium Mobility" width={40} height={40} />
<Image src="/img/favicon.png" alt="Electrium Mobility" width={40} height={40} />
<span className="ml-2 text-xl font-semibold">electrium mobility</span>
</div>
<div className="space-x-4">
<Link href="https://electriummobility.com/about" className="text-gray-600 hover:text-gray-900">About</Link>
<Link href="https://electriummobility.com/team" className="text-gray-600 hover:text-gray-900">Team</Link>
<Link href="https://electriummobility.com/docs/W2024-projects/project1_2023" className="text-gray-600 hover:text-gray-900">Projects</Link>
<Link href="https://electriummobility.com/sponsors" className="text-gray-600 hover:text-gray-900">Sponsors</Link>
<Link href="/shop" className="text-gray-600 hover:text-gray-900">Shop</Link>
<Link href="" className="text-gray-600 hover:text-gray-900">Shop</Link>
<Link href="https://electriummobility.com/contact" className="text-gray-600 hover:text-gray-900">Contact</Link>
</div>
<div className="flex items-center space-x-4">
Expand Down
File renamed without changes

0 comments on commit 89844bc

Please sign in to comment.