Spaces:
Sleeping
Sleeping
Hkoradiya123
Refactor ProfilePage: Remove performance logs management, add AI insights refresh functionality, and update UI components for better user experience. Enhance admin and dashboard styles for improved layout and usability. Integrate Groq AI for performance insights generation and analysis.
7d996b5 Download frontend/src/pages/dashboard.module.css from jinksQspider/SSC: direct link, hf CLI and curl.
- Browser
- Download file 8.37 kB
-
https://huggingface.co/spaces/jinksQspider/SSC/resolve/main/frontend/src/pages/dashboard.module.css
- Command line
-
hf download hf://spaces/jinksQspider/SSC/frontend/src/pages/dashboard.module.css
-
curl -L -o dashboard.module.css https://huggingface.co/spaces/jinksQspider/SSC/resolve/main/frontend/src/pages/dashboard.module.css
8.37 kB
| .dashboard { | |
| min-height: calc(100vh - 70px); | |
| padding: 34px 20px 50px; | |
| background: | |
| radial-gradient(circle at 8% 14%, rgba(13, 168, 140, 0.15), transparent 36%), | |
| radial-gradient(circle at 90% 12%, rgba(255, 167, 30, 0.16), transparent 32%), | |
| #f2f8f7; | |
| } | |
| .container { | |
| max-width: 1240px; | |
| margin: 0 auto; | |
| } | |
| .pageHead { | |
| margin-bottom: 20px; | |
| } | |
| .pageHead h1 { | |
| color: #123935; | |
| font-size: clamp(32px, 5vw, 44px); | |
| margin-bottom: 8px; | |
| } | |
| .pageHead p { | |
| color: #4d6762; | |
| font-size: 16px; | |
| } | |
| .loading { | |
| text-align: center; | |
| padding: 60px 20px; | |
| font-size: 18px; | |
| color: #5f6368; | |
| } | |
| .aiPanelHeader { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 10px; | |
| margin-bottom: 12px; | |
| } | |
| .aiPanelHeader h2 { | |
| margin-bottom: 0; | |
| } | |
| .aiRefreshBtn { | |
| border: 1px solid #9ecfc4; | |
| border-radius: 999px; | |
| background: #ffffff; | |
| color: #136a56; | |
| padding: 6px 12px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| } | |
| .aiRefreshBtn:hover:not(:disabled) { | |
| background: #f3fbf8; | |
| } | |
| .aiRefreshBtn:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| } | |
| .error { | |
| background-color: #fee8e8; | |
| color: #d32f2f; | |
| padding: 20px; | |
| border-radius: 8px; | |
| text-align: center; | |
| margin: 20px; | |
| border-left: 4px solid #d32f2f; | |
| } | |
| /* Stats Grid */ | |
| .statsGrid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | |
| gap: 12px; | |
| margin-bottom: 18px; | |
| } | |
| .statCard { | |
| background: linear-gradient(150deg, #16433e, #0f3531); | |
| border-radius: 12px; | |
| box-shadow: 0 10px 24px rgba(19, 63, 58, 0.2); | |
| padding: 18px; | |
| color: #ffffff; | |
| } | |
| .statCard h3 { | |
| color: rgba(255, 255, 255, 0.86); | |
| font-size: 12px; | |
| margin-bottom: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| } | |
| .statValue { | |
| font-size: 30px; | |
| font-weight: bold; | |
| color: #fff; | |
| } | |
| .analyticsGrid { | |
| display: grid; | |
| grid-template-columns: 1.3fr 1fr; | |
| gap: 14px; | |
| margin-bottom: 16px; | |
| } | |
| .panel { | |
| background: #ffffff; | |
| border-radius: 16px; | |
| border: 1px solid #d6e8e3; | |
| box-shadow: 0 10px 25px rgba(24, 61, 56, 0.08); | |
| padding: 16px; | |
| } | |
| .panel h2 { | |
| color: #153b37; | |
| margin-bottom: 12px; | |
| } | |
| .chartColumns { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 12px; | |
| } | |
| .chartColumns h4 { | |
| margin-bottom: 10px; | |
| font-size: 14px; | |
| color: #355e59; | |
| } | |
| .bars { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .barRow { | |
| display: grid; | |
| grid-template-columns: 88px 1fr 46px; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .barRow span { | |
| font-size: 12px; | |
| color: #3f605c; | |
| } | |
| .barRow strong { | |
| text-align: right; | |
| font-size: 12px; | |
| color: #244542; | |
| } | |
| .barTrack { | |
| height: 10px; | |
| border-radius: 999px; | |
| background: #ebf3f1; | |
| overflow: hidden; | |
| } | |
| .barFill { | |
| height: 100%; | |
| border-radius: 999px; | |
| background: linear-gradient(135deg, #14a589, #0f836d); | |
| } | |
| .trendGrid { | |
| display: flex; | |
| gap: 8px; | |
| align-items: flex-end; | |
| min-height: 150px; | |
| padding-bottom: 6px; | |
| } | |
| .trendItem { | |
| flex: 1; | |
| min-width: 18px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .trendBar { | |
| width: 100%; | |
| min-height: 10px; | |
| border-radius: 6px 6px 3px 3px; | |
| background: linear-gradient(180deg, #ffae34, #f38500); | |
| } | |
| .trendItem small { | |
| font-size: 10px; | |
| color: #53716d; | |
| } | |
| .insightHeadline { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 10px; | |
| padding: 10px; | |
| border-radius: 10px; | |
| background: #eff8f6; | |
| } | |
| .insightHeadline span { | |
| color: #245750; | |
| text-transform: capitalize; | |
| font-weight: 600; | |
| } | |
| .insightHeadline strong { | |
| color: #1f493f; | |
| } | |
| .insightsList { | |
| margin: 0; | |
| padding-left: 18px; | |
| color: #365f59; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 7px; | |
| } | |
| .topStatsSection { | |
| margin-bottom: 16px; | |
| } | |
| .topStatsSection h2 { | |
| margin-bottom: 10px; | |
| color: #153b37; | |
| } | |
| .topStatsGrid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); | |
| gap: 12px; | |
| } | |
| .topStatCard, | |
| .topStatCardAlt { | |
| color: white; | |
| padding: 20px; | |
| border-radius: 10px; | |
| text-align: center; | |
| } | |
| .topStatCard { | |
| background: linear-gradient(135deg, #0f7f97 0%, #145e78 100%); | |
| } | |
| .topStatCardAlt { | |
| background: linear-gradient(135deg, #e27a1f 0%, #c15300 100%); | |
| } | |
| .topStatCard h4, | |
| .topStatCardAlt h4 { | |
| font-size: 13px; | |
| opacity: 0.9; | |
| margin-bottom: 8px; | |
| } | |
| .topStatCard p, | |
| .topStatCardAlt p { | |
| font-size: 20px; | |
| font-weight: bold; | |
| margin-bottom: 12px; | |
| } | |
| .badge { | |
| display: inline-block; | |
| background-color: rgba(255, 255, 255, 0.2); | |
| padding: 6px 12px; | |
| border-radius: 20px; | |
| font-size: 14px; | |
| } | |
| .section { | |
| margin-bottom: 16px; | |
| background: #fff; | |
| border-radius: 16px; | |
| border: 1px solid #d6e8e3; | |
| box-shadow: 0 10px 25px rgba(24, 61, 56, 0.08); | |
| padding: 16px; | |
| } | |
| .section h2 { | |
| margin-bottom: 12px; | |
| color: #153b37; | |
| } | |
| .sectionHeader { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 12px; | |
| } | |
| .sectionHeader span { | |
| background: #ebf7f3; | |
| color: #12614d; | |
| border-radius: 999px; | |
| padding: 5px 10px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| } | |
| .sectionHeaderActions { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .inlineActionBtn { | |
| border: 1px solid #9fd0c5; | |
| border-radius: 999px; | |
| background: #ffffff; | |
| color: #136a56; | |
| padding: 5px 10px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| } | |
| .inlineActionBtn:hover { | |
| background: #f3fbf8; | |
| } | |
| .clearReadBtn { | |
| border: 1px solid #e2c4c4; | |
| border-radius: 999px; | |
| background: #fff; | |
| color: #8e2f2f; | |
| padding: 5px 10px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| } | |
| .clearReadBtn:hover { | |
| background: #fff6f6; | |
| } | |
| .playersList { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | |
| gap: 12px; | |
| } | |
| .playerCard { | |
| background: #ffffff; | |
| border: 1px solid #e3efec; | |
| padding: 16px; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 12px rgba(17, 57, 51, 0.08); | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| } | |
| .playerCard:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(17, 57, 51, 0.12); | |
| } | |
| .playerInfo h3 { | |
| margin-bottom: 8px; | |
| color: #1d4540; | |
| } | |
| .premium { | |
| color: #0f8c74; | |
| font-weight: 500; | |
| margin-bottom: 12px; | |
| } | |
| .email { | |
| color: #56716c; | |
| font-size: 14px; | |
| margin-bottom: 8px; | |
| } | |
| .joinDate { | |
| color: #56716c; | |
| font-size: 13px; | |
| } | |
| .stats { | |
| display: flex; | |
| gap: 16px; | |
| margin-top: 12px; | |
| font-size: 14px; | |
| } | |
| .stats span { | |
| color: #0f7f97; | |
| font-weight: 500; | |
| } | |
| .fundsGrid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 12px; | |
| } | |
| .fundCard { | |
| border: 1px solid #ddede9; | |
| border-radius: 12px; | |
| padding: 14px; | |
| background: #f8fcfb; | |
| } | |
| .fundCard span { | |
| display: block; | |
| color: #4d6863; | |
| font-size: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| } | |
| .fundCard strong { | |
| display: block; | |
| margin-top: 8px; | |
| color: #133d38; | |
| font-size: 22px; | |
| } | |
| .notificationList { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| .noticeItem { | |
| border: 1px solid #e2eeea; | |
| border-left: 4px solid #12806f; | |
| border-radius: 10px; | |
| background: #f9fcfb; | |
| padding: 12px; | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 12px; | |
| } | |
| .noticeRead { | |
| opacity: 0.68; | |
| border-left-color: #9ab8b1; | |
| } | |
| .noticeItem h4 { | |
| color: #1e4540; | |
| margin-bottom: 4px; | |
| } | |
| .noticeItem p { | |
| color: #42625d; | |
| margin-bottom: 4px; | |
| } | |
| .noticeItem small { | |
| color: #688883; | |
| } | |
| .noticeItem button { | |
| border: none; | |
| border-radius: 9px; | |
| background: #1f8e78; | |
| color: #fff; | |
| padding: 8px 10px; | |
| height: fit-content; | |
| font-weight: 600; | |
| } | |
| .deleteNoticeBtn { | |
| align-self: flex-start; | |
| border: 1px solid #dfdede ; | |
| background: #fff ; | |
| color: #8b3a3a ; | |
| width: 28px; | |
| height: 28px; | |
| border-radius: 999px ; | |
| padding: 0 ; | |
| line-height: 1; | |
| font-size: 18px; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .deleteNoticeBtn:hover { | |
| background: #fff1f1 ; | |
| } | |
| .empty { | |
| color: #6a8782; | |
| font-size: 14px; | |
| } | |
| @media (max-width: 980px) { | |
| .analyticsGrid { | |
| grid-template-columns: 1fr; | |
| } | |
| .chartColumns { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| @media (max-width: 760px) { | |
| .dashboard { | |
| padding: 20px 12px 36px; | |
| } | |
| .statCard { | |
| padding: 14px; | |
| } | |
| .statValue { | |
| font-size: 26px; | |
| } | |
| .barRow { | |
| grid-template-columns: 72px 1fr 42px; | |
| } | |
| } | |