Added diamond banner
parent
8144cbcf0f
commit
b40a260662
19
src/App.vue
19
src/App.vue
|
@ -1,14 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="layout-wrapper" :class="containerClass">
|
<div class="layout-wrapper" :class="containerClass">
|
||||||
<a class="layout-news" href="https://www.primefaces.org/store" target="_blank" tabindex="-1" v-if="newsActive">
|
<div class="layout-news" v-if="newsActive">
|
||||||
<div class="layout-news-container">
|
<div class="layout-news-container">
|
||||||
<img class="layouts-news-text-image" alt="easter" src="./assets/images/topbar-easter-2020-text.png">
|
<img class="layouts-news-mockup-image" src="./assets/images/topbar-diamond-mockup.png">
|
||||||
<img class="layouts-news-mockup-image" alt="easter" src="./assets/images/topbar-easter-2020-ultima.png">
|
<span class="layout-news-details">
|
||||||
<a href="#" class="layout-news-close" @click="hideNews">
|
</span>
|
||||||
|
<a href="https://www.primefaces.org/layouts/diamond-vue" target="_blank" tabindex="-1" style="text-decoration: none" class="layout-news-button">
|
||||||
|
LEARN MORE<i class="pi pi-angle-right"></i>
|
||||||
|
</a>
|
||||||
|
<a tabindex="0" class="layout-news-close" @click="hideNews">
|
||||||
<i class="pi pi-times"></i>
|
<i class="pi pi-times"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</div>
|
||||||
|
|
||||||
<app-topbar @menubutton-click="onMenuButtonClick" @change-theme="changeTheme" :theme="theme" />
|
<app-topbar @menubutton-click="onMenuButtonClick" @change-theme="changeTheme" :theme="theme" />
|
||||||
<app-menu :active="sidebarActive" />
|
<app-menu :active="sidebarActive" />
|
||||||
|
@ -37,7 +41,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
sidebarActive: false,
|
sidebarActive: false,
|
||||||
newsActive: false,
|
newsActive: true,
|
||||||
theme: 'saga-blue'
|
theme: 'saga-blue'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -45,6 +49,8 @@ export default {
|
||||||
if (this.isOutdatedIE()) {
|
if (this.isOutdatedIE()) {
|
||||||
this.$toast.add({severity: 'warn', summary: 'Limited Functionality', detail: 'Although PrimeVue supports IE11, ThemeSwitcher in this application cannot be not fully supported by your browser. Please use a modern browser for the best experience of the showcase.'});
|
this.$toast.add({severity: 'warn', summary: 'Limited Functionality', detail: 'Although PrimeVue supports IE11, ThemeSwitcher in this application cannot be not fully supported by your browser. Please use a modern browser for the best experience of the showcase.'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.newsActive = this.newsActive && sessionStorage.getItem('primevue-news-hidden') == null;
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
|
@ -80,6 +86,7 @@ export default {
|
||||||
},
|
},
|
||||||
hideNews() {
|
hideNews() {
|
||||||
this.newsActive = false;
|
this.newsActive = false;
|
||||||
|
sessionStorage.setItem('primevue-news-hidden', 'true');
|
||||||
},
|
},
|
||||||
changeTheme(event) {
|
changeTheme(event) {
|
||||||
let themeElement = document.getElementById('theme-link');
|
let themeElement = document.getElementById('theme-link');
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 365 KiB |
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
|
@ -8,7 +8,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-image: url("assets/images/topbar-easter-2020-bg.jpg");
|
background-image: url("assets/images/topbar-diamond-bg.png");
|
||||||
|
|
||||||
.layout-news-container {
|
.layout-news-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -40,18 +40,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img.layouts-news-text-image {
|
|
||||||
height: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.layouts-news-mockup-image {
|
img.layouts-news-mockup-image {
|
||||||
height: 70px;
|
height: 70px;
|
||||||
position: absolute;
|
}
|
||||||
right: 52px;
|
|
||||||
|
.layout-news-button {
|
||||||
|
border: 1px solid #ffffff;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 15px;
|
||||||
|
padding: .3em .3em .5em 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 3px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
transition: background-color 0.15s;
|
||||||
|
margin-left: 2em;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.25);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-news-close {
|
.layout-news-close {
|
||||||
|
cursor: pointer;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
|
@ -4,15 +4,21 @@
|
||||||
.layout-content {
|
.layout-content {
|
||||||
padding-top: 180px;
|
padding-top: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-sidebar {
|
.layout-sidebar {
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.layout-news-container {
|
|
||||||
background-image: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, #FFFFFF 100%);
|
.layout-news-button {
|
||||||
}
|
opacity: 0;
|
||||||
img.layouts-news-mockup-image {
|
position: absolute;
|
||||||
display: none;
|
z-index: 1;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue