Skip to content

Commit 827a45c

Browse files
authored
update: Pro Plan update (#406)
1 parent 1bb8b27 commit 827a45c

File tree

8 files changed

+380
-125
lines changed

8 files changed

+380
-125
lines changed

src/components/Layout/index.scss

Lines changed: 97 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -573,23 +573,39 @@ h6 code {
573573
.pricing-table {
574574
width: 100%;
575575
border-collapse: collapse;
576+
margin-top: 2rem;
576577
}
577578
.pricing-table td,
578579
.pricing-table th {
579-
width: 25%;
580+
width: 20%;
580581
}
581582
.pricing-table thead th {
582583
@extend .f3;
583584
@extend .pb3;
584-
border-bottom: 2px solid #a51b1b;
585+
font-size: 1.2rem;
585586
}
587+
588+
.pricing-table thead tr:first-child,
589+
.pricing-table thead tr:first-child th {
590+
padding-bottom: 0.5rem;
591+
}
592+
593+
.pricing-table thead tr:last-child,
594+
.pricing-table thead tr:last-child th {
595+
font-style: italic;
596+
color: #555;
597+
font-size: 0.8rem;
598+
padding-top: 0;
599+
border-bottom: 2px solid #2d437d;
600+
}
601+
586602
.pricing-table tbody th,
587603
.pricing-table tbody td {
588604
@extend .pv3;
589605
@extend .ph1;
590606
}
591607
.pricing-table tbody tr {
592-
border-bottom: 1px solid #a51b1b;
608+
border-bottom: 1px solid #2d437d;
593609
}
594610
.pricing-table tbody tr:last-child th,
595611
.pricing-table tbody tr:last-child td {
@@ -609,10 +625,10 @@ h6 code {
609625
@extend .f3;
610626
}
611627
.pricing-table .fa-check-circle {
612-
color: green;
628+
color: #4a68b4;
613629
}
614630
.pricing-table .fa-times-circle {
615-
color: red;
631+
color: rgb(255, 71, 81);
616632
}
617633
.pricing-table .fa-minus-circle {
618634
color: #ccc;
@@ -712,22 +728,30 @@ h6 code {
712728
position: relative;
713729
padding-left: 40%;
714730
}
731+
}
732+
tbody,
733+
tfoot {
715734
td::before {
716-
content: "Placeholder";
735+
content: "";
717736
position: absolute;
718737
left: 0.5rem;
719738
top: 0;
720739
font-variant: small-caps;
721740
font-size: 1.2em;
722741
}
723-
td:nth-of-type(1)::before {
724-
content: "Core";
725-
}
726742
td:nth-of-type(2)::before {
727-
content: "Supporter";
743+
content: "Pro";
728744
}
729745
td:nth-of-type(3)::before {
730-
content: "Pro";
746+
content: "Sponsor+";
747+
}
748+
td:nth-of-type(4)::before {
749+
content: "Enterprise";
750+
}
751+
}
752+
tbody {
753+
td:nth-of-type(1)::before {
754+
content: "Core";
731755
}
732756
}
733757
}
@@ -749,14 +773,19 @@ h6 code {
749773
font-weight: normal;
750774
}
751775

776+
.plan-sponsor {
777+
@extend .plan-tag;
778+
background-color: rgb(45, 128, 211);
779+
}
780+
752781
.plan-supporter {
753782
@extend .plan-tag;
754-
background-color: #4d4dff;
783+
background-color: rgb(45, 128, 211);
755784
}
756785

757786
.plan-pro {
758787
@extend .plan-tag;
759-
background-color: #c511c5;
788+
background-color: rgb(255, 71, 81);
760789
}
761790
.plan-enterprise {
762791
@extend .plan-tag;
@@ -768,6 +797,55 @@ h6 code {
768797
}
769798
}
770799

800+
/* Tooltip container */
801+
.tooltipped {
802+
position: relative;
803+
display: inline-block;
804+
text-decoration: underline dotted 2px #a1a1a1;
805+
}
806+
807+
/* Tooltip text */
808+
.tooltipped > .tooltip-text {
809+
display: block;
810+
visibility: hidden;
811+
width: 220px;
812+
background-color: white;
813+
border: 2px solid #a1a1a1;
814+
color: black;
815+
text-align: center;
816+
padding: 5px 0;
817+
border-radius: 6px;
818+
position: absolute;
819+
top: 0;
820+
right: 0;
821+
z-index: 10;
822+
}
823+
824+
.tooltipped:hover > .tooltip-text {
825+
visibility: visible;
826+
top: -5px;
827+
left: 105%;
828+
}
829+
830+
.tooltipped > .tooltip-text::after {
831+
content: " ";
832+
position: absolute;
833+
top: 50%;
834+
right: 100%; /* To the left of the tooltip */
835+
margin-top: -5px;
836+
border-width: 5px;
837+
border-style: solid;
838+
border-color: transparent #555 transparent transparent;
839+
}
840+
841+
.show-full {
842+
display: contents;
843+
}
844+
845+
.show-mobile {
846+
display: none;
847+
}
848+
771849
// ----------------------------------------
772850
// Misc media queries
773851

@@ -778,6 +856,12 @@ h6 code {
778856
left: 50%;
779857
}
780858
}
859+
.show-full {
860+
display: none;
861+
}
862+
.show-mobile {
863+
display: contents;
864+
}
781865
}
782866

783867
@media screen and (max-width: 30em) {

src/pages/postgraphile/live-queries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ lot more that can be done to optimise our logical decoding support, so if you
249249
get to a point where logical decoding performance is an issue, please get in
250250
touch!
251251

252-
Optimisation steps you can take currently:
252+
Optimization steps you can take currently:
253253

254254
- Whitelist (or otherwise limit) the live queries that your system may perform
255255
- Only write small non-overlapping live queries - since the entire query must
@@ -261,12 +261,12 @@ Optimisation steps you can take currently:
261261
- Move the logical decoding system to a dedicated server
262262
- Add more `liveConditions` to queries to filter rows the user may not see so
263263
that they do not trigger live updates for that user (TODO: document this!)
264-
- Use read replicas [PRO]
264+
- Use read replicas [PRO] [SPON]
265265

266266
We do not currently recommend live queries for very large deployments - if
267267
you're expecting tens of thousands of concurrent users it's going to be
268268
significantly more efficient to use regular
269-
[subscriptions](/postgraphile/subscriptions/)
269+
[subscriptions](/postgraphile/subscriptions/).
270270

271271
### Scaling
272272

src/pages/postgraphile/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ There are also a couple of first-party plugins that may be purchased on the
3333

3434
- ~~`@graphile/supporter`~~ - all features now OSS via `@graphile/pg-pubsub`
3535
plugin
36-
- `@graphile/pro` [PRO] - includes protections that can be mounted in front of
37-
PostGraphile to protect it from malicious actors
36+
- `@graphile/pro` [PRO] [SPON] - includes protections that can be mounted
37+
in front of PostGraphile to protect it from malicious actors
3838

3939
To use these premium plugins you will need a `GRAPHILE_LICENSE` environmental
4040
variable to be present, as in these examples:

0 commit comments

Comments
 (0)