Skip to content

Commit

Permalink
Add font scaling for sponsors section
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 committed Dec 14, 2024
1 parent ac671a7 commit baf78a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sections/Sponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ const Sponsors: React.FC = () => {
className={styles.button}
data-variant="secondary"
>
<Typography variant="title/small">Sponsor DiamondHacks!</Typography>
<Typography variant="title/small" className={styles.buttonText}>
Sponsor DiamondHacks!
</Typography>
</Link>
</div>
<Image src={HoldingDiamond} alt="Diamond illustration" className={styles.background} />
Expand Down
12 changes: 12 additions & 0 deletions src/sections/Sponsors/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,16 @@

.bottomText {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);

@media screen and (max-width: vars.$breakpoint-md) {
font-size: 1.25rem !important;
line-height: 1.5rem !important;
}
}

.buttonText {
@media screen and (max-width: vars.$breakpoint-md) {
font-size: 1rem !important;
line-height: 1.25rem !important;
}
}

0 comments on commit baf78a3

Please sign in to comment.