Skip to content

Commit

Permalink
final change for the luck theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Hritiksarraf committed Sep 15, 2024
1 parent 7ac86f9 commit 703b19c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 12 deletions.
File renamed without changes
Binary file added diamonds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion index-luck.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
<div>Score: <span id="score">0</span></div>
<div>Time: <span id="time">0</span> seconds</div>
</div>
<div id="grid"></div>
<div class="firstGrid">
<div id="grid"></div>
</div>


<!-- Container for final score and restart button -->
<div id="game-over" class="info" style="display: none;">
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<a class="nav-link " href="salon"><strong>Salon</strong></a>
</li>
<li class="nav-item">
<a class="nav-link " href="/assets/hakunamatata/theme-page"><strong>Theme</strong></a>
<a class="nav-link " href="./intro-luck.html"><strong>Theme</strong></a>
</li>
<li class="nav-item">
<a class="nav-link " href="/past-editions"><strong>Past Editions</strong></a>
Expand Down Expand Up @@ -173,7 +173,7 @@
<div class="content">
<h5 class="box_title">DATE</h5>
<p>
6:00 PM, 28th September, 2024
5:30 PM, 27th September, 2024
</p>
</div>
</div>
Expand All @@ -186,7 +186,7 @@ <h5 class="box_title">
location
</h5>
<p>
SJA, NITK Surathkal
LHC-C Seminar Hall, NITK Surathkal
</p>
</div>
</div>
Expand Down Expand Up @@ -646,7 +646,7 @@ <h4 class="footer_title">
time: 3000
});

$('.countdown').countdown(new Date("2024-09-28T17:00:00.000+05:30"), function (event) {
$('.countdown').countdown(new Date("2024-09-27T17:30:00.000+05:30"), function (event) {
$(this).html(
event.strftime("<div>%D <span>Days</span></div><div>%H <span>Hours</span></div><div>%M <span>Minutes</span></div><div>%S <span>Seconds</span></div>")
);
Expand Down
6 changes: 3 additions & 3 deletions intro-luck.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ <h1>Welcome to the Mine Game!</h1>
<section class="intro">
<h2>Game Introduction</h2>
<p>
Dive into an exciting game where luck and strategy come into play. In the Mine Game, you'll navigate through a grid filled with hidden surprises. Your goal is to uncover diamonds while avoiding bombs. Each diamond you reveal adds to your score, but hitting a bomb will end the game!
Dive into an exciting game where luck and strategy come into play. In the Mine Game, you'll navigate through a grid filled with hidden surprises. Your goal is to uncover Good Luck Leaf while avoiding bombs. Each Good Luck Leaf you reveal adds to your score, but hitting a bomb will end the game!
</p>
</section>
<section class="rules">
<h2>Game Rules</h2>
<ul>
<li>Click on a block to reveal what's inside.</li>
<li>There are 22 diamonds and 3 bombs hidden in the X.</li>
<li>The more diamonds you find, the higher your score.</li>
<li>There are 22 Good Luck Leaf and 3 bombs hidden in the X.</li>
<li>The more Good Luck Leaf you find, the higher your score.</li>
<li>If you click on a bomb, the game ends immediately.</li>
<li>Play smart and try to get the highest score possible!!!</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion script-luck.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function playSoundEffect(type) {
const points = calculateScore(timeTaken, blockCount); // Calculate score based on time and blocks chosen
score += points;
scoreElement.textContent = Math.round(score); // Round off the score to the nearest integer
img.src = 'diamond.png'; // Change image to 'diamond.jpeg'
img.src = 'diamonds.png'; // Change image to 'diamond.jpeg'
} else if (block === 'bomb') {
img.src = 'bomb.png'; // Change image to 'bomb.jpeg'
playSoundEffect('bomb')
Expand Down
7 changes: 6 additions & 1 deletion styles-luck.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@ body {
font-size: 1.5rem;
text-align: center;
}
.firstGrid{
background-color: rgb(90, 0, 0);
}

/* Grid styling */
#grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: 10px;
grid-gap: 5px;
width: 100%;
max-width: 500px;
margin: 0 auto;
padding: 3px;
padding-left: 3px;
}

/* Button styling */
Expand Down
6 changes: 4 additions & 2 deletions theme-luck.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
<div class="text-section">
<h1>The Luck Factor</h1>
<p>
"In life's dance, let joy compose the rhythm, impulsiveness conduct the beat, and carefree moments choreograph a graceful masterpiece. Embrace the happiness of the unrehearsed, crafting a symphony of spontaneity on the canvas of existence."
"Luck is often seen as a mysterious force, an invisible hand that shapes our lives in ways we can't predict or control. But what if luck isn't just random? What if it's something we can harness, shape, or even attract? "The Luck Factor" delves into this captivating idea, exploring the intersection of chance, choice, and mindset. Can the right attitude, a proactive approach, and resilience increase our likelihood of favorable outcomes? Or is luck purely the product of probability, an inevitable byproduct of life's chaotic nature?
"
<br><br>
Embark on a captivating odyssey into the enchanting realm of "Hakuna Matata," where each syllable orchestrates a symphony of carefree living. Journey through linguistic origins and unravel the profound philosophical underpinnings, discovering how this timeless mantra has evolved into a universal symbol of positivity. Delight in the psychological dimensions of embracing a worry-free mindset, skillfully navigating life's ebbs and flows. This celebration of the symphony of existence invites you to weave "Hakuna Matata" into daily life, transforming each moment into a harmonious note. Immerse in the vibrant spirit, where joy and wisdom converge, illuminating a path adorned with carefree serenity.
This theme invites us to rethink our understanding of luck, pushing us to question whether successful people are simply luckier or whether they've mastered the art of positioning themselves to take advantage of life's uncertainties. By examining stories of triumph, failure, and unexpected turns, we seek to uncover how much of what we call "luck" is within our influence. Through this exploration, we aim to inspire a deeper reflection on the role luck plays in our personal journeys and how we can better navigate the unpredictable nature of life itself.

</p>
</div>
</div>
Expand Down

0 comments on commit 703b19c

Please sign in to comment.