Skip to content

Commit 6487180

Browse files
authored
Merge pull request #4 from vampirepapi/feat/add-hot-button-hot-icon
Add hot button and ShitCode tracker integration
2 parents 38a76ad + 4c9d6c4 commit 6487180

6 files changed

Lines changed: 603 additions & 2 deletions

File tree

IMPROVEMENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ This document outlines the major improvements made to make the code more modern,
138138
3. **Better Audio Controls**: Visual feedback for play/pause state
139139
4. **Elegant Notifications**: No more jarring alerts
140140
5. **Improved UX**: Smoother interactions throughout
141+
6. **🔥 ShitCode Button**: New dedicated button with hot/fire icon that opens the ShitCode LeetCode problem tracker page
142+
- Modern glassmorphism design matching existing buttons
143+
- Opens in new tab for seamless navigation
144+
- Track progress on Blind 75, NeetCode 150, and more
145+
- Includes difficulty badges, video links, and confetti celebrations
141146

142147
## 📊 Code Metrics
143148

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@
4848
### **6. Additional Resources**
4949
- [GitHub - Awesome Interview Questions](https://github.com/DopplerHQ/awesome-interview-questions)
5050

51-
### **7. Mock Interviews**
51+
### **7. 🔥 ShitCode Problem Lists**
52+
- Launch the in-app `🔥 ShitCode` button (top-right) to open the dedicated tracker.
53+
- Direct link: [ShitCode Tracker](./shitcode.html)
54+
55+
### **8. Mock Interviews**
5256
- Schedule and conduct mock interviews to refine your skills and receive constructive feedback.
5357

54-
### **8. Final Review**
58+
### **9. Final Review**
5559
- Revise key topics, practice relaxation techniques, and review your interview strategies.
5660

5761
### Still WIP ..

css/styles.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,46 @@ body.dark-mode #dark-mode-toggle:hover {
614614
box-shadow: 0 4px 12px rgba(100, 100, 255, 0.2);
615615
}
616616

617+
/* ShitCode Button Styles */
618+
#shitcode-button {
619+
position: fixed;
620+
top: 10px;
621+
right: 290px;
622+
padding: 0.5rem 1rem;
623+
background: rgba(255, 255, 255, 0.2);
624+
color: #ffffff;
625+
border: 2px solid rgba(255, 255, 255, 0.3);
626+
border-radius: 8px;
627+
cursor: pointer;
628+
z-index: 2;
629+
font-family: 'Poppins', sans-serif;
630+
font-weight: 500;
631+
font-size: 0.9rem;
632+
transition: all 0.3s ease;
633+
backdrop-filter: blur(10px);
634+
}
635+
636+
#shitcode-button:hover {
637+
background: rgba(255, 111, 97, 0.4);
638+
transform: translateY(-2px);
639+
box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
640+
}
641+
642+
#shitcode-button:active {
643+
transform: translateY(0);
644+
}
645+
646+
body.dark-mode #shitcode-button {
647+
background: rgba(45, 55, 72, 0.5);
648+
color: #e2e8f0;
649+
border-color: rgba(226, 232, 240, 0.3);
650+
}
651+
652+
body.dark-mode #shitcode-button:hover {
653+
background: rgba(255, 69, 0, 0.4);
654+
box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
655+
}
656+
617657
/* Adjust button positions for smaller screens */
618658
@media (max-width: 768px) {
619659
#music-toggle {
@@ -626,10 +666,19 @@ body.dark-mode #dark-mode-toggle:hover {
626666
padding: 0.3rem 0.7rem;
627667
font-size: 0.8rem;
628668
}
669+
#shitcode-button {
670+
top: 5px;
671+
right: 230px;
672+
padding: 0.3rem 0.7rem;
673+
font-size: 0.8rem;
674+
}
629675
}
630676

631677
@media (max-width: 480px) {
632678
#dark-mode-toggle {
633679
right: 115px; /* Further adjust for very small screens to prevent overlap with music toggle */
634680
}
681+
#shitcode-button {
682+
right: 215px;
683+
}
635684
}

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
</audio>
207207
<button id="music-toggle">🔇 Play Music</button>
208208
<button id="dark-mode-toggle">🌙 Dark Mode</button>
209+
<button id="shitcode-button">🔥 ShitCode</button>
209210
<script src="js/script.js"></script>
210211
</body>
211212
</html>

js/script.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,22 @@ class DarkModeController {
424424
}
425425
}
426426

427+
class ShitcodeButtonController {
428+
constructor() {
429+
this.button = document.getElementById('shitcode-button');
430+
if (!this.button) return;
431+
this.init();
432+
}
433+
434+
init() {
435+
this.button.addEventListener('click', () => this.openShitcode());
436+
}
437+
438+
openShitcode() {
439+
window.open('shitcode.html', '_blank');
440+
}
441+
}
442+
427443
document.addEventListener('DOMContentLoaded', () => {
428444
new StarryBackground('starry-bg');
429445
new MindMap();
@@ -432,4 +448,5 @@ document.addEventListener('DOMContentLoaded', () => {
432448
new SpaceBattle();
433449
new AudioController();
434450
new DarkModeController();
451+
new ShitcodeButtonController();
435452
});

0 commit comments

Comments
 (0)