Skip to content

Commit 446abaa

Browse files
committed
feat: add design for stats
1 parent 329b8d3 commit 446abaa

19 files changed

Lines changed: 96 additions & 5 deletions

frontend/src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { LoginComponent } from './login/login.component';
1111
import { HomeComponent } from './home/home.component';
1212
import {CookieModule} from "ngx-cookie";
1313
import {JWT_OPTIONS, JwtHelperService} from "@auth0/angular-jwt";
14+
import {NgOptimizedImage} from "@angular/common";
1415

1516
@NgModule({
1617
declarations: [
@@ -27,6 +28,7 @@ import {JWT_OPTIONS, JwtHelperService} from "@auth0/angular-jwt";
2728
AppRoutingModule,
2829
LayoutModule,
2930
ReactiveFormsModule,
31+
NgOptimizedImage,
3032
],
3133
exports: [
3234
],
Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,88 @@
1-
<div class="center">
2-
<div id="skinContainer"></div>
1+
<div class="flex h-screen flex-col items-center justify-between">
2+
<form class="m-4 w-11/12">
3+
<label for="default-search" class="mb-2 text-sm font-medium text-gray-900 sr-only">Search</label>
4+
<div class="relative">
5+
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
6+
<svg aria-hidden="true" class="w-5 h-5 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
7+
</div>
8+
<input type="search" id="default-search" class="block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500" placeholder="Search Matridex" required>
9+
<button type="submit" class="text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2">Search</button>
10+
</div>
11+
</form>
12+
13+
<div class="w-full flex justify-around items-center">
14+
<div class="w-fit flex space-x-14 justify-between items-center">
15+
<div>
16+
<div class="flex justify-between items-center">
17+
<img ngSrc="assets/img/icons8-minecraft-schwert-48.png" width="45" height="40">
18+
<p style="font-size: 35px;" class="ml-4">90</p>
19+
</div>
20+
<div class="flex justify-between items-center mt-4">
21+
<img ngSrc="assets/img/money.png" class="mr-5" width="45" height="40">
22+
<p style="font-size: 35px;" class="ml-4">2000$</p>
23+
</div>
24+
<div class="flex justify-between items-center mt-4">
25+
<img ngSrc="assets/img/minecraft-food.png" width="45" height="40">
26+
<p style="font-size: 35px;" class="ml-4">7</p>
27+
</div>
28+
<div class="flex justify-between items-center mt-4">
29+
<img ngSrc="assets/img/experience-orb.webp" width="45" height="40">
30+
<p style="font-size: 35px;" class="ml-4">1300</p>
31+
</div>
32+
</div>
33+
<div class="inline-block h-[320px] min-h-[1em] w-0.5 self-stretch bg-black opacity-100"></div>
34+
<div>
35+
<div class="flex justify-between items-center">
36+
<img ngSrc="assets/img/Slimeball_JE2_BE2.webp" width="45" height="40">
37+
<p style="font-size: 35px;" class="ml-4">25</p>
38+
</div>
39+
<div class="flex justify-between items-center mt-4">
40+
<img ngSrc="assets/img/minecraft-diamond.webp" width="45" height="40">
41+
<p style="font-size: 35px;" class="ml-4">4</p>
42+
</div>
43+
<div class="flex justify-between items-center mt-4">
44+
<img ngSrc="assets/img/crossed-swords.png" width="45" height="40">
45+
<p style="font-size: 35px;" class="ml-4">10</p>
46+
</div>
47+
<div class="flex justify-between items-center mt-4">
48+
<img ngSrc="assets/img/medal.png" width="50" height="50">
49+
<p style="font-size: 35px;" class="ml-4">19</p>
50+
</div>
51+
</div>
52+
<div class="inline-block h-[320px] min-h-[1em] w-0.5 self-stretch bg-black opacity-100"></div>
53+
<div>
54+
<div class="flex justify-between items-center">
55+
<img ngSrc="assets/img/mcmmo.jpeg" width="45" height="40">
56+
<p style="font-size: 35px;" class="ml-4">147</p>
57+
</div>
58+
<div class="flex justify-between items-center mt-4">
59+
<img ngSrc="assets/img/potion.webp" width="45" height="40">
60+
<p style="font-size: 35px;" class="ml-4">15</p>
61+
</div>
62+
<div class="flex justify-between items-center mt-4">
63+
<img ngSrc="assets/img/skills.png" width="50" height="60">
64+
<p style="font-size: 35px;" class="ml-4">73</p>
65+
</div>
66+
<div class="flex justify-between items-center mt-4">
67+
<p style="font-size: 35px;" class="ml-4 text-white" >.</p>
68+
</div>
69+
</div>
70+
</div>
71+
<div class="flex items-center flex-col mt-8">
72+
<h1 style="font-size: 30px">S1mple133</h1>
73+
<div id="skinContainer"></div>
74+
<div class="flex justify-between items-center mt-4">
75+
<img *ngFor="let i of [1,2,3,4,5,6,7]" ngSrc="assets/img/minecraft-heart.webp" width="35" height="35">
76+
<img *ngFor="let i of [1,2,3]" ngSrc="assets/img/minecraft-heart-black.png" width="35" height="35" >
77+
</div>
78+
</div>
79+
</div>
80+
81+
<div class="w-full">
82+
<footer class="bg-white shadow dark:bg-gray-900 w-full">
83+
<div class="w-full max-w-screen-xl mx-auto py-3">
84+
<span class="block text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2023 <a href="https://icons8.com" class="hover:underline">MatrixNetwork™</a>. All Rights Reserved. Icons by <a href="https://matrixnetwork.org/" class="hover:underline">Icons8</a> </span>
85+
</div>
86+
</footer>
87+
</div>
388
</div>

frontend/src/app/home/home.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class HomeComponent implements OnInit {
2222
this._statsService.getSkinName().subscribe((skin: any) => {
2323
console.log(skin.skin);
2424

25-
genSkin(skin.skin);
25+
genSkin(skin.skin, 300, 500);
2626
});
2727
}
2828

216 Bytes
Loading
29.2 KB
Loading
162 Bytes
Loading
277 Bytes
Loading

frontend/src/assets/img/mcmmo.jpeg

10.3 KB
Loading

frontend/src/assets/img/medal.png

338 KB
Loading
8 KB
Loading

0 commit comments

Comments
 (0)