Skip to content

Commit

Permalink
favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenH47 committed Mar 5, 2024
1 parent 5d5b57a commit 598689c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
Binary file added public/images/apple-touch-icon.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 added public/images/favicon-16x16.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 added public/images/favicon.ico
Binary file not shown.
Binary file added src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 16 additions & 13 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const inter = Inter({ subsets: ['latin'] });
const title = 'Green Huang | Full Stack Developer From Melbourne Australia.';
const description =
'A self-proclaimed programmer who specializes in full stack develop and deployment.';
const url = 'https://greenhuang47.online/';
const url = 'https://greenhuang.com/';

export const metadata: Metadata = {
metadataBase: new URL(url),
Expand Down Expand Up @@ -49,9 +49,9 @@ export const metadata: Metadata = {
images: '/images/open-graph-sagar.png',
},
icons: {
icon: '/favicon.ico',
shortcut: '/favicon-16x16.png',
apple: '/apple-touch-icon.png',
icon: '/icon.png',
shortcut: 'https://download.greenhuang.com/favicon.ico',
apple: 'https://download.greenhuang.com/favicon.ico',
},
};

Expand All @@ -65,21 +65,24 @@ export default function RootLayout({
return (
<html lang="en" className="!scroll-smooth" suppressHydrationWarning>
{googleAnalyticsId ? (
<head>
<Script
async
src={`https://www.googletagmanager.com/gtag/js?id=${googleAnalyticsId}`}
></Script>
<Script id="google-anayltics-script">
{`
<head>

<Script
async
src={`https://www.googletagmanager.com/gtag/js?id=${googleAnalyticsId}`}
></Script>
<Script id="google-anayltics-script">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${googleAnalyticsId}');
`}
</Script>
</head>
</Script>
<title></title>
<link rel="icon" href="https://download.greenhuang.com/favicon.ico" sizes="any"/>
</head>
) : null}
<body className={`${inter.className} bg-gray text-gray-600 antialiased`}>
<Providers>
Expand Down
2 changes: 1 addition & 1 deletion src/components/general/download-cv.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Button from '@/components/general/button';

const DownloadCV = () => {
return (
<Button onClick={() => window?.open('https://download.greenhuang47.online/GreenHuangCV.pdf', '_blank')}>
<Button onClick={() => window?.open('https://download.greenhuang.com/GreenHuangCV.pdf', '_blank')}>
Download CV
</Button>
);
Expand Down
6 changes: 4 additions & 2 deletions src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Typography from '@/components/general/typography';

const Logo = () => (
<Typography variant="h3" className="font-bold">
{'<SS />'}
{'<GH />'}
</Typography>
);

Expand All @@ -38,12 +38,14 @@ const Header = () => {
}, [size, isOpen]);

return (
<header

<header
className={mergeClasses(
'sticky top-0 z-30 w-full border-b border-transparent bg-gray max-md:border-gray-100',
scrolled ? 'bg-gray/50 backdrop-blur-xl md:border-gray-100' : ''
)}
>

<div className="mx-auto flex w-full max-w-7xl items-center justify-between p-4 md:px-8">
<Link href="/" noCustomization>
<Logo />
Expand Down

0 comments on commit 598689c

Please sign in to comment.