Skip to content

Commit 42a95b7

Browse files
committed
image updated
1 parent cec50d9 commit 42a95b7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

app/layout.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import metadata from "./metadata";
1111
import "../style/globals.css";
1212
import Footer from "@/components/layout/Footer";
1313
import { memo } from "react";
14+
import Image from "next/image";
1415

1516
const layout = ({ children }: Readonly<RootLayoutProps>) => {
1617
return (
@@ -40,6 +41,17 @@ const layout = ({ children }: Readonly<RootLayoutProps>) => {
4041
>
4142
<HeroHighlight>
4243
<NavBar />
44+
{/* Optimized SEO Image */}
45+
<div className='h-30 w-30 opacity-0'>
46+
<Image
47+
src="/assets/profile-image.jpg"
48+
alt="Muhammed sinan - Mern stack developer"
49+
width={1}
50+
height={1}
51+
priority
52+
/>
53+
</div>
54+
4355
{children}
4456
<Toaster />
4557
<Footer />

app/page.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,12 @@ import TypewriterEffect from '@/components/ui/typewriter-effect';
22
import { TYPEWRITER_WORDS } from '@/constants';
33
import About from '@/components/home/About';
44
import Name from '@/components/home/Name';
5-
import Image from 'next/image';
65
import { memo } from 'react';
76

87

98
const HomePage = () => {
109
return (
1110
<main className='flex flex-col pt-12'>
12-
{/* Optimized SEO Image */}
13-
<div className='relative h-0 w-0'>
14-
<Image
15-
src="/assets/profile-image.jpg"
16-
alt="Muhammed sinan - Mern stack developer"
17-
width={1}
18-
height={1}
19-
priority
20-
className="opacity-0"
21-
/>
22-
</div>
2311

2412
<section className="w-full mx-auto sm:px-16 px-6 pb-10">
2513
<div className="pb-7 mx-auto flex flex-row items-start gap-5">

0 commit comments

Comments
 (0)