primevue-mirror/pages/landing/UsersSection.vue

52 lines
2.0 KiB
Vue
Raw Normal View History

2022-09-06 13:53:29 +00:00
<template>
2023-03-07 10:49:25 +00:00
<section class="landing-users py-8 px-3 lg:px-8">
2022-09-06 13:53:29 +00:00
<div class="section-header">Who Uses</div>
2023-03-24 12:54:11 +00:00
<p class="section-detail">
2023-10-10 09:41:56 +00:00
PrimeTek libraries have reached over <span class="font-semibold animated-text relative white-space-nowrap"> <span>140 Million Downloads </span> </span> on npm! Join the PrimeLand community and experience the difference yourself.
2023-03-24 12:54:11 +00:00
</p>
<div class="flex justify-content-center align-items-center mt-4">
<span class="ml-2"> </span>
</div>
<div v-for="(x, i) in users" :key="i" class="logo-section relative w-full md:w-8 mt-6 users-container">
<div class="fade-left h-6rem w-6rem block absolute top-0 left-0 z-2"></div>
2023-03-24 12:54:11 +00:00
<div class="marquee-wrapper overflow-hidden flex">
<div v-for="i of [1, 2, 3]" :key="i" :class="`marquee${x.reverse ? ' marquee-reverse' : ''}`">
<template v-for="user of x.slicedUsers" :key="user">
<div class="w-full">
<img :src="imgSrc(user)" :alt="`${user}-${colorScheme}`" />
</div>
</template>
</div>
</div>
<div class="fade-right h-6rem w-6rem block absolute top-0 right-0 z-2"></div>
2022-09-06 13:53:29 +00:00
</div>
</section>
</template>
<script>
export default {
2023-03-24 12:54:11 +00:00
data() {
return {
usersData: ['fox', 'airbus', 'mercedes', 'ebay', 'ford', 'vw', 'intel', 'unicredit', 'lufthansa', 'nvidia', 'verizon', 'amex'],
users: null
};
},
mounted() {
this.users = [
{ slicedUsers: this.usersData.slice(0, 6), reverse: false },
{ slicedUsers: this.usersData.slice(6), reverse: true }
];
},
2022-09-06 13:53:29 +00:00
methods: {
imgSrc(brand) {
2023-02-28 08:29:30 +00:00
return `https://primefaces.org/cdn/primevue/images/landing/whouses/${brand}-${this.colorScheme}.svg`;
2022-09-06 13:53:29 +00:00
}
},
computed: {
colorScheme() {
return this.$appState.darkTheme ? 'light' : 'dark';
}
}
2022-09-14 14:26:41 +00:00
};
</script>