Skip to content

Commit 47ee42b

Browse files
committed
add initial spinner
1 parent 12c095b commit 47ee42b

File tree

3 files changed

+13
-26
lines changed

3 files changed

+13
-26
lines changed

frontend/css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,14 @@ section {
296296
width: 100%;
297297
}
298298

299+
/* SPINNER */
300+
.dot-spin {
301+
position: absolute;
302+
top: 50%;
303+
left: 50%;
304+
transform: translate(-50%, -50%) scale(3);
305+
}
306+
299307
/* MEDIA QUERIES */
300308

301309
@media screen and (max-width: 768px) {

frontend/index.html

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -160,32 +160,7 @@ <h2>Minted!</h2>
160160
</div>
161161
</section>
162162

163-
<!-- <section>
164-
<h1>MINT</h1>
165-
<div>
166-
<div id="address">Wallet not connected</div>
167-
168-
<div>
169-
<button id="connect" onclick="connect()">Connect your wallet</button>
170-
</div>
171-
<div>
172-
<div>Minting price per token: <a id="price" target="_blank"></a></div>
173-
<div>Maximum tokens per mint: <span id="maxAmount"></span></div>
174-
175-
<div>
176-
<input
177-
id="amount"
178-
type="number"
179-
step="1"
180-
min="1"
181-
max="10"
182-
value="1"
183-
/>
184-
</div>
185-
</div>
186-
</div>
187-
<button id="mint" onclick="mint()">Mint</button>
188-
</section> -->
163+
<div id="spinner" class="dot-spin"></div>
189164

190165
<div class="splide">
191166
<div class="splide__track">

frontend/js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ async function loadInfo() {
8383
const actionButton = document.getElementById("actionButton");
8484
const mintContainer = document.getElementById("mintContainer");
8585
const mintButton = document.getElementById("mintButton");
86+
const spinner = document.getElementById("spinner");
8687

8788
let startTime = "";
8889
if (publicMintActive) {
@@ -130,6 +131,9 @@ async function loadInfo() {
130131
clockdiv.setAttribute("data-date", startTime);
131132
countdown();
132133

134+
// HIDE SPINNER
135+
spinner.classList.add('hidden');
136+
133137
// SHOW CARD
134138
setTimeout(() => {
135139
const countdownCard = document.querySelector('.countdown');

0 commit comments

Comments
 (0)