Skip to content

Commit

Permalink
snow button centering and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
bandinopla committed Dec 3, 2024
1 parent 04e8b49 commit 7005174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/componentes/snow.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Snowfall() {
if (!isChristmasSeason) return;

return <>
<div onClick={()=>toggleSnow()} style={{ display:"flex", color:"red", alignItems:"center", border:"3px solid red", borderTop:"none", position:"fixed", top:0, left:"50%", background:"#eee", zIndex:9999, padding:"5px 10px", borderBottomLeftRadius:5, borderBottomRightRadius:5, cursor:"pointer" }}>
<div onClick={()=>toggleSnow()} style={{ display:"flex",transform: "translateX(-50%)", gap:5, color:"red", alignItems:"center", border:"3px solid red", borderTop:"none", position:"fixed", top:0, left:"50%", background:"#eee", zIndex:9999, padding:"5px 10px", borderBottomLeftRadius:5, borderBottomRightRadius:5, cursor:"pointer" }}>
<AcUnitIcon/> Snow: <strong>{ on?"ON":"OFF"}</strong></div>

{ on && <div class="snowflakes" aria-hidden="true">
Expand Down

0 comments on commit 7005174

Please sign in to comment.