Skip to content

Commit

Permalink
Improve font size on smart phone
Browse files Browse the repository at this point in the history
  • Loading branch information
naoki-tomita committed May 11, 2023
1 parent ba17788 commit a472f14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { styled } from "zstyl";

const Heading = styled.h1`
font-size: 3.25em;
@media (max-width: 560px) {
font-size: 2.5em;
}
@media (max-width: 450px) {
font-size: 1.7em;
}
`;

const Link = styled.a`
Expand Down
4 changes: 4 additions & 0 deletions app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const Heading1 = styled.h1`
text-align: center;
font-size: 4.2em;
border: none;

@media (max-width: 560px) {
font-size: 2.5em;
}
`;

const Heading2 = styled.h2`
Expand Down

0 comments on commit a472f14

Please sign in to comment.