Skip to content

Commit d09ebdc

Browse files
Merge pull request #108 from terminusdb/cleanup
cleanup css
2 parents c356058 + cdd7e65 commit d09ebdc

File tree

4 files changed

+61
-33
lines changed

4 files changed

+61
-33
lines changed

packages/tdb-dashboard/src/App.css

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,31 +1195,3 @@ pre.CodeMirror-line > span > span.cm-string {
11951195
width: 100px;
11961196
height: 100px;
11971197
}
1198-
1199-
.free_button_text_color {
1200-
color: #664d03 !important;
1201-
}
1202-
1203-
.free {
1204-
border: 1px solid rgb(254, 216, 147);
1205-
color: rgb(254, 216, 147);
1206-
}
1207-
1208-
.professional {
1209-
border: 1px solid rgb(232, 124, 214);
1210-
color: rgb(232, 124, 214);
1211-
}
1212-
1213-
.scale {
1214-
border: 1px solid rgb(134, 89, 250);
1215-
color: rgb(134, 89, 250);
1216-
}
1217-
1218-
.enterprise {
1219-
border: 1px solid rgb(52, 80, 220);
1220-
color: rgb(52, 80, 220);
1221-
}
1222-
1223-
.verify__email {
1224-
background : linear-gradient(122deg,#fed893 0,#e87cd6 48%,#4058d0 100%);
1225-
}

packages/tdb-dashboard/src/Colors.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
:root {
55
--color-pink: #de7dd8;
66
--text-contrast-pink: #002856;
7+
--color-indigo: rgb(52, 80, 220);
78
--color-purple: #855afc;
89
--color-purple-hover: #8f75d8;
910
--text-contrast-purple: #fff;
1011
--color-yellow: #f9d891;
12+
--text-yellow: #664d03 ;
1113
--color-contrast-yellow: #002856;
1214
--color-border-yellow: #d7a12f;
1315

@@ -23,6 +25,51 @@
2325
--badge-border-color: var(--color-border-yellow);
2426
}
2527

28+
/** subscription css */
29+
.free_button_text_color {
30+
color: var(--text-yellow) !important;
31+
}
32+
33+
.free {
34+
border: 1px solid var(--color-yellow);
35+
color: var(--color-yellow);
36+
}
37+
38+
.badge-free {
39+
background-color: var(--color-yellow);
40+
}
41+
42+
.professional {
43+
border: 1px solid var(--color-pink);
44+
color: var(--color-pink);
45+
}
46+
47+
.badge-professional {
48+
background-color: var(--color-pink);
49+
}
50+
51+
.scale {
52+
border: 1px solid var(--color-purple);
53+
color: var(--color-purple);
54+
}
55+
56+
.badge-scale {
57+
background-color: var(--color-purple);
58+
}
59+
60+
.enterprise {
61+
border: 1px solid var(--color-indigo);
62+
color: var(--color-indigo)
63+
}
64+
65+
.badge-enterprise {
66+
background-color: var(--color-indigo);
67+
}
68+
69+
.verify__email {
70+
background : linear-gradient(122deg,var(--color-yellow) 0,var(--color-pink) 48%, var(--color-indigo) 100%);
71+
}
72+
2673
.text-success,
2774
h3.text-success,
2875
h4.text-success,

packages/tdb-dashboard/src/pages/PlansPage.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,19 @@ export const PlansPage = (props) => {
8080
return <Card className="mr-4">
8181
<Card.Body>
8282
<Stack direction="horizontal" gap={3}>
83-
<h6 className="text-light fw-lighter">Current Subscription</h6>
84-
<Badge className={`ms-auto ${payment[0].className}`}>{payment[0].title}</Badge>
85-
<div className={`${payment[0].className} border border-0`}>
83+
<h6 className="text-light fw-bold">Current Subscription</h6>
84+
<Badge bg="" className={`ms-auto`} style={{backgroundColor: payment[0].color , color: payment[0].textColor}}>
85+
{payment[0].title.toUpperCase()}
86+
</Badge>
87+
{(tier === PROFESSIONAL_PLAN || tier === SCALE_PLAN) && <div className={`${payment[0].className} border border-0 fw-bold`}>
88+
<MdEuroSymbol className="mb-1"/>
8689
{payment[0].price}
87-
</div>
90+
</div>}
91+
{tier === COMMUNITY_PLAN && <div className={`${payment[0].className} ${payment[0].textColor} border border-0`}>
92+
{payment[0].price}
93+
</div>}
8894
</Stack>
8995
</Card.Body>
90-
9196
</Card>
9297
}
9398

packages/tdb-dashboard/src/payment/labels.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const PLANS_DESCRIPTION = [
4646
'100,000 API calls per month'
4747
],
4848
color:"#fed893",
49+
textColor: "#664d03",
4950
buttonLabel:'Get Started',
5051
buttonTextColor: "free_button_text_color",
5152
showButton:false,
@@ -70,6 +71,7 @@ export const PLANS_DESCRIPTION = [
7071
'1 million API calls per month'
7172
],
7273
color:"#e87cd6",
74+
textColor: "text-white",
7375
buttonTextColor: "text-white",
7476
buttonLabel:"Upgrade to Professional",
7577
icon: <RiUserStarLine className="subscription_icons professional"/>,
@@ -93,6 +95,7 @@ export const PLANS_DESCRIPTION = [
9395
'10 million API calls per month'
9496
],
9597
color:"#8659fa",
98+
textColor: "text-white",
9699
buttonTextColor: "text-white",
97100
buttonLabel:"Upgrade to Scale",
98101
icon: <RiCommunityLine className="subscription_icons scale"/>,
@@ -114,6 +117,7 @@ export const PLANS_DESCRIPTION = [
114117
'placeholder_label'
115118
],
116119
color:"#3450dc",
120+
textColor: "text-white",
117121
buttonTextColor: "text-white",
118122
buttonLabel:"Contact us",
119123
icon: <ImLibrary className="subscription_icons enterprise"/>,

0 commit comments

Comments
 (0)