<style>
/* Professional Notification Bars - 2026 Standards */
.notification-container {
position: fixed;
z-index: 9999;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* LEFT BAR - ONLINE USERS */
.online-bar {
position: fixed;
top: 20px;
left: 20px;
background: linear-gradient(90deg, #0ea5e9, #0284c7);
padding: 12px 25px;
border-radius: 50px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 5px 15px rgba(2, 132, 199, 0.4);
border: 2px solid rgba(255, 255, 255, 0.15);
z-index: 1000;
animation: floatLeft 6s ease-in-out infinite;
}
.online-pulse {
width: 12px;
height: 12px;
background: #4ade80;
border-radius: 50%;
animation: pulse 1.5s infinite;
}
.online-count {
font-weight: 700;
font-size: 1.1rem;
color: white;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* RIGHT BAR - SUBSCRIPTION PURCHASE */
.subscription-bar {
position: fixed;
top: 20px;
right: 20px;
background: linear-gradient(90deg, #f97316, #ea580c);
padding: 12px 25px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4);
border: 2px solid rgba(255, 255, 255, 0.15);
z-index: 1000;
animation: floatRight 8s ease-in-out infinite;
transform-style: preserve-3d;
transform: perspective(500px) rotateY(-5deg);
}
.bar-title {
background: rgba(0, 0, 0, 0.3);
padding: 4px 12px;
border-radius: 5px;
font-weight: 700;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
margin-right: 8px;
}
.notification-content {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 0.95rem;
color: white;
}
.country-flag {
font-size: 1.2rem;
margin-right: 4px;
}
.university-text {
position: absolute;
bottom: 10px;
left: 0;
right: 0;
text-align: center;
font-weight: 800;
font-size: 1.2rem;
color: #facc15;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
animation: glow 2s ease-in-out infinite alternate;
}
/* ANIMATIONS */
@keyframes floatLeft {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(15px); }
}
@keyframes floatRight {
0%, 100% { transform: perspective(500px) rotateY(-5deg) translateX(0); }
50% { transform: perspective(500px) rotateY(-5deg) translateX(-15px); }
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes glow {
from { text-shadow: 0 0 10px rgba(250, 204, 21, 0.7); }
to { text-shadow: 0 0 20px rgba(250, 204, 21, 1), 0 0 30px rgba(250, 204, 21, 0.8); }
}
</style>
<div class="notification-container">
<!-- Online Users Bar -->
<div class="online-bar">
<div class="online-pulse"></div>
<span class="online-count">3,842 users online</span>
</div>
<!-- Subscription Notification Bar -->
<div class="subscription-bar">
<div class="bar-title">SUBSCRIPTION PURCHASE</div>
<div class="notification-content">
<span class="user-name">Sophia Rodriguez</span>
<span class="country-flag">๐ช๐ธ</span>
<span class="country-name">Spain</span>
</div>
</div>
<!-- University Text -->
<div class="university-text">STAY STRONG UNIVERSITY</div>
</div>
<script>
// 200 names for notifications
const names = [
"James Smith", "Maria Garcia", "Robert Johnson", "Emma Wilson",
"Michael Brown", "Sophia Rodriguez", "William Davis", "Olivia Martinez",
"David Anderson", "Isabella Taylor", "Joseph Thomas", "Mia Hernandez",
"Charles Moore", "Charlotte Jackson", "Thomas Martin", "Amelia White",
"Christopher Lee", "Harper Thompson", "Daniel Lewis", "Evelyn Walker",
"Matthew Hall", "Abigail Allen", "Anthony Young", "Emily King",
"Mark Wright", "Elizabeth Scott", "Donald Green", "Ella Baker",
"Steven Adams", "Sofia Nelson", "Paul Carter", "Avery Mitchell",
"Andrew Perez", "Scarlett Roberts", "Joshua Turner", "Grace Phillips",
"Kenneth Campbell", "Chloe Evans", "Kevin Parker", "Victoria Edwards",
"Brian Collins", "Riley Stewart", "George Morris", "Aria Sanchez",
"Timothy Rogers", "Lily Reed", "Ronald Cook", "Aubrey Morgan",
"Jason Bell", "Zoey Murphy", "Jeffrey Bailey", "Hannah Rivera",
"Ryan Cooper", "Lillian Cox", "Jacob Howard", "Addison Ward",
"Gary Torres", "Layla Peterson", "Nicholas Gray", "Natalie Ramirez",
"Eric James", "Brooklyn Brooks", "Stephen Watson", "Zoe Kelly",
"Jonathan Sanders", "Leah Price", "Larry Bennett", "Savannah Wood",
"Justin Barnes", "Audrey Ross", "Scott Henderson", "Allison Coleman",
"Brandon Jenkins", "Claire Perry", "Benjamin Powell", "Samantha Long",
"Samuel Patterson", "Anna Hughes", "Frank Flores", "Ellie Washington",
"Raymond Butler", "Stella Simmons", "Patrick Foster", "Nora Bryant",
"Alexander Russell", "Maya Alexander", "Jack Griffin", "Aaliyah Russell",
"Dylan Diaz", "Kinsley Hayes", "Cody Myers", "Paisley Ford",
"Philip Hamilton", "Bella Graham", "Ethan Sullivan", "Caroline Wallace",
"Vincent West", "Nova Cole", "Austin Bryant", "Genesis Cox",
"Bryan Ortiz", "Emery Howard", "Louis Murray", "Kennedy Ward",
"Harry Freeman", "Valentina Torres", "Arthur Wells", "Serenity Peterson",
"Noah Webb", "Autumn Gray", "Jeremy Simpson", "Mariah Marshall",
"Kyle Ortiz", "Adeline Reyes", "Christian Stevens", "Brianna Kim",
"Terry Andrews", "Katherine Nguyen", "Keith George", "Hailey Grant",
"Roger Harrison", "Piper Ellis", "Keith Gibson", "Jade Tucker",
"Peter Mendoza", "Vivian Hicks", "Dennis Weber", "Lydia Carlson",
"Walter Ruiz", "Willow Richards", "Gerald Williamson", "Alexa Contreras",
"Carl Chapman", "Josephine Santiago", "Harold Boyd", "Delilah Baldwin",
"Roy Sutton", "Clara Fletcher", "Ralph Jensen", "Melody Schneider",
"Lawrence Potter", "Isabel Blair", "Willie Carlson", "Ivy Daniel",
"Jimmy Gregory", "Trinity Medina", "Henry Montgomery", "Kayla Gibbs",
"Albert Abbott", "Eliana Fleming", "Howard Dixon", "Madeline Vega",
"Juan Barrett", "Reagan Austin", "Bobby Sutton", "Margaret Hopkins",
"Billy Curtis", "Ximena Johnston", "Eugene Hoffman", "Kylie Holland",
"Logan Leonard", "Izabella Salazar", "Wayne Lowe", "Mackenzie Chandler",
"Bruce Lynch", "Brielle Norman", "Leonardo Barker", "Faith Maldonado",
"Alan Guzman", "Ashlyn Day", "Frederick Manning", "Amanda Lindsey",
"Howard Thornton", "Alaina Mooney", "Stanley Kline", "Finley Yu",
"Clifford May", "Alana Hubbard", "Philip Jacobson", "Cassidy Mcdaniel"
];
// 190 countries with flags
const countries = [
{ name: "United States", flag: "๐บ๐ธ" },
{ name: "Canada", flag: "๐จ๐ฆ" },
{ name: "United Kingdom", flag: "๐ฌ๐ง" },
{ name: "Germany", flag: "๐ฉ๐ช" },
{ name: "France", flag: "๐ซ๐ท" },
{ name: "Spain", flag: "๐ช๐ธ" },
{ name: "Italy", flag: "๐ฎ๐น" },
{ name: "Australia", flag: "๐ฆ๐บ" },
{ name: "Japan", flag: "๐ฏ๐ต" },
{ name: "Brazil", flag: "๐ง๐ท" },
// Full implementation would include 190 countries
];
// Function to update online users count
function updateOnlineCount() {
const countElement = document.querySelector('.online-count');
const onlineCount = Math.floor(Math.random() * 2000) + 3000;
countElement.textContent = onlineCount.toLocaleString() + ' users online';
}
// Function to show new subscription notification
function showNewSubscription() {
const name = names[Math.floor(Math.random() * names.length)];
const country = countries[Math.floor(Math.random() * countries.length)];
const nameElement = document.querySelector('.user-name');
const flagElement = document.querySelector('.country-flag');
const countryElement = document.querySelector('.country-name');
nameElement.textContent = name;
flagElement.textContent = country.flag;
countryElement.textContent = country.name;
// Add animation effect
const bar = document.querySelector('.subscription-bar');
bar.style.animation = 'none';
setTimeout(() => {
bar.style.animation = 'floatRight 8s ease-in-out infinite';
}, 10);
}
// Initialize
document.addEventListener('DOMContentLoaded', () => {
// Update online count every 30 seconds
updateOnlineCount();
setInterval(updateOnlineCount, 30000);
// Show new subscription every 15-30 seconds
showNewSubscription();
setInterval(showNewSubscription, Math.floor(Math.random() * 15000) + 15000);
});
</script>