Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve sizing on medium-sized screens #101

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,15 @@ function App() {
return (
<div className={darkMode ? 'dark' : ''}>
<div className={`flex flex-col justify-between h-fill bg-background dark:bg-background-dark`}>
<header className="flex items-center py-2 px-3 text-primary dark:text-primary-dark">
<header className="flex items-center py-1 sm:py-2 px-3 text-primary dark:text-primary-dark">
<button
type="button"
onClick={() => setSettingsModalIsOpen(true)}
className="p-1 rounded-full"
>
<Settings />
</button>
<h1 className="flex-1 text-center text-xl xxs:text-2xl sm:text-4xl tracking-wide font-bold font-righteous">
<h1 className="flex-1 text-center text-xl xxs:text-2xl sm:text-3xl tracking-wide font-bold font-righteous">
WORD MASTER
</h1>
<button
Expand All @@ -360,7 +360,7 @@ function App() {
<Info />
</button>
</header>
<div className="flex items-center flex-col py-3 flex-1 justify-center relative">
<div className="flex items-center flex-col pb-3 flex-1 justify-center relative">
<div className="relative">
<div className="grid grid-cols-5 grid-flow-row gap-4">
{board.map((row: string[], rowNumber: number) =>
Expand All @@ -371,7 +371,7 @@ function App() {
rowNumber,
colNumber,
letter
)} inline-flex items-center font-medium justify-center text-lg w-[13vw] h-[13vw] xs:w-14 xs:h-14 sm:w-20 sm:h-20 rounded-full`}
)} inline-flex items-center font-medium justify-center text-lg w-[13vw] h-[13vw] xs:w-14 xs:h-14 rounded-full`}
>
{letter}
</span>
Expand Down