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

Develop #10

Merged
merged 2 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Styling misadventures
  • Loading branch information
tarrball committed Mar 30, 2022
commit 9ee745a27a2e49c5c5ce91156f82a637cc012648
3 changes: 1 addition & 2 deletions components/answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ function Answer({ word, wasFound }: AnswerProp) {
<style jsx>{`
label {
font-weight: bold;
letter-spacing: 5px;
margin: 0 4px;
margin: 0 8px;
text-transform: uppercase;
white-space: nowrap;
}
Expand Down
7 changes: 4 additions & 3 deletions components/tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function Tile({ value, onTap }: Props) {
</button>
<style jsx>{`
div {
padding: 4px;
flex-basis: 16.6%;
flex: 1 1 0;
max-width: 150px
}

button {
Expand All @@ -23,8 +23,9 @@ function Tile({ value, onTap }: Props) {
font-size: 170%;
font-weight: bold;
height: 50px;
padding: 4px;
text-transform: uppercase;
width: 100%;
width: calc(100% - 8px);
}
`}</style>
</div>
Expand Down
17 changes: 13 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function Home() {
<Head>
<title>Palabs</title>
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
</Head>

{scramble ? (
Expand Down Expand Up @@ -100,8 +101,6 @@ function Home() {
body {
background: #222020;
color: white;
padding: 8px;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
Expand All @@ -110,11 +109,20 @@ function Home() {
box-sizing: border-box;
}

.container {
align-items: center;
display: flex;
flex-direction: column;
height: 85vh;
width: 100%;
}

main {
display: flex;
flex-direction: column;
height: 75vh;
flex-grow: 1;
overflow: hidden;
width: 100%
}

.answers-container {
Expand All @@ -139,10 +147,10 @@ function Home() {
}

.entry-container {
align-items: stretch;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
}

.entry-container > * {
Expand All @@ -166,6 +174,7 @@ function Home() {
display: flex;
flex-direction: column;
margin-top: 1.5em;
width: 100%;
}

footer div {
Expand Down