Skip to content

Commit 25dc3ce

Browse files
committed
docs: update banners
1 parent c5e75c9 commit 25dc3ce

File tree

3 files changed

+41
-39
lines changed

3 files changed

+41
-39
lines changed

docs/layouts/_default/docs.html

+1-39
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,7 @@
33
<main class="docs-main order-1">
44
<div class="docs-intro ps-lg-4">
55
{{ partial "breadcrumb" . }}
6-
<a class="black-friday-banner rounded" href="https://coreui.io/pricing/?framework=bootstrap&amp;docs=coreui-banner-cyber-week">
7-
<div class="row">
8-
<div class="col-xl-7 align-self-center">
9-
<div class="p-3 p-xl-5">
10-
<h2 class="fs-3">Are you ready for Cyber Week Deals?</h2>
11-
<h3 class="fs-5">Up to 70% discount for CoreUI PRO Admin Templates and UI Components.</h3>
12-
<div>This year we prepared a limited Cyber Week offer for our clients and users. The first 100 people can get our products with <strong>up&nbsp;to&nbsp;70%&nbsp;discount.</strong></div>
13-
</div>
14-
</div>
15-
<div class="col-xl-5 align-self-center">
16-
<div class="p-2">
17-
<img class="logo mx-auto" src="/assets/img/coreui_alt_400px_cyber.webp" alt="CoreUI logo" loading="lazy">
18-
</div>
19-
</div>
20-
</div>
21-
</a>
22-
<!-- {{ if .Page.Params.pro_component }}
23-
<div class="bg-danger bg-opacity-10 border-start border-start-5 border-start-danger p-4 pb-3 mb-5">
24-
<h3 class="mb-4">CoreUI PRO Component</h3>
25-
<p>
26-
To use this component you must have a CoreUI PRO license. Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-pro">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.
27-
</p>
28-
</div>
29-
{{ else }}
30-
<div class="bg-info bg-opacity-10 border-start border-start-5 border-start-info p-4 pb-3 mb-5">
31-
<h3 class="mb-4">Support CoreUI Development</h3>
32-
<p>
33-
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
34-
</p>
35-
<p>
36-
You can support our Open Source software development in the following ways:
37-
</p>
38-
<ul>
39-
<li>Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-free">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.</li>
40-
<li><a href="https://opencollective.com/coreui" target="_blank">Became a sponsor</a>, and get your logo on BACKERS.md/README.md files or each site of this documentation</li>
41-
<li>Give us a star ⭐️ on <a href="https://github.com/coreui/coreui" target="_blank">Github</a>.</li>
42-
</ul>
43-
</div>
44-
{{ end }} -->
6+
{{ partial "banner" . }}
457
<h1 class="docs-title" id="content">{{ .Title | markdownify }}</h1>
468
<p class="docs-lead">{{ .Page.Params.Description | markdownify }}</p>
479
{{ partial "ads" . }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<a class="black-friday-banner rounded" href="https://coreui.io/pricing/?framework=bootstrap&amp;docs=coreui-banner-cyber-week">
2+
<div class="row">
3+
<div class="col-xl-7 align-self-center">
4+
<div class="p-3 p-xl-5">
5+
<h2 class="fs-3">Are you ready for Cyber Week Deals?</h2>
6+
<h3 class="fs-5">Up to 70% discount for CoreUI PRO Admin Templates and UI Components.</h3>
7+
<div>This year we prepared a limited Cyber Week offer for our clients and users. The first 100 people can get our products with <strong>up&nbsp;to&nbsp;70%&nbsp;discount.</strong></div>
8+
</div>
9+
</div>
10+
<div class="col-xl-5 align-self-center">
11+
<div class="p-2">
12+
<img class="logo mx-auto" src="/assets/img/coreui_alt_400px_cyber.webp" alt="CoreUI logo" loading="lazy">
13+
</div>
14+
</div>
15+
</div>
16+
</a>

docs/layouts/partials/banner.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ if .Page.Params.pro_component }}
2+
<div class="bg-danger bg-opacity-10 border-start border-start-5 border-start-danger p-4 pb-3 mb-5">
3+
<h3 class="mb-4">CoreUI PRO Component</h3>
4+
<p>
5+
To use this component you must have a CoreUI PRO license. Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-pro">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.
6+
</p>
7+
</div>
8+
{{ else }}
9+
<div class="bg-info bg-opacity-10 border-start border-start-5 border-start-info p-4 pb-3 mb-5">
10+
<h3 class="mb-4">Support CoreUI Development</h3>
11+
<p>
12+
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
13+
</p>
14+
<p>
15+
You can support our Open Source software development in the following ways:
16+
</p>
17+
<ul>
18+
<li>Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-free">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.</li>
19+
<li><a href="https://coreui.io/about/services/?docs=coreui-banner-free">Hire Us!</a> We create stunning designs, high-conversion landing pages, functional mobile apps and reliable web services – everything you need to offer your products or services online and always stay a tap away from your customers.</li>
20+
<!-- <li><a href="https://opencollective.com/coreui" target="_blank">Became a sponsor</a>, and get your logo on BACKERS.md/README.md files or each site of this documentation</li> -->
21+
<li>Give us a star ⭐️ on <a href="https://github.com/coreui/coreui" target="_blank">Github</a>.</li>
22+
</ul>
23+
</div>
24+
{{ end }}

0 commit comments

Comments
 (0)