Skip to content

Commit 8b4a334

Browse files
committed
Fix hero title overlap
1 parent c005529 commit 8b4a334

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎src/index.css‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@
251251
text-shadow: none;
252252
}
253253

254+
.hero-title-mark {
255+
display: block;
256+
width: fit-content;
257+
margin-top: 0.16em;
258+
line-height: 0.92;
259+
}
260+
254261
.hero-title {
255262
text-shadow: var(--hero-title-shadow);
256263
}

‎src/pages/Home.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Home = () => (
3737
<div className="hero-copy max-w-[36rem]">
3838
<p className="eyebrow">Student org / UC Berkeley</p>
3939
<h1 className="hero-title mt-5 max-w-[15ch] text-4xl font-bold leading-[1.08] text-heading sm:text-5xl md:text-6xl">
40-
Computational Biology at <span className="gold-mark">Berkeley</span>
40+
Computational Biology at <span className="gold-mark hero-title-mark">Berkeley</span>
4141
</h1>
4242
<p className="mt-6 max-w-[48ch] text-base leading-relaxed text-muted-foreground md:text-lg">
4343
A student-driven community exploring the intersection of computer science, biology, and healthcare.

0 commit comments

Comments
 (0)