Skip to content

Commit

Permalink
fixed logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitthakur00 committed Jan 6, 2025
1 parent 5863308 commit fd742af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PageHeader } from '@/app/components/page-header';
import { Title } from '@/app/components/title';
import Image from 'next/image';
import Link from 'next/link';
import nextConfig from '../../../next.config.mjs';
import { getImagePath } from '@/lib/images';

const experience: {
company: string;
Expand All @@ -14,19 +14,19 @@ const experience: {
company: 'OpenText',
role: 'Software Engineer 2',
date: 'January 2024 → Present',
logo: `${nextConfig.basePath}/opentext.png`,
logo: getImagePath('opentext.png'),
},
{
company: 'Epsilon',
role: 'Software Engineer 1/2',
date: 'January 2021 → January 2024',
logo: `${nextConfig.basePath}/epsilon.png`,
logo: getImagePath('epsilon.png'),
},
{
company: 'KLA + ',
role: 'Software Engineer Intern',
date: 'May 2020 → Jun 2020',
logo: `${nextConfig.basePath}/kla.png`,
logo: getImagePath('kla.png'),
},
];

Expand Down
3 changes: 2 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Image from 'next/image';
import nextConfig from '../next.config.mjs';

import clsx from 'clsx';
import { getImagePath } from '@/lib/images';

const SaansFont = localFont({
src: './saans-font.woff2',
Expand Down Expand Up @@ -85,7 +86,7 @@ export default function RootLayout({
<header className="pt-8 md:pt-16 pb-16 px-4 md:px-0 flex justify-between">
<Link href="/">
<Image
src={`${nextConfig.basePath}/logo2.png`}
src={getImagePath('logo2.png')}
alt="AK"
width={64}
height={64}
Expand Down
5 changes: 5 additions & 0 deletions lib/images.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import nextConfig from "@/next.config.mjs";

export const getImagePath = (imgPath: string): string => {
return `${nextConfig.basePath}/${imgPath}`;
};

0 comments on commit fd742af

Please sign in to comment.