Skip to content

Commit

Permalink
Overview images added
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Apr 24, 2024
1 parent 96a04df commit 684bfb6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/introduction/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<div class="doc">
<div class="doc-main">
<div class="doc-intro">
<div style="border-radius: 20px; max-height: 420px" class="overflow-hidden mb-5 flex align-items-center">
<img alt="PrimeVue Designer" :src="introDesktopImg" class="w-full hidden md:block" />
<img alt="PrimeVue Designer" :src="introMobileImg" class="w-full md:hidden" />
</div>
<h1>Introduction</h1>
<p>Next-generation UI Component suite for Vue.</p>
</div>
Expand Down Expand Up @@ -59,6 +63,14 @@ export default {
}
]
};
},
computed: {
introDesktopImg() {
return `https://primefaces.org/cdn/primevue/images/overview${this.$appState.darkTheme ? '-dark' : ''}.png`;
},
introMobileImg() {
return `https://primefaces.org/cdn/primevue/images/overview${this.$appState.darkTheme ? '-dark' : ''}-mobile.png`;
}
}
};
</script>

0 comments on commit 684bfb6

Please sign in to comment.