Skip to content

Commit 2cc1bcd

Browse files
committed
Remove floating cards completely - prefer mobile layout style
1 parent ead8986 commit 2cc1bcd

3 files changed

Lines changed: 2 additions & 129 deletions

File tree

index.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,6 @@
6464
<section id="home" class="hero">
6565
<!-- Desktop Hero -->
6666
<div class="hero-content desktop-hero">
67-
<div class="floating-card card-1">
68-
<a href="https://github.com/KernelSU-Next/KernelSU-Next" target="_blank" rel="noopener noreferrer">
69-
<i class="fas fa-yin-yang"></i>
70-
<span>KernelSU Next</span>
71-
</a>
72-
</div>
73-
<div class="floating-card card-2">
74-
<a href="https://gitlab.com/simonpunk/susfs4ksu" target="_blank" rel="noopener noreferrer">
75-
<i class="fas fa-eye-slash"></i>
76-
<span>SUSFS</span>
77-
</a>
78-
</div>
79-
<div class="floating-card card-3">
80-
<a href="https://github.com/WildKernels" target="_blank" rel="noopener noreferrer">
81-
<i class="fas fa-code-branch"></i>
82-
<span>Open Source</span>
83-
</a>
84-
</div>
85-
<div class="floating-card card-4">
86-
<i class="fas fa-exclamation-triangle"></i>
87-
<span>Proceed at Risk</span>
88-
</div>
8967

9068
<h1>Wild Kernels for Android</h1>
9169
<h2>⚠️ Your warranty is no longer valid!</h2>

script.js

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ class DeviceManager {
8787
// Reduce animations on mobile for better performance
8888
const style = document.createElement('style');
8989
style.textContent = `
90-
.mobile-device .floating-card {
91-
animation: none !important;
92-
}
9390
.mobile-device * {
9491
transition-duration: 0.2s !important;
9592
}
@@ -99,28 +96,9 @@ class DeviceManager {
9996

10097
enableDesktopAnimations() {
10198
// Enhanced desktop animations
102-
this.setupFloatingCards();
10399
this.setupMouseFollower();
104100
}
105101

106-
setupFloatingCards() {
107-
const cards = document.querySelectorAll('.floating-card');
108-
cards.forEach((card, index) => {
109-
// Add random floating animation delays
110-
const delay = Math.random() * 2;
111-
card.style.animationDelay = `${delay}s`;
112-
113-
// Add mouse interaction
114-
card.addEventListener('mouseenter', () => {
115-
card.style.transform = 'translateY(-10px) scale(1.05)';
116-
});
117-
118-
card.addEventListener('mouseleave', () => {
119-
card.style.transform = '';
120-
});
121-
});
122-
}
123-
124102
setupMouseFollower() {
125103
if (!this.isMobile) {
126104
let mouseX = 0, mouseY = 0;
@@ -156,16 +134,7 @@ class DeviceManager {
156134

157135
setupParallaxEffects() {
158136
if (!this.isMobile) {
159-
window.addEventListener('scroll', () => {
160-
const scrolled = window.pageYOffset;
161-
const parallaxElements = document.querySelectorAll('.floating-card');
162-
163-
parallaxElements.forEach((element, index) => {
164-
const speed = 0.5 + (index * 0.1);
165-
const yPos = -(scrolled * speed);
166-
element.style.transform = `translateY(${yPos}px)`;
167-
});
168-
});
137+
// Parallax effects can be added here for other elements if needed
169138
}
170139
}
171140

@@ -305,7 +274,7 @@ class AnimationManager {
305274
}, observerOptions);
306275

307276
// Observe elements that should animate in
308-
const animatedElements = document.querySelectorAll('.fade-in, .hero-content, .floating-card');
277+
const animatedElements = document.querySelectorAll('.fade-in, .hero-content');
309278
animatedElements.forEach(el => {
310279
el.classList.add('fade-in');
311280
observer.observe(el);

style.css

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -414,56 +414,7 @@ body {
414414
color: var(--dark-gray);
415415
}
416416

417-
/* Floating Cards (Desktop) */
418-
.floating-card {
419-
position: absolute;
420-
background: rgba(255, 255, 255, 0.9);
421-
backdrop-filter: blur(20px);
422-
padding: 20px;
423-
border-radius: 20px;
424-
box-shadow: var(--shadow-medium);
425-
animation: float 6s ease-in-out infinite;
426-
border: 1px solid rgba(76, 175, 80, 0.2);
427-
}
428417

429-
.floating-card i {
430-
font-size: 2rem;
431-
color: var(--secondary-green);
432-
}
433-
434-
.floating-card span {
435-
font-weight: var(--font-weight-medium);
436-
color: var(--dark-gray);
437-
}
438-
439-
.card-1 {
440-
top: 20%;
441-
left: 10%;
442-
animation-delay: 0s;
443-
}
444-
445-
.card-2 {
446-
top: 30%;
447-
right: 15%;
448-
animation-delay: 2s;
449-
}
450-
451-
.card-3 {
452-
bottom: 30%;
453-
left: 15%;
454-
animation-delay: 4s;
455-
}
456-
457-
.card-4 {
458-
bottom: 20%;
459-
right: 10%;
460-
animation-delay: 1s;
461-
}
462-
463-
@keyframes float {
464-
0%, 100% { transform: translateY(0px); }
465-
50% { transform: translateY(-20px); }
466-
}
467418

468419
@keyframes pulse {
469420
0%, 100% { transform: scale(1); }
@@ -540,10 +491,6 @@ body {
540491

541492
/* Responsive Design */
542493
@media (max-width: 768px) {
543-
.floating-card {
544-
display: none;
545-
}
546-
547494
.nav-container {
548495
height: 60px;
549496
}
@@ -1316,28 +1263,7 @@ body {
13161263
box-shadow: var(--glow-accent);
13171264
}
13181265

1319-
/* Floating Card Links */
1320-
.floating-card a {
1321-
color: inherit;
1322-
text-decoration: none;
1323-
transition: all 0.3s ease;
1324-
display: flex;
1325-
flex-direction: column;
1326-
align-items: center;
1327-
gap: 10px;
1328-
width: 100%;
1329-
height: 100%;
1330-
}
1331-
1332-
.floating-card a:hover {
1333-
color: var(--accent-blue);
1334-
text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
1335-
}
13361266

1337-
.floating-card a:hover i {
1338-
color: var(--accent-blue);
1339-
text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
1340-
}
13411267

13421268
/* Mobile Feature Links */
13431269
.mobile-feature a {

0 commit comments

Comments
 (0)