-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_stats_visible.html
More file actions
112 lines (107 loc) · 4.3 KB
/
test_stats_visible.html
File metadata and controls
112 lines (107 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Stats Visibility</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" href="/static/css/style.css">
<style>
.stats-section {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
position: relative;
overflow: hidden;
padding: 3rem 0;
}
.stat-item {
position: relative;
z-index: 2;
padding: 2rem 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
margin: 0 1rem;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.fade-in-up {
opacity: 1 !important;
transform: translateY(0) !important;
}
</style>
</head>
<body>
<div class="container mt-5">
<h1>Test Statistics Section</h1>
<p>This should show the statistics below:</p>
</div>
<!-- Statistics Section -->
<div class="stats-section py-5 mb-5 fade-in-up">
<div class="container">
<div class="row text-center">
<div class="col-md-4 mb-4">
<div class="stat-item fade-in-up animate-delay-1">
<div class="stat-icon mb-3">
<i class="fas fa-users fa-3x text-primary"></i>
</div>
<h2 class="counter text-primary fw-bold" data-target="5000">0</h2>
<p class="text-muted fw-semibold">Happy Subscribers</p>
<div class="stat-bar"></div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="stat-item fade-in-up animate-delay-2">
<div class="stat-icon mb-3">
<i class="fas fa-globe-americas fa-3x text-success"></i>
</div>
<h2 class="counter text-success fw-bold" data-target="25">0</h2>
<p class="text-muted fw-semibold">Countries Served</p>
<div class="stat-bar"></div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="stat-item fade-in-up animate-delay-3">
<div class="stat-icon mb-3">
<i class="fas fa-calendar-alt fa-3x text-warning"></i>
</div>
<h2 class="counter text-warning fw-bold" data-target="10">0</h2>
<p class="text-muted fw-semibold">Years Experience</p>
<div class="stat-bar"></div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Counter Animation
function animateCounters() {
const counters = document.querySelectorAll('.counter');
const speed = 200;
counters.forEach(counter => {
const target = +counter.getAttribute('data-target');
let current = 0;
const increment = target / speed;
const animate = () => {
current += increment;
if (current < target) {
counter.innerText = Math.floor(current);
requestAnimationFrame(animate);
} else {
counter.innerText = target;
}
};
animate();
});
}
// Trigger animation immediately
document.addEventListener('DOMContentLoaded', function() {
setTimeout(() => {
animateCounters();
}, 500);
});
</script>
</body>
</html>