Spaces:
Paused
Paused
Commit
·
7f3b7e5
1
Parent(s):
695b180
base updated
Browse files- backend/templates/base.html +63 -4
backend/templates/base.html
CHANGED
@@ -52,6 +52,7 @@
|
|
52 |
display: flex;
|
53 |
justify-content: space-between;
|
54 |
align-items: center;
|
|
|
55 |
}
|
56 |
|
57 |
.logo {
|
@@ -96,6 +97,7 @@
|
|
96 |
display: flex;
|
97 |
align-items: center;
|
98 |
gap: 1rem;
|
|
|
99 |
}
|
100 |
|
101 |
/* Style for the welcome message */
|
@@ -109,6 +111,7 @@
|
|
109 |
padding: 0.5rem 1rem;
|
110 |
border-radius: 5px;
|
111 |
transition: all 0.3s ease;
|
|
|
112 |
}
|
113 |
|
114 |
.welcome-message:before {
|
@@ -125,6 +128,9 @@
|
|
125 |
padding: 0.5rem 1.5rem;
|
126 |
border-radius: 5px;
|
127 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
128 |
}
|
129 |
|
130 |
.btn-logout:hover {
|
@@ -134,6 +140,56 @@
|
|
134 |
box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
|
135 |
}
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
.btn {
|
138 |
padding: 0.5rem 1.5rem;
|
139 |
border-radius: 5px;
|
@@ -145,6 +201,9 @@
|
|
145 |
position: relative;
|
146 |
overflow: hidden;
|
147 |
z-index: 1;
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
.btn::before {
|
@@ -685,12 +744,12 @@
|
|
685 |
<a href="{{ url_for('auth.signup') }}" class="btn btn-primary">Sign Up</a>
|
686 |
{% endif %}
|
687 |
</div>
|
688 |
-
<!-- Mobile chat icon visible only on small screens -->
|
689 |
-
<div id="chatbot-nav" class="chat-nav-icon" onclick="toggleChatbot()">💬</div>
|
690 |
-
|
691 |
</div>
|
692 |
</header>
|
693 |
|
|
|
|
|
|
|
694 |
{% block hero %}{% endblock %}
|
695 |
|
696 |
<main>
|
@@ -817,4 +876,4 @@
|
|
817 |
}
|
818 |
</style>
|
819 |
</body>
|
820 |
-
</html>
|
|
|
52 |
display: flex;
|
53 |
justify-content: space-between;
|
54 |
align-items: center;
|
55 |
+
min-height: 60px;
|
56 |
}
|
57 |
|
58 |
.logo {
|
|
|
97 |
display: flex;
|
98 |
align-items: center;
|
99 |
gap: 1rem;
|
100 |
+
height: 100%;
|
101 |
}
|
102 |
|
103 |
/* Style for the welcome message */
|
|
|
111 |
padding: 0.5rem 1rem;
|
112 |
border-radius: 5px;
|
113 |
transition: all 0.3s ease;
|
114 |
+
height: fit-content;
|
115 |
}
|
116 |
|
117 |
.welcome-message:before {
|
|
|
128 |
padding: 0.5rem 1.5rem;
|
129 |
border-radius: 5px;
|
130 |
transition: all 0.3s ease;
|
131 |
+
height: fit-content;
|
132 |
+
display: flex;
|
133 |
+
align-items: center;
|
134 |
}
|
135 |
|
136 |
.btn-logout:hover {
|
|
|
140 |
box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
|
141 |
}
|
142 |
|
143 |
+
/* Fixed chatbot button positioning */
|
144 |
+
.chat-nav-icon {
|
145 |
+
position: fixed;
|
146 |
+
bottom: 20px;
|
147 |
+
right: 20px;
|
148 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
149 |
+
color: white;
|
150 |
+
width: 60px;
|
151 |
+
height: 60px;
|
152 |
+
border-radius: 50%;
|
153 |
+
display: flex;
|
154 |
+
justify-content: center;
|
155 |
+
align-items: center;
|
156 |
+
font-size: 1.5rem;
|
157 |
+
cursor: pointer;
|
158 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
159 |
+
transition: all 0.3s ease;
|
160 |
+
z-index: 1000;
|
161 |
+
}
|
162 |
+
|
163 |
+
.chat-nav-icon:hover {
|
164 |
+
transform: scale(1.1);
|
165 |
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
166 |
+
}
|
167 |
+
|
168 |
+
/* Hide mobile chat icon on larger screens initially */
|
169 |
+
@media (min-width: 769px) {
|
170 |
+
.chat-nav-icon {
|
171 |
+
display: flex;
|
172 |
+
}
|
173 |
+
}
|
174 |
+
|
175 |
+
@media (max-width: 768px) {
|
176 |
+
.nav-container {
|
177 |
+
flex-wrap: wrap;
|
178 |
+
gap: 1rem;
|
179 |
+
}
|
180 |
+
|
181 |
+
.login-buttons {
|
182 |
+
flex-wrap: wrap;
|
183 |
+
justify-content: center;
|
184 |
+
width: 100%;
|
185 |
+
order: 2;
|
186 |
+
}
|
187 |
+
|
188 |
+
.chat-nav-icon {
|
189 |
+
display: flex;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
.btn {
|
194 |
padding: 0.5rem 1.5rem;
|
195 |
border-radius: 5px;
|
|
|
201 |
position: relative;
|
202 |
overflow: hidden;
|
203 |
z-index: 1;
|
204 |
+
display: flex;
|
205 |
+
align-items: center;
|
206 |
+
height: fit-content;
|
207 |
}
|
208 |
|
209 |
.btn::before {
|
|
|
744 |
<a href="{{ url_for('auth.signup') }}" class="btn btn-primary">Sign Up</a>
|
745 |
{% endif %}
|
746 |
</div>
|
|
|
|
|
|
|
747 |
</div>
|
748 |
</header>
|
749 |
|
750 |
+
<!-- Fixed chatbot button positioned at bottom right of screen -->
|
751 |
+
<div id="chatbot-nav" class="chat-nav-icon" onclick="toggleChatbot()">💬</div>
|
752 |
+
|
753 |
{% block hero %}{% endblock %}
|
754 |
|
755 |
<main>
|
|
|
876 |
}
|
877 |
</style>
|
878 |
</body>
|
879 |
+
</html>
|