Skip to content

Commit 54e54e8

Browse files
committed
docs: add black friday offer
1 parent afa70db commit 54e54e8

File tree

5 files changed

+58
-2
lines changed

5 files changed

+58
-2
lines changed

docs/assets/scss/_banner.scss

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.black-friday-banner {
2+
position: relative;
3+
z-index: 2;
4+
display: flex;
5+
flex-direction: column;
6+
justify-content: center;
7+
min-height: 250px;
8+
margin-bottom: 50px;
9+
color: rgba(255, 255, 255, .86);
10+
text-decoration: none;
11+
background: linear-gradient(222deg, #2c384a, #000);
12+
13+
&:hover {
14+
color: rgba(255, 255, 255, 1);
15+
}
16+
17+
&::before,
18+
&::after {
19+
position: absolute;
20+
z-index: -1;
21+
content: "";
22+
}
23+
24+
&::before {
25+
top: 0;
26+
right: 0;
27+
width: 100%;
28+
max-width: 100%;
29+
height: 100%;
30+
background: url("./../img/percents-bg.png");
31+
background-repeat: no-repeat;
32+
background-position: center center;
33+
background-size: 100%;
34+
}
35+
36+
.logo {
37+
max-width: 100%;
38+
max-height: 400px;
39+
}
40+
}

docs/assets/scss/docs.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ $enable-cssgrid: true; // stylelint-disable-line scss/dollar-variable-default
5252
@import "colors";
5353
@import "clipboard-js";
5454
@import "placeholder-img";
55+
@import "banner";
5556

5657
// Load docs dependencies
5758
@import "syntax";

docs/layouts/_default/docs.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@
33
<main class="docs-main order-1">
44
<div class="docs-intro ps-lg-4">
55
{{ partial "breadcrumb" . }}
6-
{{ if .Page.Params.pro_component }}
6+
<a class="black-friday-banner rounded" href="https://coreui.io/pricing/?framework=bootstrap&amp;docs=coreui-banner-black-friday">
7+
<div class="row">
8+
<div class="col-xl-7 align-self-center">
9+
<div class="p-3 p-xl-5">
10+
<h2>Black Friday? Black Week? <br> CoreUI makes it MONTH!</h2>
11+
<div> With CoreUI you don't have to wait till Black Friday, cause we launched our Black Friday promo - right here, right now! Up to 70% discount for CoreUI PRO Admin Templates and PRO UI Components.</div>
12+
</div>
13+
</div>
14+
<div class="col-xl-5">
15+
<div class="p-2">
16+
<img class="logo mx-auto" src="/assets/img/black-hexagon400h.webp" alt="CoreUI logo" loading="lazy">
17+
</div>
18+
</div>
19+
</div>
20+
</a>
21+
<!-- {{ if .Page.Params.pro_component }}
722
<div class="bg-danger bg-opacity-10 border-start border-start-5 border-start-danger p-4 pb-3 mb-5">
823
<h3 class="mb-4">CoreUI PRO Component</h3>
924
<p>
@@ -25,7 +40,7 @@ <h3 class="mb-4">Support CoreUI Development</h3>
2540
<li>Give us a star ⭐️ on <a href="https://github.com/coreui/coreui" target="_blank">Github</a>.</li>
2641
</ul>
2742
</div>
28-
{{ end }}
43+
{{ end }} -->
2944
<h1 class="docs-title" id="content">{{ .Title | markdownify }}</h1>
3045
<p class="docs-lead">{{ .Page.Params.Description | markdownify }}</p>
3146
{{ partial "ads" . }}
112 KB
Binary file not shown.
201 KB
Loading

0 commit comments

Comments
 (0)