Skip to content

Commit

Permalink
tweak styles
Browse files Browse the repository at this point in the history
working on prize claim ux
  • Loading branch information
merklejerk committed May 26, 2024
1 parent f9990be commit 15e5f9d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/lib/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ button:not(.custom) {
cursor: pointer;
border-image: url('/button-border.png') 14% 12% / 0.66em 2ex round;
background: none;
padding: 0.25em 2ex;
padding: 0.05em 2ex;
font-weight: bold;
font-family: 'Fondamento';
font-style: italic;
Expand All @@ -74,4 +74,19 @@ button:not(.custom) {
&:hover {
transform: translate(0.25em, 0);
}
}

input:not([type]), input[type='text'] {
background: none;
border: none;
border-image: url('/text-input-border.png') 15% 22.5% / 0.5em 1.75ex round;
padding: 0.5em 1.5ex 0.33em 1.5ex;
font-family: 'Nightshade';
font-size: 1.2em;
font-style: italic;
font-weight: 400;

&:focus {
outline: none;
}
}
6 changes: 6 additions & 0 deletions src/routes/player/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
functionName: 'seasonState',
args: [$season.idx],
}),
(publicClient as any).getLogs({
address: CONTEST_ADDRESS,
events: CONTEST_ABI.filter(e => e.name === 'WinnerDeclared'),
args: [$season.idx],
fromBlock: 'earliest',
}),
]);
playerIsActive = submittedCodeHash !== zeroHash;
isSeasonClosed = seasonState !== SeasonState.Started;
Expand Down
Binary file modified static/button-border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/text-input-border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15e5f9d

Please sign in to comment.