2022-09-06 13:53:29 +00:00
|
|
|
<template>
|
2024-05-20 11:56:52 +00:00
|
|
|
<section class="landing-users py-20 px-4 lg:px-20">
|
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">
|
2024-05-20 11:56:52 +00:00
|
|
|
PrimeTek libraries have reached over <span class="font-semibold animated-text relative whitespace-nowrap"> <span>150 Million Downloads </span> </span> on npm! Join the PrimeLand community and experience the difference yourself.
|
2023-03-24 12:54:11 +00:00
|
|
|
</p>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex justify-center items-center mt-6">
|
2023-03-24 12:54:11 +00:00
|
|
|
<span class="ml-2"> </span>
|
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div v-for="(x, i) in users" :key="i" class="logo-section relative w-full md:w-8/12 mt-12 users-container">
|
|
|
|
<div class="fade-left h-24 w-24 block absolute top-0 left-0 z-20"></div>
|
2024-05-18 08:25:01 +00:00
|
|
|
<div class="marquee-wrapper overflow-hidden flex">
|
2023-03-24 12:54:11 +00:00
|
|
|
<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>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="fade-right h-24 w-24 block absolute top-0 right-0 z-20"></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>
|