Site
- Add multi local game - Some minor changes in html/css Django - add path for /game and /multiLocalGamePage - add template for multiLocalGame
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
@ -48,127 +48,127 @@ body {
|
||||
}
|
||||
|
||||
.main{
|
||||
padding-top: 80px;
|
||||
padding-inline: 150px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 2.6rem;
|
||||
padding-top: 80px;
|
||||
padding-inline: 150px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 2.6rem;
|
||||
}
|
||||
|
||||
.skin-select{
|
||||
/* padding-block: 25px; */
|
||||
width: 40%;
|
||||
/* padding-block: 25px; */
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.popup {
|
||||
display: none; /* La popup est masquée par défaut */
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(5px);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 503;
|
||||
display: none; /* La popup est masquée par défaut */
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(5px);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 503;
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
width: 40%;
|
||||
position: relative;
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
width: 40%;
|
||||
position: relative;
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.popup-content form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.choose{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.select-card{
|
||||
margin: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
background-color: #d3d3d3;
|
||||
color: #000;
|
||||
height: 90px;
|
||||
font-size: 1.2em;
|
||||
transition: transform 0.3s ease;
|
||||
margin: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
background-color: #d3d3d3;
|
||||
color: #000;
|
||||
height: 90px;
|
||||
font-size: 1.2em;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.select-card:hover {
|
||||
transform: scale(1.05);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.switch {
|
||||
position: relative;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.switch p{
|
||||
color: white;
|
||||
font-size: 1.2em;
|
||||
color: white;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.switch label {
|
||||
width: 59px;
|
||||
height: 28px;
|
||||
background-color: #999;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-radius: 50px;
|
||||
width: 59px;
|
||||
height: 28px;
|
||||
background-color: #999;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
.switch input[type="checkbox"] {
|
||||
visibility: hidden;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.switch label:after {
|
||||
content: '';
|
||||
margin-top: 2px;
|
||||
margin-left: 2px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
transition: 200ms;
|
||||
background-color: white;
|
||||
content: '';
|
||||
margin-top: 2px;
|
||||
margin-left: 2px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
transition: 200ms;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.switch .look:checked + label:after {
|
||||
left: 32px;
|
||||
left: 32px;
|
||||
}
|
||||
|
||||
.switch .look:checked + label {
|
||||
background-color: rgb(18, 223, 96);
|
||||
background-color: rgb(18, 223, 96);
|
||||
}
|
||||
|
||||
#bar{
|
||||
margin: 15px;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
border: 5px solid white;
|
||||
margin: 15px;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
border: 5px solid white;
|
||||
}
|
||||
|
||||
#goal{
|
||||
margin: 15px;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
border: 5px solid white;
|
||||
margin: 15px;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
border: 5px solid white;
|
||||
}
|
||||
|
||||
#topBar {
|
||||
@ -179,60 +179,91 @@ body {
|
||||
background-color: #020202;
|
||||
gap: 2rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
justify-content: center;
|
||||
inset-inline: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.game-mode {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.mode-card {
|
||||
background-color: #d3d3d3;
|
||||
color: #000;
|
||||
padding: 20px;
|
||||
width: 300px;
|
||||
height: 550px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 1.2em;
|
||||
background-color: #d3d3d3;
|
||||
color: #000;
|
||||
padding: 20px;
|
||||
width: 300px;
|
||||
height: 550px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 1.2em;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.mode-card:hover {
|
||||
transform: scale(1.05);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.search-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 40%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
border: 2px solid #ccc;
|
||||
font-size: 16px;
|
||||
outline: none;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
border: 2px solid #ccc;
|
||||
font-size: 16px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
border-color: white;
|
||||
border-color: white;
|
||||
}
|
||||
|
||||
.search-button {
|
||||
padding: 10px 20px;
|
||||
border: 2px solid white;
|
||||
background-color: #272727;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
padding: 10px 20px;
|
||||
border: 2px solid white;
|
||||
background-color: #272727;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.search-button:hover {
|
||||
background-color: #202020;
|
||||
border-color: #c4c4c4;
|
||||
background-color: #202020;
|
||||
border-color: #c4c4c4;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.buttonStartGame {
|
||||
background-color: white;
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.buttonStartGame:hover {
|
||||
background-color: rgb(186, 186, 186);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
@keyframes startGameAnim {
|
||||
0% {
|
||||
transform: translateX(-0%);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateX(-20%);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user