Skip to content

Commit

Permalink
improved hide-and-seek
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 19, 2024
1 parent f227b2b commit 096ffa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/pages/tips/hide-and-seek/_solution_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}
::view-transition-new(*) {
animation: none;
height: calc(100% + 2px);
}
:root {
--neon-pink: #ff2e88;
Expand All @@ -40,11 +41,12 @@ html,body {
margin: 0;
min-height: 100vh;
width: 100vw;
overflow: clip;
}

#container {
position: relative;
max-width: 640px;
width: min(600px, max(50%,300px));
height: 100vw;
margin-inline:auto;
}
Expand All @@ -66,10 +68,11 @@ html,body {
margin: 0px auto;
padding: 32px;
min-height: calc(100vh - 64px);
width: 100%;
}
#front {
view-transition-name: front;
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="white" /><rect x="31" y="126" width="616" height="298" fill="black" /></svg>');
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="white" /><rect x="30" y="126" width="616" height="298" fill="black" /></svg>');
mask-mode: luminance;
pointer-events: none;
}
Expand Down Expand Up @@ -98,7 +101,7 @@ a {

ul {
height: 300px;
width: 600px;
width: 100%;
overflow-y: scroll;
margin: 2rem 0;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tips/hide-and-seek/solution.astro
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ import Bsky from "../../../components/Bsky.astro";
<ul></ul>
</div>
<div id="front">
<h1><span class="glitch-effect">CYBERTECH INVENTORY</span></h1>
<h1><span class="glitch-effect">INVENTORY</span></h1>
<ul></ul>
<button class="glitch-effect">RANDOMIZE</button>
<p style="max-width:640px">
Expand Down

0 comments on commit 096ffa7

Please sign in to comment.