Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mirak-oracle authored Jun 27, 2024
1 parent 2760400 commit b0be2ac
Showing 1 changed file with 62 additions and 8 deletions.
70 changes: 62 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<style>
.hidden { display: none; }
.hidden { display: none; }
.loading-screen {
position: fixed;
top: 0;
Expand Down Expand Up @@ -50,9 +50,44 @@
color: transparent;
-webkit-background-clip: text;
background-clip: text;
animation: gradient-animation 2s linear infinite, rotate-animation 2s linear infinite;
animation: gradient-animation 2s linear infinite;
}

.rotating-circle {
position: relative;
width: 150px;
height: 150px;
border: 5px solid;
border-image: linear-gradient(45deg, #ff0099, #493240, #1CB5E0, #000046) 1;
border-radius: 50%;
animation: rotate-animation 4s linear infinite;
margin: auto;
}
@keyframes rotate-animation {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.rotating-circle .balance {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 1.5rem;
}
.task-button {
background: linear-gradient(45deg, #ff0099, #493240, #1CB5E0, #000046);
color: white;
font-bold;
padding: 1rem;
border-radius: 1rem;
transition: background 0.3s ease;
display: block;
width: 100%;
margin-bottom: 1rem;
}
.task-button:hover {
background-position: 100% 0;
}
}
</style>
</head>
Expand Down Expand Up @@ -91,10 +126,17 @@ <h2 class="text-2xl mb-4">Complete Tasks to Boost Mining Rate</h2>
</ul>
</div>

<div id="rewardsSection" class="hidden">
<h2 class="text-2xl mb-4">Daily Rewards</h2>
<button class="bg-yellow-500 hover:bg-yellow-700 text-white font-bold py-2 px-4 rounded-full" onclick="claimDailyReward()">Claim Daily Reward</button>
</div>
<div class="mt-8">
<h2 class="text-2xl font-bold">Daily Rewards</h2>
<div id="dailyRewards">
<p class="mt-2">Day 1: 100 CosmicCoin</p>
<p class="mt-2">Day 2: 200 CosmicCoin</p>
<p class="mt-2">Day 3: 300 CosmicCoin</p>
<p class="mt-2">Day 4: 400 CosmicCoin</p>
<p class="mt-2">Day 5: 500 CosmicCoin</p>
<p class="mt-2">Day 6: 600 CosmicCoin</p>
<p class="mt-2">Day 7: 700 CosmicCoin</p>
</div>

<div id="referralSection" class="hidden">
<h2 class="text-2xl mb-4">Referral Program</h2>
Expand Down Expand Up @@ -208,7 +250,19 @@ <h2 class="text-2xl mb-4">Wallet</h2>
localStorage.setItem('balance', currentBalance + 15); // Daily reward amount
updateBalanceDisplay();
}

// Tasks button event listeners
const tasks = document.querySelectorAll('.task-button');
tasks.forEach((taskButton, index) => {
taskButton.addEventListener('click', () => {
let reward = (index + 1) * 100;
cosmicBalance += reward;
balanceDisplay.textContent = `${cosmicBalance} CosmicCoin`;
taskButton.disabled = true;
taskButton.textContent = "Task Completed";
notifyUser(`You earned ${reward} CosmicCoin!`);
});
});

function inviteFriend() {
alert('Invite sent!');
// Add logic for inviting friends
Expand Down

0 comments on commit b0be2ac

Please sign in to comment.