ayush2917 commited on
Commit
0cfbedb
·
verified ·
1 Parent(s): f9ebc4d

Update templates/base.html

Browse files
Files changed (1) hide show
  1. templates/base.html +16 -31
templates/base.html CHANGED
@@ -3,38 +3,23 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Little Krishna Chatbot</title>
7
- <!-- Load Google Fonts for Bubblegum Sans -->
8
- <link href="https://fonts.googleapis.com/css2?family=Bubblegum+Sans&display=swap" rel="stylesheet">
9
- <!-- Load CSS -->
10
- <link rel="stylesheet" href="/static/css/styles.css">
11
- <!-- Load Lottie Player for animations -->
12
- <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
13
  </head>
14
  <body>
15
- <div class="container">
16
- <nav>
17
- <a href="/">Home</a>
18
- <a href="/chat">Chat with Krishna</a>
19
- <a href="/adventure">Vrindavan Adventure</a>
20
- <a href="/message">Birthday Message</a>
21
- </nav>
22
- {% block content %}{% endblock %}
23
- </div>
24
- <!-- Background flute music -->
25
- <audio id="flute-audio" src="/static/assets/flute.mp3" loop></audio>
26
- <script>
27
- document.addEventListener('DOMContentLoaded', () => {
28
- const audio = document.getElementById('flute-audio');
29
- // Attempt to play audio, with a fallback for user interaction
30
- audio.play().catch(error => {
31
- console.error('Error playing audio:', error);
32
- // Add a click event to play audio on user interaction (due to browser restrictions)
33
- document.body.addEventListener('click', () => {
34
- audio.play().catch(err => console.error('Error playing audio on click:', err));
35
- }, { once: true });
36
- });
37
- });
38
- </script>
39
  </body>
40
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{% block title %}{% endblock %} - Little Krishna Chatbot</title>
7
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/base.css') }}">
8
+ {% block styles %}
9
+ {% endblock %}
 
 
 
10
  </head>
11
  <body>
12
+ <nav>
13
+ <a href="/">Home</a>
14
+ <a href="/chat">Chat with Krishna</a>
15
+ <a href="/adventure">Vrindavan Adventure</a>
16
+ <a href="/message">Birthday Message</a>
17
+ </nav>
18
+
19
+ {% block content %}
20
+ {% endblock %}
21
+
22
+ {% block scripts %}
23
+ {% endblock %}
 
 
 
 
 
 
 
 
 
 
 
 
24
  </body>
25
  </html>