@@ -13,35 +13,59 @@ import { useNavigate, useParams, useSearchParams } from 'react-router-dom';
1313import styled , { useTheme } from 'styled-components' ;
1414import { DashboardTabs } from '../DashboardTabs/DashboardTabs' ;
1515
16+ // A container to give a subtle, premium background and some padding.
17+ const PremiumContainer = styled . div `
18+ background: linear-gradient(to bottom, #f7f7f7, #eeeeee);
19+ border-radius: 8px;
20+ padding: 1.5rem;
21+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
22+ ` ;
23+
24+ // A container for the header (title + buttons).
25+ // Add a subtle border or bottom separation, which can help with a premium separation of sections.
26+ const HeaderContainer = styled ( Flex ) `
27+ padding-bottom: 1rem;
28+ border-bottom: 1px solid #d9d9d9;
29+ margin-bottom: 1.5rem;
30+ ` ;
31+
1632const StyledBaseSpace = styled ( BaseSpace ) `
1733 .dashboard-crown-icon {
1834 font-size: 30px !important;
19- color: #ffa500;
35+ /* Metallic silver or gold accent. You can swap #c0c0c0 (silver) with #FFD700 (gold) */
36+ color: #c0c0c0;
37+ transition: color 0.3s, transform 0.3s;
2038
2139 &:hover {
22- color: #ffa500;
40+ color: #a8a8a8;
41+ transform: scale(1.1);
2342 }
2443 }
2544
2645 .dashboard-link-icon {
2746 font-size: 28px !important;
28- color: #1890ff;
47+ color: #6c6c6c;
48+ transition: color 0.3s, transform 0.3s;
2949
3050 &:hover {
31- color: #40a9ff;
51+ color: #4f4f4f;
52+ transform: scale(1.05);
3253 }
3354 }
3455
3556 .ant-btn-disabled .dashboard-link-icon {
3657 color: #00000040;
58+ transform: none;
3759 }
3860
3961 .dashboard-git-icon {
4062 font-size: 28px !important;
41- color: #3e75c3;
63+ color: #6c6c6c;
64+ transition: color 0.3s, transform 0.3s;
4265
4366 &:hover {
44- color: #305d9c;
67+ color: #4f4f4f;
68+ transform: scale(1.05);
4569 }
4670 }
4771` ;
@@ -57,7 +81,6 @@ export const DashboardContent: React.FC = () => {
5781 const [ premiumType , setPremiumType ] = useState < Boolean > ( params . has ( 'premium' ) ) ;
5882 const [ repo , setRepo ] = useState < GitAppUsageType > ( ) ;
5983 const [ isLoading , setIsLoading ] = useState ( true ) ;
60- // const
6184
6285 useEffect ( ( ) => {
6386 getGitApp ( orgName || '' , repoName || '' , 'GITHUB' )
@@ -84,15 +107,20 @@ export const DashboardContent: React.FC = () => {
84107 }
85108
86109 return (
87- < >
88- < Flex justify = "space-between" align = "center" wrap = "wrap" gap = ".75rem" >
110+ < PremiumContainer >
111+ < HeaderContainer justify = "space-between" align = "center" wrap = "wrap" gap = ".75rem" >
89112 < Title level = { 4 } style = { { marginBottom : '0' } } >
90113 { orgName } /{ repoName }
91114 </ Title >
92115
93116 < StyledBaseSpace size = "middle" >
117+ { /* Show the premium crown if the user is not premium */ }
94118 { ! premiumType && (
95- < BaseTooltip placement = "topRight" title = { t ( 'dashboard.premiumBtnInfo' ) } color = { theme . primary6 } >
119+ < BaseTooltip
120+ placement = "topRight"
121+ title = { t ( 'dashboard.premiumBtnInfo' ) }
122+ color = { theme . primary6 }
123+ >
96124 < BaseButton
97125 type = "text"
98126 size = "small"
@@ -102,6 +130,7 @@ export const DashboardContent: React.FC = () => {
102130 </ BaseTooltip >
103131 ) }
104132
133+ { /* Netlify link (if available) */ }
105134 < BaseTooltip
106135 placement = "topRight"
107136 title = { repo ?. netlify ?. site_url ? t ( 'dashboard.archUrl' ) : t ( 'dashboard.archUrlUnavailable' ) }
@@ -119,6 +148,7 @@ export const DashboardContent: React.FC = () => {
119148 />
120149 </ BaseTooltip >
121150
151+ { /* GitHub link */ }
122152 < BaseTooltip placement = "topRight" title = { t ( 'dashboard.gitUrl' ) } color = { theme . primary6 } >
123153 < BaseButton
124154 type = "link"
@@ -130,8 +160,10 @@ export const DashboardContent: React.FC = () => {
130160 />
131161 </ BaseTooltip >
132162 </ StyledBaseSpace >
133- </ Flex >
134- { ( repo ) && < DashboardTabs repoDetails = { repo } /> }
135- </ >
163+ </ HeaderContainer >
164+
165+ { /* The rest of your Dashboard content */ }
166+ { repo && < DashboardTabs repoDetails = { repo } /> }
167+ </ PremiumContainer >
136168 ) ;
137169} ;
0 commit comments