Spaces:
Runtime error
Runtime error
File size: 4,685 Bytes
b83317e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Mathematical Misconception Detector{% endblock %}</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
{% block head %}{% endblock %}
</head>
<body>
<!-- Background effects -->
<div class="stars"></div>
<div class="twinkling"></div>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container">
<a class="navbar-brand" href="{{ url_for('index') }}">Math Misconception Detector</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link {% if active_tab == 'dashboard' %}active{% endif %}" href="{{ url_for('index') }}">
<i class="fas fa-chart-pie me-1"></i> Dashboard
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if active_tab == 'analyze' %}active{% endif %}" href="{{ url_for('analyze') }}">
<i class="fas fa-search me-1"></i> Analyze
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if active_tab == 'results' %}active{% endif %}" href="{{ url_for('results') }}">
<i class="fas fa-list-alt me-1"></i> Results
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if active_tab == 'about' %}active{% endif %}" href="{{ url_for('about') }}">
<i class="fas fa-info-circle me-1"></i> About
</a>
</li>
{% if has_scraper|default(false) %}
<li class="nav-item">
<a class="nav-link {% if active_tab == 'scrape' %}active{% endif %}" href="{{ url_for('scrape') }}">
<i class="fas fa-spider me-1"></i> Web Scraper
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="content-container">
<!-- Header -->
<header class="mb-5">
<h1 class="main-header heading-text">Mathematical Misconception Detector</h1>
<p class="main-subheader heading-text">Intelligent analysis of mathematical answers using AI</p>
</header>
<!-- Alert Container -->
<div class="alert-container mb-4">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
</div>
<!-- Main Content Block -->
{% block content %}{% endblock %}
</div>
<!-- Footer -->
<footer>
<div class="container">
<p>Mathematical Misconception Detector</p>
</div>
</footer>
<!-- Bootstrap JS Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
{% block scripts %}{% endblock %}
</body>
</html> |