Style the quiz card a bit
This commit is contained in:
parent
e8bd3e05e2
commit
f2bf94371f
1 changed files with 43 additions and 2 deletions
|
@ -5,8 +5,49 @@
|
|||
export let quiz: main.Quiz;
|
||||
</script>
|
||||
|
||||
<div on:click>
|
||||
<div>
|
||||
<style>
|
||||
.card {
|
||||
background-color: #333;
|
||||
border: 1px solid #444;
|
||||
border-radius: 5px;
|
||||
padding: 20px;
|
||||
color: #fff;
|
||||
font-family: Arial, sans-serif;
|
||||
width: 300px;
|
||||
margin: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
background-color: #444;
|
||||
cursor: pointer;
|
||||
transform: scale(1.05);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.question {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
li:before {
|
||||
content: '\25A1';
|
||||
margin-right: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="card" on:click>
|
||||
<div class="question">
|
||||
{quiz.Question}
|
||||
</div>
|
||||
<div>
|
||||
|
|
Loading…
Reference in a new issue