File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import metadata from "./metadata";
1111import "../style/globals.css" ;
1212import Footer from "@/components/layout/Footer" ;
1313import { memo } from "react" ;
14+ import Image from "next/image" ;
1415
1516const 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 />
Original file line number Diff line number Diff line change @@ -2,24 +2,12 @@ import TypewriterEffect from '@/components/ui/typewriter-effect';
22import { TYPEWRITER_WORDS } from '@/constants' ;
33import About from '@/components/home/About' ;
44import Name from '@/components/home/Name' ;
5- import Image from 'next/image' ;
65import { memo } from 'react' ;
76
87
98const 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" >
You can’t perform that action at this time.
0 commit comments