-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a882cd
commit f7da538
Showing
5 changed files
with
74 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@media screen and (max-width: 1200px) { | ||
.button-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 80%; | ||
flex-direction: column; | ||
} | ||
|
||
.button { | ||
width: calc(20vh - 20px); /* Largeur égale à la hauteur pour faire un bouton carré */ | ||
height: calc(20vh - 20px); /* Hauteur égale à la largeur pour faire un bouton carré */ | ||
transform: translate(3vh); | ||
background-color: #1a237e; /* Légèrement plus clair que le fond */ | ||
border: 10px solid #3949ab; /* Bordure */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 24px; | ||
cursor: pointer; | ||
margin: 10px; /* Espacement entre les boutons */ | ||
font-size: 8vh; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 1200px) { | ||
.button-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 80%; | ||
} | ||
|
||
.button { | ||
width: calc(20vw - 20px); /* Largeur égale à la hauteur pour faire un bouton carré */ | ||
height: calc(20vw - 20px); /* Hauteur égale à la largeur pour faire un bouton carré */ | ||
transform: translate(10vw, 0); | ||
background-color: #1a237e; /* Légèrement plus clair que le fond */ | ||
border: 10px solid #3949ab; /* Bordure */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 24px; | ||
cursor: pointer; | ||
margin: 10px; /* Espacement entre les boutons */ | ||
font-size: 8vw; | ||
} | ||
} | ||
|
12 changes: 10 additions & 2 deletions
12
frontend/src/app/asymetric-unity-template/asymetric-unity-template.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
<!-- | ||
<div> | ||
<input type="text" [(ngModel)]="value"> | ||
<input type="button" value="send" (click)="click()"> | ||
</div> | ||
<input type="button" value="send" (click)="click()"> | ||
</div> | ||
--> | ||
<div class="button-container"> | ||
<div class="button" (click)="click('0')">💡</div> | ||
<div class="button" (click)="click('1')">🫀</div> | ||
<div class="button" (click)="click('2')">👻</div> | ||
<div class="button" (click)="click('3')">🪟</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: Arial, sans-serif; | ||
background-color: #1a237e; /* Fond sobre */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} |