File size: 5,783 Bytes
a53d699
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Quizzy Flutter</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100">
    <custom-navbar></custom-navbar>
    
    <div class="container mx-auto px-4 py-8">
        <!-- Quiz List Page (default view) -->
        <div id="quiz-list-page">
            <h1 class="text-3xl font-bold text-gray-800 mb-6">Daftar Kuis</h1>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <!-- Quiz Card 1 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-transform hover:scale-105">
                    <div class="p-6">
                        <div class="flex justify-between items-start">
                            <div>
                                <h2 class="text-xl font-semibold text-gray-800">Kuis Matematika</h2>
                                <p class="text-gray-600 mt-1">10 Pertanyaan</p>
                            </div>
                            <div class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs font-medium">
                                Mudah
                            </div>
                        </div>
                        <p class="text-gray-500 mt-3">Tes pengetahuan matematika dasar Anda dengan kuis ini.</p>
                        <button onclick="showQuizPage()" class="mt-4 w-full bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-lg transition-colors">
                            Mulai Kuis
                        </button>
                    </div>
                </div>

                <!-- Quiz Card 2 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-transform hover:scale-105">
                    <div class="p-6">
                        <div class="flex justify-between items-start">
                            <div>
                                <h2 class="text-xl font-semibold text-gray-800">Kuis Sejarah</h2>
                                <p class="text-gray-600 mt-1">15 Pertanyaan</p>
                            </div>
                            <div class="bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-xs font-medium">
                                Sedang
                            </div>
                        </div>
                        <p class="text-gray-500 mt-3">Uji pengetahuan sejarah Indonesia Anda.</p>
                        <button onclick="showQuizPage()" class="mt-4 w-full bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-lg transition-colors">
                            Mulai Kuis
                        </button>
                    </div>
                </div>
            </div>
        </div>

        <!-- Quiz Page (hidden by default) -->
        <div id="quiz-page" class="hidden">
            <div class="bg-white rounded-xl shadow-md p-6">
                <!-- Quiz Header -->
                <div class="flex justify-between items-center mb-6">
                    <button onclick="showQuizListPage()" class="text-blue-500 hover:text-blue-700">
                        <i data-feather="arrow-left"></i>
                    </button>
                    <div class="text-gray-600">
                        <span id="current-question">1</span>/10
                    </div>
                    <div class="w-8"></div> <!-- Spacer for balance -->
                </div>

                <!-- Progress Bar -->
                <div class="w-full bg-gray-200 rounded-full h-2 mb-6">
                    <div class="bg-blue-500 h-2 rounded-full" style="width: 10%"></div>
                </div>

                <!-- Question -->
                <h2 class="text-xl font-semibold text-gray-800 mb-4">Berapakah hasil dari 7 × 8?</h2>

                <!-- Options -->
                <div class="space-y-3">
                    <button class="w-full text-left p-4 rounded-lg border border-gray-300 hover:border-blue-500 transition-colors">
                        54
                    </button>
                    <button class="w-full text-left p-4 rounded-lg border border-gray-300 hover:border-blue-500 transition-colors">
                        56
                    </button>
                    <button class="w-full text-left p-4 rounded-lg border border-gray-300 hover:border-blue-500 transition-colors">
                        58
                    </button>
                    <button class="w-full text-left p-4 rounded-lg border border-gray-300 hover:border-blue-500 transition-colors">
                        60
                    </button>
                </div>

                <!-- Navigation -->
                <div class="flex justify-between mt-6">
                    <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-lg transition-colors">
                        Sebelumnya
                    </button>
                    <button class="bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-lg transition-colors">
                        Selanjutnya
                    </button>
                </div>
            </div>
        </div>
    </div>

    <custom-footer></custom-footer>

    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>