Skip to content

Commit 056f41a

Browse files
committed
docs: add Black Friday banner
1 parent 4b28c6d commit 056f41a

File tree

5 files changed

+46
-40
lines changed

5 files changed

+46
-40
lines changed

docs/assets/scss/_banner.scss

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,14 @@
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);
1+
.banner-black-friday {
2+
padding: 2rem;
3+
background: url("./../img/percents-bg.png") no-repeat, linear-gradient(222deg, #2c384a, #000);
124

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;
5+
.black-friday-img {
276
width: 100%;
28-
max-width: 100%;
29-
height: 100%;
30-
background: url("./../img/cyber-bg.png");
31-
background-repeat: no-repeat;
32-
background-position: center center;
33-
background-size: 100%;
34-
}
7+
max-width: 360px;
358

36-
.logo {
37-
max-width: 100%;
38-
max-height: 400px;
9+
@include media-breakpoint-up(xxl) {
10+
max-width: 160px;
11+
transform: scale(1.35) translateX(-15px);
12+
}
3913
}
4014
}

docs/assets/scss/docs.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $enable-cssgrid: true;
3838
// Load docs components
3939
@import "variables";
4040
@import "ads";
41+
@import "banner";
4142
@import "content";
4243
@import "skippy";
4344
@import "header";

docs/layouts/_default/docs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<main class="docs-main order-1">
44
<div class="docs-intro ps-lg-4">
55
{{ partial "breadcrumb" . }}
6+
{{ partial "banner-black-friday" . }}
67
{{ partial "banner" . }}
78
{{ if .Page.Params.bootstrap }}
89
<div class="d-flex flex-column">
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<section class="banner-black-friday text-white border border-3 border-warning rounded px-xl-5 mb-5">
2+
<div class="container">
3+
<div class="row flex-column flex-md-row align-items-md-center">
4+
<div class="col-12 col-xxl-auto text-center">
5+
<img
6+
class="black-friday-img mb-3 mb-xxl-0"
7+
src="https://coreui.io/images/black-hexagon-360h.webp"
8+
alt="CoreUI Neon Logo"
9+
/>
10+
</div>
11+
<div class="col">
12+
<div class="fw-semibold fs-4">
13+
Are you ready for Black <del>Friday</del> Month Deals?
14+
</div>
15+
<div>
16+
Extra 25% off for all sale items + Free CoreUI Icons PRO with every order! Limited offer for the first 200 people, use code <strong>2024BWCW25</strong> during checkout.
17+
</div>
18+
</div>
19+
<div class="col-auto">
20+
<a
21+
href="https://coreui.io/pricing/#pricing-table"
22+
class="btn btn-warning btn-xl mt-3 mt-lg-0"
23+
>Get offer!</a
24+
>
25+
</div>
26+
</div>
27+
</div>
28+
</section>

docs/layouts/partials/banner.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{{ if .Page.Params.pro_component }}
2-
<div class="bg-info bg-opacity-10 border border-2 border-info rounded d-flex align-items-center p-3 px-xl-4 mb-5 row flex-xl-nowrap">
3-
<div class="col-xl-auto col-12 d-none d-xl-block p-0">
4-
<img src="https://coreui.io/images/frameworks/core_blue_960px.png" class="img-fluid" width="160px" height="160px" alt="CoreUI PRO hexagon">
2+
<div class="bg-info bg-opacity-10 border border-2 border-info rounded p-3 px-xl-4 mb-5">
3+
<div class="row d-flex align-items-center flex-xl-nowrap">
4+
<div class="col-xl-auto col-12 d-none d-xl-block p-0">
5+
<img src="https://coreui.io/images/frameworks/core_blue_960px.png" class="img-fluid" width="160px" height="160px" alt="CoreUI PRO hexagon">
6+
</div>
7+
<div class="col-md col-12 px-lg-4">This Component is a part of CoreUI PRO, an advanced UI library offering over 100 components designed for creating responsive, sleek, and powerful applications. Experience it yourself by signing up for a complimentary 7-day trial.</div>
8+
<div class="col-md-auto col-12 mt-3 mt-lg-0"><a class="btn btn-danger text-nowrap text-white" href="https://coreui.io/trial/?src=coreui-docs&cta=pro-banner">Start Free Trial</a></div>
59
</div>
6-
<div class="col-md col-12 px-lg-4">This Component is a part of CoreUI PRO, an advanced UI library offering over 100 components designed for creating responsive, sleek, and powerful applications. Experience it yourself by signing up for a complimentary 7-day trial.</div>
7-
<div class="col-md-auto col-12 mt-3 mt-lg-0"><a class="btn btn-danger text-nowrap text-white" href="https://coreui.io/trial/?src=coreui-docs&cta=pro-banner">Start Free Trial</a></div>
810
</div>
911
{{ end }}
1012
{{ if .Page.Params.preview_component }}

0 commit comments

Comments
 (0)