Pamela Fox
commited on
Commit
·
8aa7d13
1
Parent(s):
7300489
static css
Browse files
quizzes/static/quizzes/images/papyrus.webp
ADDED
|
quizzes/static/quizzes/style.css
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
background: white url("images/papyrus.webp") repeat;
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
.question {
|
| 6 |
+
padding: 12px;
|
| 7 |
+
background-color: #f0f0f0;
|
| 8 |
+
}
|
quizzes/templates/quizzes/display.html
CHANGED
|
@@ -4,13 +4,15 @@
|
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<title>Quiz: {{ quiz.name }}</title>
|
|
|
|
| 7 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
|
|
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<div class="container">
|
| 11 |
<h1>Quiz: {{ quiz.name }}</h1>
|
| 12 |
|
| 13 |
-
<section class="
|
| 14 |
{% if question %}
|
| 15 |
<form id="question-form" action="{% url 'quizzes:grade_question' question.id %}" method="post">
|
| 16 |
{% csrf_token %}
|
|
@@ -68,4 +70,4 @@
|
|
| 68 |
});
|
| 69 |
</script>
|
| 70 |
</body>
|
| 71 |
-
</html>
|
|
|
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<title>Quiz: {{ quiz.name }}</title>
|
| 7 |
+
{% load static %}
|
| 8 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
|
| 9 |
+
<link rel="stylesheet" href="{% static 'quizzes/style.css' %}">
|
| 10 |
</head>
|
| 11 |
<body>
|
| 12 |
<div class="container">
|
| 13 |
<h1>Quiz: {{ quiz.name }}</h1>
|
| 14 |
|
| 15 |
+
<section class="question">
|
| 16 |
{% if question %}
|
| 17 |
<form id="question-form" action="{% url 'quizzes:grade_question' question.id %}" method="post">
|
| 18 |
{% csrf_token %}
|
|
|
|
| 70 |
});
|
| 71 |
</script>
|
| 72 |
</body>
|
| 73 |
+
</html>
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
Django==4.1.1
|
| 2 |
psycopg2
|
| 3 |
python-dotenv
|
| 4 |
-
whitenoise
|
|
|
|
| 1 |
Django==4.1.1
|
| 2 |
psycopg2
|
| 3 |
python-dotenv
|
| 4 |
+
whitenoise[brotli]
|