@@ -4,7 +4,6 @@ import Image from "next/image";
44import Header from "@/components/header"
55import Footer from "@/components/footer" ;
66
7- import HeroImage from '@/../public/clouds/sunset.webp'
87
98import { posts } from "@/app/blog/posts"
109
@@ -15,7 +14,12 @@ export default function page() {
1514 < div className = "xl:w-[1200px] lg:w-[1000px] md:w-[768px] w-full px-4 flex gap-4 flex-col py-2" >
1615 < Header />
1716
18- < Image src = { HeroImage } className = "h-[200px] w-full object-cover" alt = "picture of sunset" priority />
17+ < div className = "relative h-52 w-full" >
18+ < Image
19+ src = "/clouds/sunset.webp" fill = { true }
20+ className = "object-cover" alt = "picture of sunset" priority
21+ />
22+ </ div >
1923
2024
2125
@@ -32,20 +36,20 @@ export default function page() {
3236 < div className = "w-full border-2 border-gray-800 rounded p-2" >
3337 < h1 className = "font-bold pb-2" > Writings:</ h1 >
3438 < div className = "flex flex-col gap-4" >
35- { posts . map ( ( post , index ) => (
36- < div key = { index } className = "p-2 border rounded" >
37- < a href = { `/blog/${ post . url } ` } >
38- < h2 className = "text-xl font-bold" > { post . title } </ h2 >
39- < p className = "text-sm" > { new Date ( post . published ) . toLocaleDateString ( 'en-US' , {
40- year : 'numeric' ,
41- month : 'long' ,
42- day : 'numeric'
43- } ) } </ p >
44- < p className = "text-sm" > { post . teaser } </ p >
45- </ a >
46- { /* <p dangerouslySetInnerHTML={{ __html: post.post }} /> */ }
47- </ div >
48- ) ) }
39+ { posts . map ( ( post , index ) => (
40+ < div key = { index } className = "p-2 border rounded" >
41+ < a href = { `/blog/${ post . url } ` } >
42+ < h2 className = "text-xl font-bold" > { post . title } </ h2 >
43+ < p className = "text-sm" > { new Date ( post . published ) . toLocaleDateString ( 'en-US' , {
44+ year : 'numeric' ,
45+ month : 'long' ,
46+ day : 'numeric'
47+ } ) } </ p >
48+ < p className = "text-sm" > { post . teaser } </ p >
49+ </ a >
50+ { /* <p dangerouslySetInnerHTML={{ __html: post.post }} /> */ }
51+ </ div >
52+ ) ) }
4953 </ div >
5054 </ div >
5155
0 commit comments