36119-vm/core/templates/base.html
Flatlogic Bot 018ea4ccf9 v3
2025-11-23 13:23:03 +00:00

33 lines
1.2 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}AmaFlix{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
{% block head %}{% endblock %}
</head>
<body class="bg-dark text-white">
{% block content %}{% endblock %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Change navbar background on scroll
const nav = document.getElementById('main-nav');
window.addEventListener('scroll', () => {
if (window.scrollY >= 50) {
nav.classList.add('navbar-scrolled');
} else {
nav.classList.remove('navbar-scrolled');
}
});
</script>
</body>
</html>