2022-09-06 13:53:29 +00:00
|
|
|
<template>
|
|
|
|
<section class="landing-templates theme-dark py-8">
|
2023-03-07 10:49:25 +00:00
|
|
|
<div class="section-header relative z-3">Templates</div>
|
|
|
|
<p class="section-detail relative z-3">Professionally designed highly customizable application templates to get started in style.</p>
|
|
|
|
<div class="flex justify-content-center mt-4 relative z-3">
|
2022-12-08 12:26:57 +00:00
|
|
|
<a href="https://www.primefaces.org/store" class="font-semibold p-3 border-round flex align-items-center linkbox active">
|
2022-09-14 14:26:41 +00:00
|
|
|
<span>Learn More</span>
|
|
|
|
<i class="pi pi-arrow-right ml-2"></i>
|
2022-12-08 12:26:57 +00:00
|
|
|
</a>
|
2022-09-14 14:26:41 +00:00
|
|
|
</div>
|
|
|
|
<section :class="['templates flex justify-content-center align-items-center flex-column mt-7', { 'templates-animation': setAnimation }]">
|
2023-03-07 10:49:25 +00:00
|
|
|
<div class="flex md:flex-row flex-column gap-4 lg:gap-0">
|
|
|
|
<div class="template-block block-1 mr-2 lg:mb-0 flex justify-content-center align-items-center" :style="{ backgroundImage: imageBg('diamond') }">
|
2023-04-12 11:30:37 +00:00
|
|
|
<a class="templates-btn" target="_blank" href="https://diamond.primevue.org">Diamond Preview</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2022-09-14 14:26:41 +00:00
|
|
|
<div class="template-block block-2 ml-2 flex justify-content-center align-items-center" :style="{ backgroundImage: imageBg('freya') }">
|
2023-04-12 11:30:37 +00:00
|
|
|
<a class="templates-btn" target="_blank" href="https://freya.primevue.org">Freya Preview</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-07 10:49:25 +00:00
|
|
|
<div class="flex my-4 md:flex-row flex-column gap-4 lg:gap-0">
|
2023-03-07 14:29:07 +00:00
|
|
|
<div class="template-block block-3 mr-2 lg:mb-0 flex justify-content-center align-items-center" :style="{ backgroundImage: imageBg('atlantis') }">
|
2023-04-12 11:30:37 +00:00
|
|
|
<a class="templates-btn" target="_blank" href="https://atlantis.primevue.org/">Atlantis Preview</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2023-03-07 10:49:25 +00:00
|
|
|
<div class="template-block block-middle border-none box-shadow-none mr-2 hidden lg:flex justify-content-center align-items-center flex-column">
|
2022-09-14 14:26:41 +00:00
|
|
|
<img class="img-1" :src="templateImg()" height="110" />
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2022-09-14 14:26:41 +00:00
|
|
|
<div class="template-block block-4 ml-2 flex justify-content-center align-items-center" :style="{ backgroundImage: imageBg('apollo') }">
|
2023-04-12 11:30:37 +00:00
|
|
|
<a class="templates-btn" target="_blank" href="https://apollo.primevue.org">Apollo Preview</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-07 10:49:25 +00:00
|
|
|
<div class="flex md:flex-row flex-column gap-4 lg:gap-0">
|
|
|
|
<div class="template-block block-5 mr-2 lg:mb-0 flex justify-content-center align-items-center" :style="{ backgroundImage: imageBg('serenity') }">
|
2023-04-12 11:30:37 +00:00
|
|
|
<a class="templates-btn" target="_blank" href="https://serenity.primevue.org">Serenity Preview</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2022-09-14 14:26:41 +00:00
|
|
|
<div class="template-block block-6 ml-2 flex justify-content-center align-items-center" :style="{ backgroundImage: imageBg('ultima') }">
|
2023-04-12 11:30:37 +00:00
|
|
|
<a class="templates-btn" target="_blank" href="https://ultima.primevue.org">Ultima Preview</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lines">
|
|
|
|
<div class="top">
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
</div>
|
|
|
|
<div class="left">
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-09-14 14:26:41 +00:00
|
|
|
</section>
|
2022-09-06 13:53:29 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
setAnimation: false
|
2022-09-14 14:26:41 +00:00
|
|
|
};
|
2022-09-06 13:53:29 +00:00
|
|
|
},
|
|
|
|
mounted() {
|
2022-09-14 14:26:41 +00:00
|
|
|
this.setAnimation = true;
|
2022-09-06 13:53:29 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
imageBg(template) {
|
|
|
|
const isDark = this.$appState.darkTheme;
|
|
|
|
const url = template === 'templates-text' ? 'png' : 'jpeg';
|
|
|
|
|
2023-02-06 16:17:41 +00:00
|
|
|
return `url('https://primefaces.org/cdn/primevue/images/landing/templates/${template}-${isDark ? 'dark' : 'light'}.${url}')`;
|
2022-09-06 13:53:29 +00:00
|
|
|
},
|
|
|
|
templateImg() {
|
2023-02-28 08:29:30 +00:00
|
|
|
return `https://primefaces.org/cdn/primevue/images/landing/templates/templates-text-${this.$appState.darkTheme ? 'dark' : 'light'}.png`;
|
2022-09-06 13:53:29 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-14 14:26:41 +00:00
|
|
|
};
|
2022-09-06 13:53:29 +00:00
|
|
|
</script>
|
|
|
|
|
2022-09-14 14:26:41 +00:00
|
|
|
:style="{backgroundImage: imageBg('diamond')}">
|