|
| 1 | +<!DOCTYPE html> |
| 2 | +<html dir="rtl" lang="he"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> |
| 6 | + <meta name="theme-color" content="#1a73e8"> |
| 7 | + <title>{% block title %}אצטדיון סמי עופר{% endblock %}</title> |
| 8 | + |
| 9 | + <!-- jQuery --> |
| 10 | + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |
| 11 | + |
| 12 | + <!-- Font Awesome for icons --> |
| 13 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
| 14 | + |
| 15 | + <!-- Main Styles --> |
| 16 | + <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}"> |
| 17 | + <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='action.css') }}?v=2"> |
| 18 | + |
| 19 | + {% block extra_css %}{% endblock %} |
| 20 | +</head> |
| 21 | +<body> |
| 22 | + <!-- Top App Bar --> |
| 23 | + <header class="app-bar"> |
| 24 | + <div class="app-bar-content"> |
| 25 | + <h1 class="app-title"> |
| 26 | + <i class="fas fa-futbol"></i> |
| 27 | + אצטדיון סמי עופר |
| 28 | + </h1> |
| 29 | + </div> |
| 30 | + </header> |
| 31 | + |
| 32 | + <!-- Main Content --> |
| 33 | + <main class="main-content"> |
| 34 | + {% block content %}{% endblock %} |
| 35 | + </main> |
| 36 | + |
| 37 | + <!-- Floating Action Button (Desktop) / Bottom Navigation Bar (Mobile) --> |
| 38 | + <div class="fab-container"> |
| 39 | + <button class="fab" id="fab-add" title="הוסף משחק"> |
| 40 | + <i class="fas fa-plus"></i> |
| 41 | + </button> |
| 42 | + <div class="fab-menu" id="fab-menu"> |
| 43 | + <a href="/next" class="fab-menu-item" data-page="next"> |
| 44 | + <i class="fas fa-home"></i> |
| 45 | + <span>בית</span> |
| 46 | + </a> |
| 47 | + <a href="/scheduler" class="fab-menu-item" data-page="scheduler"> |
| 48 | + <i class="fas fa-clock"></i> |
| 49 | + <span>תיזמונים</span> |
| 50 | + </a> |
| 51 | + <a href="https://yeshmishak.top/static.html" class="fab-menu-item" data-page="static" target="_blank"> |
| 52 | + <i class="fas fa-tv"></i> |
| 53 | + <span>תצוגה</span> |
| 54 | + </a> |
| 55 | + <a href="https://yeshmishak.top/cal.html" class="fab-menu-item" data-page="cal" target="_blank"> |
| 56 | + <i class="fas fa-calendar"></i> |
| 57 | + <span>יומן</span> |
| 58 | + </a> |
| 59 | + <button class="fab-menu-item" id="fab-add-mobile"> |
| 60 | + <i class="fas fa-plus"></i> |
| 61 | + <span>הוסף משחק</span> |
| 62 | + </button> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + |
| 66 | + <!-- Toast Notification --> |
| 67 | + <div class="toast" id="toast"></div> |
| 68 | + |
| 69 | + <script> |
| 70 | + // Set active menu item based on current page |
| 71 | + $(document).ready(function() { |
| 72 | + const currentPath = window.location.pathname; |
| 73 | + |
| 74 | + // Determine which page we're on |
| 75 | + let activePage = ''; |
| 76 | + if (currentPath === '/next' || currentPath === '/') { |
| 77 | + activePage = 'next'; |
| 78 | + } else if (currentPath === '/scheduler') { |
| 79 | + activePage = 'scheduler'; |
| 80 | + } |
| 81 | + |
| 82 | + // Add active class to the matching menu item |
| 83 | + if (activePage) { |
| 84 | + $('.fab-menu-item[data-page="' + activePage + '"]').addClass('active'); |
| 85 | + } |
| 86 | + }); |
| 87 | + </script> |
| 88 | + |
| 89 | + {% block extra_js %}{% endblock %} |
| 90 | +</body> |
| 91 | +</html> |
0 commit comments