-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz-main.html
69 lines (61 loc) · 1.41 KB
/
quiz-main.html
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
<html>
<head>
<style>
/* styles.css */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.quiz-container {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 300px;
text-align: center;
}
h1 {
margin-bottom: 20px;
color: #734b6d;
}
/* You can use flexbox if you'd like more control over alignment */
.question {
display: flex;
flex-direction: column; /* Stack options vertically */
align-items: flex-start; /* Align items to the left */
}
button {
background-color: #734b6d;
color: white;
border: none;
padding: 10px 20px;
margin-top: 20px;
cursor: pointer;
border-radius: 4px;
font-size: 16px;
}
button:hover {
background-color: #734b6d;
}
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
}
</style>
</head>
<body style="background-image: linear-gradient(to right, #304352, #d7d2cc);">
<div class="quiz-container">
<h1>Quiz Time!</h1>
<div id="quiz"></div>
<button id="submit" onclick="submitQuiz()">Submit Quiz</button>
<div id="result"></div>
</div>
<script type="module" src="scripts.js"></script>
</body>
</html>