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">
|
|
|
|
PrimeTek's open-source products are utilized by passionate developers and companies alike. With over
|
|
|
|
<span class="font-semibold animated-text relative white-space-nowrap"> <span>100 Million Downloads </span>🎉 </span> on npm, we continue to develop every day, while our community grows larger by the day.
|
|
|
|
</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" style="background: 'linear-gradient(to right, var(--home-bg), transparent)'"></div>
|
|
|
|
<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" style="background: 'linear-gradient(to left, var(--home-bg), transparent)'"></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>
|