Skip to content

Commit

Permalink
Add badges for Cloud-related plans (#1873)
Browse files Browse the repository at this point in the history
* Add proposal for badges for Cloud-related plans

* Remove example badges
  • Loading branch information
pwizla authored Oct 16, 2023
1 parent 5dc73df commit d5c0951
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
19 changes: 19 additions & 0 deletions docusaurus/src/components/Badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,25 @@ export function EnterpriseBadge(props) {
);
}

export function CloudProBadge(props) {
return (
<Badge
variant="Strapi Cloud Pro"
link="https://strapi.io/pricing-cloud"
{...props}
/>
);
}

export function CloudTeamBadge(props) {
return (
<Badge
variant="Strapi Cloud Team"
link="https://strapi.io/pricing-cloud"
{...props}
/>
);
}

export function NewBadge(props) {
return (
Expand Down
10 changes: 10 additions & 0 deletions docusaurus/src/scss/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
--custom-badge-color: rgb(229, 136, 41);
}

&--strapicloudpro {
--custom-badge-background-color: rgb(55, 34, 254);
--custom-badge-color: #fff;
}

&--strapicloudteam {
--custom-badge-background-color: rgb(154, 53, 242);
--custom-badge-color: #fff;
}

&--new {
--custom-badge-background-color: var(--strapi-warning-100);
--custom-badge-border-color: var(--strapi-warning-200);
Expand Down
4 changes: 3 additions & 1 deletion docusaurus/src/theme/MDXComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import FeedbackPlaceholder from '../components/FeedbackPlaceholder';
import CustomDocCard from '../components/CustomDocCard';
import CustomDocCardsWrapper from '../components/CustomDocCardsWrapper';
import { InteractiveQueryBuilder } from '../components/InteractiveQueryBuilder/InteractiveQueryBuilder';
import { AlphaBadge, BetaBadge, EnterpriseBadge } from '../components/Badge';
import { AlphaBadge, BetaBadge, EnterpriseBadge, CloudProBadge, CloudTeamBadge } from '../components/Badge';
import { SideBySideColumn, SideBySideContainer } from '../components';
import ThemedImage from '@theme/ThemedImage';
import {
Expand Down Expand Up @@ -48,6 +48,8 @@ export default {
AlphaBadge,
BetaBadge,
EnterpriseBadge,
CloudProBadge,
CloudTeamBadge,
Columns,
ColumnLeft,
ColumnRight,
Expand Down

1 comment on commit d5c0951

@vercel
Copy link

@vercel vercel bot commented on d5c0951 Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-git-main-strapijs.vercel.app
documentation-strapijs.vercel.app
docs-vercel-v4.strapi.io

Please sign in to comment.