diff --git a/assets/main.css b/assets/main.css index a84556d62..0ab4fe198 100644 --- a/assets/main.css +++ b/assets/main.css @@ -290,6 +290,16 @@ a:active { height: 100%; display: block; image-rendering: pixelated; + touch-action: none; + user-select: none; + -webkit-user-drag: none; +} + +/* A finger on a phone pans and pinches with the browser. A mouse drag still selects. */ +@media (pointer: coarse) { + .map-image { + touch-action: manipulation; + } } .map-position { @@ -309,6 +319,74 @@ a:active { pointer-events: none; } +.map-selected-layer { + position: absolute; + inset: 0; + pointer-events: none; + z-index: 12; +} + +.map-selected { + position: absolute; + width: 1%; + height: 1%; + background: #ffd700; + transform-origin: center; + animation: selection-pulse 0.9s ease-in-out infinite; + animation-delay: var(--pulse-delay, 0ms); +} + +.mint-prompt { + display: grid; +} + +.mint-prompt > * { + grid-area: 1 / 1; +} + +.home-mint-actions { + display: flex; + flex-direction: row; + flex-wrap: wrap; + gap: 0.75rem; + justify-self: start; + align-self: start; +} + +.mint-prompt.is-minting #mint-instructions { + visibility: hidden; +} + +.mint-prompt:not(.is-minting) .home-mint-actions { + visibility: hidden; +} + +#mint-selected { + white-space: nowrap; +} + +.mint-prompt.is-minting #mint-selected { + transform-origin: left center; + animation: mint-pulse 0.9s ease-in-out infinite; +} + +@keyframes selection-pulse { + 0%, 100% { opacity: 0.95; transform: scale(1); } + 50% { opacity: 0.25; transform: scale(0.72); } +} + +@keyframes mint-pulse { + 0%, 100% { transform: scale(1); } + 50% { transform: scale(1.08); } +} + +@media (prefers-reduced-motion: reduce) { + .map-selected, + .mint-prompt.is-minting #mint-selected { + animation: none; + } +} + .newly-feed { width: 100%; display: grid; @@ -1073,6 +1151,10 @@ a:active { .mint-image-line .btn { width: 100%; } + + .home-mint-actions .btn { + width: auto; + } } @media (prefers-reduced-motion: reduce) { diff --git a/index.html b/index.html index 347611e88..aaf67b112 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ {{ page.title }} - + {% include foot.html %} @@ -40,12 +40,19 @@
-

Click any available Square () to mint or another Square to visit.

+
+

Click any available Square () to mint or another Square to visit.

+
+ Mint 1 Square + +
+
- +
All Su Squares
+
@@ -67,6 +74,8 @@ {% include footer.html show_homepage_image_notice=true %}