made deployment finally prod ready
This commit is contained in:
@@ -4,38 +4,15 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Tutorial Materials</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/output.css') }}">
|
||||
|
||||
<!-- Tailwind CSS v4.1.4 CDN -->
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script>
|
||||
|
||||
<!-- Tailwind Config (Dark Mode + Theme Colors) -->
|
||||
<script>
|
||||
tailwind.config = {
|
||||
darkMode: 'class',
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
background: '#121418', // dark slate with blue/gray tone
|
||||
surface: '#1e2127', // a bit lighter for containers/cards
|
||||
border: '#2a2d34', // visible but subtle borders
|
||||
primary: '#4f8cff', // soft blue that pops but is not neon
|
||||
text: '#e4e4e7', // light gray for high contrast
|
||||
muted: '#a0a0ad', // for subdued text
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- Flowbite -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/flowbite@3.1.2/dist/flowbite.min.css" rel="stylesheet" />
|
||||
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||
|
||||
<!-- in base.html, in <head> or just before </body> -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.7.1/socket.io.min.js"></script>
|
||||
|
||||
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -83,11 +60,7 @@
|
||||
<div class="flex justify-center">
|
||||
<div class="relative group">
|
||||
<button class="flex items-center text-gray-900 dark:text-white hover:text-blue-700 dark:hover:text-blue-500 font-medium py-1 px-3 rounded-lg bg-transparent text-2xl">
|
||||
{% for course in courses %}
|
||||
{% if course.id == active_course.id %}
|
||||
{{ course.name }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{{active_course_name}}
|
||||
<svg class="w-2.5 h-2.5 ms-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"/>
|
||||
</svg>
|
||||
@@ -167,19 +140,5 @@
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/flowbite@3.1.2/dist/flowbite.min.js"></script>
|
||||
<script>
|
||||
function enableUsernameEdit() {
|
||||
const input = document.getElementById('usernameInput');
|
||||
const editBtn = document.getElementById('editBtn');
|
||||
const saveBtn = document.getElementById('saveBtn');
|
||||
|
||||
input.removeAttribute('disabled');
|
||||
input.classList.add('border-border');
|
||||
input.focus();
|
||||
|
||||
editBtn.classList.add('hidden');
|
||||
saveBtn.classList.remove('hidden');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user