Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmlion committed Jan 28, 2024
2 parents 270de24 + cca28f3 commit 7139087
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/MemeBE/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
options.AddPolicy("MyCorsPolicy", builder =>
{
builder.WithOrigins("https://nice-water-0ee9aa403.4.azurestaticapps.net", "http://localhost:63342", "https://memethegathering.wielki.ch") // URL innego serwera
builder.WithOrigins("https://nice-water-0ee9aa403.4.azurestaticapps.net", "http://localhost:63342", "https://memethegathering.wielki.ch", "https://mtg.wielki.ch/") // URL innego serwera
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials(); // Ważne dla SignalR
Expand Down
12 changes: 11 additions & 1 deletion backend/MemeBE/cards.csv
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@
17;ParksandRecs;/static/jpg/ParksandRecs.png;MakeLaugh,1;1
18;Reee;/static/jpg/Reee.png;MakeLaugh,1;0
19;Rickroll;/static/jpg/Rickroll.png;MakeLaugh,1;1
20;RollSafeThink;/static/jpg/OhGodNo.png;Shield,2;2
20;SaladCat;/static/jpg/SaladCat.png;MakeLaugh,1;1
21;Satisfaction;/static/jpg/Satisfaction.png;Shield,2;2
22;ScumbagSteve;/static/jpg/ScumbagSteve.png;MakeLaugh,1;1
23;SpanishLaughingGuy;/static/jpg/SpanishLaughingGuy.png;MakeLaugh,1;1
24;SpiderMan;/static/jpg/SpiderMan.png;MakeLaugh,1;0
25;StareDad;/static/jpg/StareDad.png;MakeLaugh,1;1
26;SuccessBaby;/static/jpg/SuccessBaby.png;Shield,2;2
27;SurprisedPikachu;/static/jpg/SurprisedPikachu.png;MakeLaugh,1;1
28;SurprisedKirk;/static/jpg/SurprisedKirk.png;MakeLaugh,2;0
29;Takemymoney;/static/jpg/Takemymoney.png;MakeLaugh,2;1
30;RollSafeThink;/static/jpg/OhGodNo.png;Shield,1;2
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</head>
<body>
<div id="lobby">
<h1>Meme: The Gathering</h1>
<h1 class="rotating-text game-title" >Meme: The Gathering</h1>
<div id="games-list"></div>
<input type="text" id="player-name-input" placeholder="Player Name"/>
<input type="text" id="room-id-input" placeholder="Room ID"/>
Expand Down
34 changes: 32 additions & 2 deletions client/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ body {
background-image: url("../../Background.webp");
background-attachment: fixed;
background-size: cover;
height: 95%;
height: 98%;
}

#lobby {

background: rgba(42,178,217, .6);
position: relative;
width: 100%;
Expand All @@ -28,6 +29,10 @@ body {
flex-direction: column;
}

.game-title {
margin-top: 210px;
}

#lobby button, #lobby input {
width: 100%;
max-width: 300px;
Expand Down Expand Up @@ -110,6 +115,11 @@ body {
flex-direction: row;
}

#playersZones h1,h2,h3,h4 {

display:inline;
}

#playersZones .player {
background: linear-gradient(rgba(221,71,73, .6), rgba(18, 77, 94, 0.6) );
max-width: 33%;
Expand All @@ -125,6 +135,10 @@ body {
background-image: url("../../playericon.png");
}

.otherPlayerName {
font-family: 'Honk', sans-serif;
}

.middle {
flex-grow: 1;
display: flex;
Expand Down Expand Up @@ -161,8 +175,9 @@ body {
flex-wrap: nowrap;
/*background-color:rgba(57, 64, 77, .8);*/
padding: 15px;
overflow-x: scroll;
overflow-x: auto;
max-height: 300px;
min-height: 300px;
}

#playerZone .playerData {
Expand All @@ -185,6 +200,7 @@ body {
display: flex;
height: 150px;
width: 100%;
overflow-x: auto;
}

.card {
Expand Down Expand Up @@ -251,4 +267,18 @@ body {
/*font-family: 'Honk', sans-serif;*/
font-size: 24pt;
color: white;
}

@keyframes rotateText {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.rotating-text {

animation: rotateText 2s linear; /* 'infinite' for looping */
}
Binary file modified client/static/jpg/Satisfaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/SurprisedKirk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/Takemymoney.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions client/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ function addToGameLog(message) {
let li = document.createElement("li");
li.innerHTML = message;
document.querySelector("#gameLog ul").appendChild(li);
let logParent = document.querySelector("#gameLog");
logParent.scrollTop = logParent.scrollHeight;
}

function showLobbyErrorMessage(message) {
Expand All @@ -241,6 +243,7 @@ function addPlayerZone(playerName) {
playerDiv.setAttribute('data-player-name', playerName);

const nameElement = document.createElement('h3');
nameElement.className = 'otherPlayerName';
nameElement.textContent = playerName;

const laughElement = document.createElement('h4');
Expand Down

0 comments on commit 7139087

Please sign in to comment.