From d8f0e48bf30c2af82535b91765cfdbd5a91372e6 Mon Sep 17 00:00:00 2001 From: antv Date: Fri, 3 Jul 2026 16:54:43 +0700 Subject: [PATCH] feature: my page --- .../views/components/info-card.blade.php | 11 +- .../views/components/ranking-item.blade.php | 14 +- resources/views/components/sidebar.blade.php | 36 ++++- .../views/components/thank-card.blade.php | 14 +- resources/views/layouts/app.blade.php | 2 +- resources/views/login.blade.php | 2 +- resources/views/user/dashboard.blade.php | 140 ++++++++++-------- 7 files changed, 126 insertions(+), 93 deletions(-) diff --git a/resources/views/components/info-card.blade.php b/resources/views/components/info-card.blade.php index c47c2fd..21af161 100644 --- a/resources/views/components/info-card.blade.php +++ b/resources/views/components/info-card.blade.php @@ -1,11 +1,12 @@ -
+
-

Bạn có biết?

-

+

Bạn có biết?

+

Một lời cảm ơn chân thành có thể nhân đôi động lực làm việc của đồng nghiệp!

-
- 💡 +
+
+ 💡
diff --git a/resources/views/components/ranking-item.blade.php b/resources/views/components/ranking-item.blade.php index a54565c..69335ea 100644 --- a/resources/views/components/ranking-item.blade.php +++ b/resources/views/components/ranking-item.blade.php @@ -1,6 +1,6 @@ @props(['rank', 'name', 'team', 'avatar', 'score', 'isCurrent' => false, 'unit' => 'điểm']) -
+
@@ -18,17 +18,17 @@
- {{ $name }} + {{ $name }}
- {{ $name }} - {{ $team }} + {{ $name }} + {{ $team }}
-
- {{ number_format($score, 0, ',', '.') }} - {{ $unit }} +
+ {{ number_format($score, 0, ',', '.') }} + {{ $unit }}
diff --git a/resources/views/components/sidebar.blade.php b/resources/views/components/sidebar.blade.php index 8c17a8a..3b4b2ac 100644 --- a/resources/views/components/sidebar.blade.php +++ b/resources/views/components/sidebar.blade.php @@ -33,8 +33,6 @@ @if(Auth::check() && Auth::user()->role == \App\Models\User::ROLE_ADMIN) - -
Quản lý User @@ -51,18 +49,42 @@
-
+ + + + diff --git a/resources/views/components/thank-card.blade.php b/resources/views/components/thank-card.blade.php index b882304..e5bd516 100644 --- a/resources/views/components/thank-card.blade.php +++ b/resources/views/components/thank-card.blade.php @@ -1,16 +1,16 @@ -@props(['title', 'message', 'isLiked' => false, 'bgClass', 'titleColorClass', 'textColorClass']) +@props(['title', 'message', 'isLiked' => false, 'bgClass', 'titleColorClass', 'textColorClass', 'style' => '']) -
-

+
+

@if(str_contains($title, 'GREAT JOB')) - ✨ {{ $title }} ✨ + {{ $title }} @elseif(str_contains($title, 'YOU ROCK')) - 🌟 {{ $title }} 🌟 + 🌟{{ $title }}🌟 @else - 💖 {{ $title }} 💖 + 💖{{ $title }}💖 @endif

-

+

"{{ $message }}"

diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 66d6129..191dacd 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -15,7 +15,7 @@ -
+
diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index bff6b2d..70c8c1a 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -114,7 +114,7 @@

- © 2024 GMO-Z.com RUNSYSTEM. All rights reserved. + © 2026 GMO-Z.com RUNSYSTEM. All rights reserved.
diff --git a/resources/views/user/dashboard.blade.php b/resources/views/user/dashboard.blade.php index 990829c..cf4354c 100644 --- a/resources/views/user/dashboard.blade.php +++ b/resources/views/user/dashboard.blade.php @@ -53,93 +53,103 @@
-
- -
-
-

Thanks gần đây

- Xem tất cả -
+
+ + +
-
+ +
+
+

Thanks gần đây

+ Xem tất cả +
+ +
-
- -
- - -
-
-

Bảng xếp hạng

- Xem tất cả -
+ + +
+ +
+ + +
- -
- - -
+ +
+
+

Bảng xếp hạng

+ Xem tất cả +
+ + +
+ + +
- -
- - - - -
- - -
+ +
+ + + + +
+ + +
- -
@@ -154,8 +164,8 @@ const receivedContent = document.getElementById('ranking-received'); const sentContent = document.getElementById('ranking-sent'); - const activeClass = 'flex items-center justify-center gap-2 w-[135px] py-2 rounded-[10px] transition-all bg-white shadow-[0_2px_4px_rgba(0,0,0,0.04)] text-[#3462f7] font-bold text-[14px]'; - const inactiveClass = 'flex items-center justify-center gap-2 w-[135px] py-2 rounded-[10px] transition-all text-[#64748b] hover:text-gray-800 font-bold text-[14px]'; + const activeClass = 'flex items-center justify-center gap-2 w-[120px] py-2 rounded-[10px] transition-all bg-white shadow-[0_2px_4px_rgba(0,0,0,0.04)] text-[#3462f7] font-bold text-[14px]'; + const inactiveClass = 'flex items-center justify-center gap-2 w-[120px] py-2 rounded-[10px] transition-all text-[#64748b] hover:text-gray-800 font-bold text-[14px]'; if (tab === 'received') { receivedTab.className = activeClass;