File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,20 @@ interface Props {
1010function PageHeader ( { src, title, description } : Props ) {
1111 return (
1212 < div
13- className = "h-100 w-full bg-repeat relative"
13+ className = "h-40 w-full bg-repeat o-cover relative md:h-70 lg:h-100 "
1414 style = { {
1515 backgroundImage : `url(${ Star . src } )` ,
1616 } }
1717 >
1818 < div className = "absolute bottom-0 left-1/2 -translate-x-1/2" >
19- < Image src = { src } alt = "" />
20- < div className = "text-center text-nowrap font-serif font-bold flex flex-col absolute bottom-[55px]" >
21- < h2 className = "text-[64px]" > { title } </ h2 >
22- < p className = "text-2xl" > { description } </ p >
19+ < Image src = { src } alt = "" width = { src . width } height = { src . height } />
20+ < div className = "text-center text-nowrap font-serif font-bold flex flex-col absolute left-1/2 -translate-x-1/2 bottom-4 md:bottom-9 lg:bottom-[55px]" >
21+ < h2 className = "text-shadow-[0_0_12px_#1a1a1a] text-2xl md:text-5xl lg:text-3xl lg:text-[64px]" >
22+ { title }
23+ </ h2 >
24+ < p className = "text-shadow-[0_0_12px_#1a1a1a] text-xs md:text-xl lg:text-2xl" >
25+ { description }
26+ </ p >
2327 </ div >
2428 </ div >
2529 </ div >
You can’t perform that action at this time.
0 commit comments