Skip to content

Commit 7de06fc

Browse files
committed
[style]page header컴포넌트
1 parent ca1f8cb commit 7de06fc

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed
67.8 KB
Loading
1.12 KB
Loading

src/shared/components/pageHeader/PageHeader.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ interface Props {
1010
function 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>

0 commit comments

Comments
 (0)