Skip to content

Commit

Permalink
Merge pull request #274 from iArchitSharma/plans
Browse files Browse the repository at this point in the history
Added Partial for Layer5 plans
  • Loading branch information
iArchitSharma authored Jun 9, 2024
2 parents ee9b127 + 18ef796 commit 9c4de04
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/_default/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ <h1>{{ .Title }}</h1>
{{ partial "reading-time.html" . -}}
{{ end -}}
</header>
{{ with .Params.plan }}
{{ partial "plan-info.html" (dict "plan" .) }}
{{ end }}
{{ .Content }}
{{ if (.Site.Config.Services.Disqus.Shortname) -}}
<br />
Expand Down
3 changes: 3 additions & 0 deletions layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ <h1>{{ .Title }}</h1>
{{ partial "reading-time.html" . -}}
{{ end -}}
</header>
{{ with .Params.plan }}
{{ partial "plan-info.html" (dict "plan" .) }}
{{ end }}
{{ .Content }}
{{ partial "section-index.html" . -}}

Expand Down
75 changes: 75 additions & 0 deletions layouts/partials/plan-info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{{ $plan := .plan }}

<style>
.bwnekH {
border-radius: 10px;
border-style: solid;
border-color: #00b39f;
padding: 16px;
margin-left:6rem;
margin-right:6rem;
margin-bottom:2rem;
}

.f4 {
font-size: 16px !important;
}

.d-inline-block {
display: inline-block !important;
}

.mb-3 {
margin-bottom: 16px !important;
}

.d-flex {
display: flex !important;
}

.mt-1 {
margin-right:4px;
}
</style>

<div class="Box-sc-g0xbh4-0 bwnekH">
<div data-search="hide" data-testid="permissions-callout">
<div class="mb-3 d-inline-block">
<h2 class="f4">Who can use this feature?</h2>
</div>
<div class="d-flex" data-testid="product-statement"><svg aria-hidden="true" focusable="false" class="mt-1"
viewBox="0 0 16 16" width="16" height="16" fill="currentColor"
style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible">
<path
d="M6.75 0h2.5C10.216 0 11 .784 11 1.75V3h3.25c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-8.5C0 3.784.784 3 1.75 3H5V1.75C5 .784 5.784 0 6.75 0ZM3.5 9.5a3.49 3.49 0 0 1-2-.627v4.377c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V8.873a3.49 3.49 0 0 1-2 .627Zm-1.75-5a.25.25 0 0 0-.25.25V6a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V4.75a.25.25 0 0 0-.25-.25H1.75ZM9.5 3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25V3Z">
</path>
</svg>
<div class="pl-2">
<p>Layer5 is available with Free, Team and Enterprise plans. For more information, see "<a
href="https://layer5.io/pricing"
_originalhref="https://layer5.io/pricing"
aria-roledescription="hovercard link" aria-describedby="popover-describedby">Layer5’s
plans</a>."</p>

{{ if eq $plan "free" }}

<div>
<p>If you have a <b>Free subscription</b>, you get Open Source features, plus Cloud Native Design Patterns, Design Reviews, Multiple Kubernetes Clusters, Cluster Discovery, Microservices Performance, Load Generation, Open Policy Agent integration, Continuous Service Monitoring, Community Support, etc.</p>
</div>
{{ else if eq $plan "team" }}
<div>
<p>If you have a <b>Team subscription</b>, you get everything in the Free plan, plus Dry-run, Design Reviews, Visual Design, Design Versioning, Performance Profiles, Built-in Roles, Comparative Testing, Standard Support, Add-ons, etc.</p>
</div>
{{ else if eq $plan "enterprise" }}
<div>
<p>If you have an <b>Enterprise subscription</b>, you get everything in the Team plan, plus User-defined Roles, Authentication: LDAP, Self-hosted Deployment, Traffic Replay, Certificate support in performance profiles, Phone Support, Organization and Team Management, Premium and Premium Plus Support, Serverless Pricing, etc.</p>
</div>
{{ else }}
<div>
<p>If you have a <b>Free subscription</b>, you get Open Source features, plus Cloud Native Design Patterns, Design Reviews, Multiple Kubernetes Clusters, Cluster Discovery, Microservices Performance, Load Generation, Open Policy Agent integration, Continuous Service Monitoring, Community Support, etc.</p>
</div>
{{ end }}
</div>
</div>
</div>
</div>

0 comments on commit 9c4de04

Please sign in to comment.