Skip to content

Commit 3b4f515

Browse files
feat(styles): UI
1 parent 8427289 commit 3b4f515

File tree

3 files changed

+121
-6
lines changed

3 files changed

+121
-6
lines changed

www/index.html

+15-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</head>
1212

1313
<body class="ui-cookie">
14-
14+
<!---
1515
<audio id="splash" preload="auto" loop>
1616
<source src="./src/audio/start.mp3" type="audio/mp3">
1717
</audio>
@@ -48,9 +48,18 @@ <h1 class="title">
4848
</div>
4949
5050
</start-screen>
51+
style="display: none !important;"
52+
-->
5153

5254

53-
<ui style="display: none !important;" class="d-flex flex-column justify-content-center align-items-center text-center vh-100">
55+
<ui class="d-flex flex-column justify-content-center align-items-center text-center vh-100">
56+
57+
<div class="room-code position-fixed top-0 start-50 translate-middle-x mt-4">
58+
<h3><i class="fas fa-key"></i> Código da Sala:</h3>
59+
<p>ABCD1234</p>
60+
</div>
61+
62+
5463

5564
<div class="text-center">
5665
<table class="statistic">
@@ -68,10 +77,10 @@ <h1 class="title">
6877
</div>
6978

7079
<cookie class="cookie position-relative">
71-
<img src="https://raw.githubusercontent.com/sebastianjnuwu/sebastianjnuwu/refs/heads/main/website/7_Sem_Titulo_20241227172134.png"
72-
alt="cookie"
73-
class="icon mb-4">
74-
</cookie>
80+
<img src="https://raw.githubusercontent.com/sebastianjnuwu/sebastianjnuwu/refs/heads/main/website/7_Sem_Titulo_20241227172134.png" alt="cookie" class="icon mb-4">
81+
</cookie>
82+
83+
7584
</ui>
7685

7786
<script type="module" src="./src/js/main.js" defer></script>

www/src/js/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ $(() => {
1414
$("start-screen").remove();
1515
$("ui").show();
1616
});
17+
1718
});

www/src/styles/css/ui.css

+105
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,108 @@ ui .statistic td .value {
168168
display: block;
169169
margin-top: 5px;
170170
}
171+
172+
.room-code {
173+
text-align: center;
174+
background-color: #f4a460;
175+
padding: 5px;
176+
border: 1px solid #d2691e;
177+
box-shadow: 1px 1px var(--text-color-dark);
178+
border-radius: 16px;
179+
width: 10rem;
180+
margin: 0.5rem;
181+
font-weight: bold;
182+
opacity: 0;
183+
animation: slideIn 2s forwards;
184+
}
185+
.room-code h3 {
186+
margin: 0;
187+
padding: 0;
188+
font-family: "minecraftia", cursive;
189+
font-weight: bold;
190+
font-size: 0.6rem;
191+
color: #4b2e16;
192+
}
193+
.room-code p {
194+
font-family: "minecraftia", cursive;
195+
font-size: 1rem;
196+
margin: 0;
197+
background-color: #f4a460;
198+
color: #4b2e16;
199+
border-radius: 5px;
200+
font-weight: bold;
201+
letter-spacing: 1px;
202+
}
203+
204+
@keyframes slideIn {
205+
0% {
206+
transform: translateY(-20px);
207+
opacity: 0;
208+
}
209+
100% {
210+
transform: translateY(0);
211+
opacity: 1;
212+
}
213+
}
214+
215+
/*
216+
#ranking {
217+
width: 100%;
218+
max-width: 400px;
219+
background-color: #ffdd99;
220+
border: 2px solid #d2691e;
221+
border-radius: 10px;
222+
padding: 20px;
223+
margin: 20px auto;
224+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
225+
text-align: center;
226+
}
227+
228+
#ranking h2 {
229+
font-size: 1.8rem;
230+
color: #4b2e16;
231+
text-transform: uppercase;
232+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
233+
margin-bottom: 15px;
234+
}
235+
236+
#ranking-list {
237+
list-style: none;
238+
padding: 0;
239+
margin: 0;
240+
}
241+
242+
#ranking-list li {
243+
background-color: #f4a460;
244+
color: #4b2e16;
245+
border: 2px solid #d2691e;
246+
border-radius: 5px;
247+
margin: 10px 0;
248+
padding: 10px 15px;
249+
display: flex;
250+
justify-content: space-between;
251+
align-items: center;
252+
font-size: 1.2rem;
253+
font-weight: bold;
254+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
255+
transition: transform 0.3s ease;
256+
}
257+
258+
#ranking-list li span:first-child:before {
259+
content: "🍪 "; /
260+
}
261+
262+
#ranking-list li.new {
263+
background-color: #ffdd99;
264+
animation: pop 0.5s ease-out;
265+
}
266+
267+
@keyframes pop {
268+
0% {
269+
transform: scale(1.2);
270+
}
271+
100% {
272+
transform: scale(1);
273+
}
274+
}
275+
*/

0 commit comments

Comments
 (0)