Skip to content

Commit

Permalink
Area bkg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imisaacwu committed Aug 18, 2024
1 parent 9953876 commit 0ba75e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@ img#shop-logo {
}

#joker-bkg {
position: fixed;
top: 5%;
left: 36%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-48%, -50%);
font-size: 128px;
letter-spacing: 32px;
color: rgba(0, 0, 0, 0.25);
Expand All @@ -218,9 +219,10 @@ img#shop-logo {
}

#consumable-bkg {
position: fixed;
top: 8.5%;
left: 74.5%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-48%, -50%);
font-size: 64px;
color: rgba(0, 0, 0, 0.25);
}
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ export default function App() {
<div id='main'>
<div id='top'>
<div id='jokers' className='card-container'>
<div id='joker-bkg'>JOKERS</div>
<div id='joker-area' className='card-area'>
<label id='joker-bkg'>JOKERS</label>
{game.jokers.map(j =>
<Joker key={j.id} {...j}/>
)}
</div>
<div id='joker-label' className='counter'>{`${game.jokers.length}/${game.stats.jokerSize}`}</div>
</div>
<div id='consumables' className='card-container'>
<div id='consumable-bkg'>CONSUMABLES</div>
<div id='consumables-area' className='card-area'>
<label id='consumable-bkg'>CONSUMABLES</label>
{game.cards.consumables.map(c => (
<Consumable key={c.id} {...c} />
))}
Expand Down

0 comments on commit 0ba75e1

Please sign in to comment.