parent
c73cc60d80
commit
c3ab480257
@ -0,0 +1,37 @@
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
#memory-game {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: #fff;
|
||||
border: 2px solid #ccc;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.card.flipped {
|
||||
background-color: #f0f0f0; /* Couleur de fond lorsqu'une carte est retournée */
|
||||
}
|
||||
|
||||
.card.found {
|
||||
background-color: #8aff8a; /* Couleur de fond lorsqu'une paire est trouvée */
|
||||
cursor: default;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Memory Game</title>
|
||||
<link rel="stylesheet" href="../css/memory.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="memory-game">
|
||||
{% for word in wordShuffle %}
|
||||
<div class="card" data-word="{{ word }}">
|
||||
<span>{{ word }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue