dashboard-core/theme/dbd-soft-ui/views/partials/premium.ejs

72 lines
1.9 KiB
Text
Raw Normal View History

2023-06-19 14:21:58 +05:00
<% if (req.cookies?.premiumCard == "false" || !req.cookies?.premiumCard) { %>
2023-06-22 19:36:52 +05:00
<div class="rightCircle"><i class="fas fa-times"></i></div>
<div class="premium-card card card-background shadow-none card-background-mask-primary" id="sidenavCard">
<div class="full-background"
style="background-image: url('<%- themeConfig.premium.card.bgImage %>'); margin-bottom: 0 !important;"></div>
<div class="card-body text-start p-3 w-100">
<div class="docs-info">
<h6 class="hide-click text-white up mb-0"><%- req?.locales?.partials?.premium?.title %></h6>
<p class="hide-click text-xs font-weight-bold"><%- req?.locales?.partials?.premium?.description %></p>
<a style="margin-bottom: 0 !important;" class="premium-button btn bg-gradient-primary mt-4 w-100"
target="_blank"
href="<%- themeConfig.premium.card.button.url %>"
type="button"><%- req?.locales?.partials?.premium?.buttonText %></a>
</div>
</div>
</div>
2023-06-19 14:21:58 +05:00
<% } %>
<script>
2023-06-22 19:36:52 +05:00
$('.rightCircle').on('click', function () {
var date = new Date();
date.setTime(date.getTime() + (7 * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
document.cookie = "premiumCard=true" + expires + "; path=/";
$(".sidenav-footer").fadeOut("slow");
});
2023-06-19 14:21:58 +05:00
</script>
<style>
2023-06-22 19:36:52 +05:00
.margin-top-0 {
margin-top: 0 !important;
}
2023-06-19 14:21:58 +05:00
2023-06-22 19:36:52 +05:00
.sidenav-footer {
width: 90%;
}
2023-06-19 14:21:58 +05:00
2023-06-22 19:36:52 +05:00
.rightCircle {
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
position: absolute;
right: -5px;
top: -5px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 0 0 1px #fff;
z-index: 100;
}
2023-06-19 14:21:58 +05:00
2023-06-22 19:36:52 +05:00
.sidebarPremium {
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
position: absolute;
right: 10px;
width: 20px;
height: 7px;
border-radius: 50%;
background-color: transparent;
z-index: 100;
}
2023-06-19 14:21:58 +05:00
</style>