Skip to content

Commit 5863308

Browse files
committed
fixed logo
1 parent eb7abe1 commit 5863308

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

app/about/page.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { PageHeader } from '@/app/components/page-header';
22
import { Title } from '@/app/components/title';
33
import Image from 'next/image';
44
import Link from 'next/link';
5+
import nextConfig from '../../../next.config.mjs';
56

67
const experience: {
78
company: string;
@@ -13,19 +14,19 @@ const experience: {
1314
company: 'OpenText',
1415
role: 'Software Engineer 2',
1516
date: 'January 2024 → Present',
16-
logo: '/opentext.png',
17+
logo: `${nextConfig.basePath}/opentext.png`,
1718
},
1819
{
1920
company: 'Epsilon',
2021
role: 'Software Engineer 1/2',
2122
date: 'January 2021 → January 2024',
22-
logo: '/epsilon.png',
23+
logo: `${nextConfig.basePath}/epsilon.png`,
2324
},
2425
{
2526
company: 'KLA + ',
2627
role: 'Software Engineer Intern',
2728
date: 'May 2020 → Jun 2020',
28-
logo: '/kla.png',
29+
logo: `${nextConfig.basePath}/kla.png`,
2930
},
3031
];
3132

app/layout.tsx

+13-14
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import localFont from 'next/font/local';
77
import { JetBrains_Mono } from 'next/font/google';
88
import { GoogleAnalytics } from '@next/third-parties/google';
99
import Image from 'next/image';
10+
import nextConfig from '../next.config.mjs';
1011

1112
import clsx from 'clsx';
1213

@@ -28,14 +29,14 @@ export const metadata: Metadata = {
2829
twitter: {
2930
card: 'summary_large_image',
3031
creator: '@ankitthakur00',
31-
images: ['/me/logo2.png'],
32+
images: [`${nextConfig.basePath}/logo2.png`],
3233
title: 'Ankit Kumar - Software Engineer',
3334
},
3435
openGraph: {
3536
title: 'Ankit Kumar - Software Engineer',
3637
images: [
3738
{
38-
url: '/me/logo2.png',
39+
url: `${nextConfig.basePath}/logo2.png`,
3940
width: 1200,
4041
height: 630,
4142
alt: 'Ankit Kumar - Software Engineer',
@@ -82,17 +83,15 @@ export default function RootLayout({
8283
>
8384
<div className="max-w-2xl lg:max-w-xl mx-auto">
8485
<header className="pt-8 md:pt-16 pb-16 px-4 md:px-0 flex justify-between">
85-
<div className="h-64 w-64">
86-
<Link href="/">
87-
<Image
88-
src="/me/logo2.png"
89-
alt="AK"
90-
width={64}
91-
height={64}
92-
className="w-auto hover:opacity-70 transition-opacity"
93-
/>
94-
</Link>
95-
</div>
86+
<Link href="/">
87+
<Image
88+
src={`${nextConfig.basePath}/logo2.png`}
89+
alt="AK"
90+
width={64}
91+
height={64}
92+
className="w-auto hover:opacity-70 transition-opacity"
93+
/>
94+
</Link>
9695
<nav className="flex gap-4">
9796
<Link
9897
href="/about"
@@ -122,7 +121,7 @@ export default function RootLayout({
122121
</footer>
123122
</div>
124123
<Analytics />
125-
<GoogleAnalytics gaId="G-NRKQPP7M9P" />
124+
<GoogleAnalytics gaId="" />
126125
</body>
127126
</html>
128127
);

next.config.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/** @type {import('next').NextConfig} */
2+
3+
const basePath = process.env.NODE_ENV === 'development' ? '' : '/me';
24
const nextConfig = {
3-
basePath: '/me',
5+
basePath: basePath,
46
reactStrictMode: true,
57
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
68
redirects: async () => {

0 commit comments

Comments
 (0)