2022-09-06 13:53:29 +00:00
|
|
|
<template>
|
2024-05-20 11:56:52 +00:00
|
|
|
<section class="landing-hero py-20 px-8 lg:px-20">
|
2023-10-10 18:19:29 +00:00
|
|
|
<div class="flex flex-wrap">
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="w-full xl:w-6/12 flex flex-col justify-center lg:pr-20 items-center xl:items-stretch">
|
|
|
|
<h1 class="text-5xl font-bold text-center xl:text-left leading-tight">The Next-Gen UI Suite for <span class="font-bold text-primary">Vue.js</span></h1>
|
|
|
|
<p class="xl:text-left text-center px-0 mt-0 mb-8 text-surface-500 dark:text-surface-400 font-medium text-xl leading-relaxed">
|
2024-05-26 00:09:36 +00:00
|
|
|
Enhance your web applications with PrimeVue's comprehensive suite of customizable, feature-rich UI components. With PrimeVue, turning your development vision into reality has never been easier.
|
2023-10-13 18:58:51 +00:00
|
|
|
</p>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex items-center gap-4">
|
2024-05-21 07:57:47 +00:00
|
|
|
<PrimeVueNuxtLink to="/setup" class="linkbox linkbox-primary">
|
2023-10-13 18:58:51 +00:00
|
|
|
<span>Get Started</span>
|
2024-05-20 11:56:52 +00:00
|
|
|
<i class="pi pi-arrow-right ml-4"></i>
|
2023-10-13 18:58:51 +00:00
|
|
|
</PrimeVueNuxtLink>
|
2024-05-21 07:57:47 +00:00
|
|
|
<a href="https://github.com/primefaces/primevue" target="_blank" rel="noopener noreferrer" class="linkbox">
|
2023-10-12 09:58:41 +00:00
|
|
|
<span>Give a Star</span>
|
2024-05-20 11:56:52 +00:00
|
|
|
<i class="pi pi-star-fill ml-4 text-yellow-500"></i>
|
2023-10-12 09:58:41 +00:00
|
|
|
</a>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2023-10-10 08:38:49 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="w-full xl:w-6/12 pt-16 xl:pt-0 hidden md:block">
|
2023-10-10 08:38:49 +00:00
|
|
|
<div class="flex">
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex flex-col w-6/12 gap-8 pt-20 pr-4">
|
|
|
|
<div class="box p-6 animate-fadein animate-duration-500">
|
2023-11-20 18:03:36 +00:00
|
|
|
<div class="flex gap-2">
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="w-24 flex-shrink-0">
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="text-surface-500 dark:text-surface-400 font-medium block mb-4">Amount</span>
|
2023-11-20 18:03:36 +00:00
|
|
|
<InputNumber v-model="value1" mode="currency" currency="USD" locale="en-US" class="w-full" inputClass="w-full" />
|
2023-11-20 11:36:16 +00:00
|
|
|
</div>
|
2023-11-20 18:03:36 +00:00
|
|
|
<div class="flex-auto" style="width: 1%">
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="text-surface-500 dark:text-surface-400 font-semibold block mb-4">Beneficiary</span>
|
2024-04-18 14:22:30 +00:00
|
|
|
<Select v-model="user" :options="users" optionLabel="name" placeholder="Select a User" class="w-full">
|
2023-11-20 11:36:16 +00:00
|
|
|
<template #option="slotProps">
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-11-20 11:36:16 +00:00
|
|
|
<img :alt="slotProps.option.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.option.image}`" width="28" />
|
|
|
|
<span>{{ slotProps.option.name }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Select>
|
2023-11-20 11:36:16 +00:00
|
|
|
</div>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="text-surface-500 dark:text-surface-400 font-medium block mt-8 mb-4">Account</span>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex flex-wrap gap-4">
|
|
|
|
<div class="flex items-center">
|
2023-12-20 06:41:27 +00:00
|
|
|
<RadioButton v-model="radioValue" inputId="category1" value="S" name="radiovalue" @change="setCategory('S')" />
|
2023-11-20 11:36:16 +00:00
|
|
|
<label for="category1" class="ml-2 font-medium">Savings</label>
|
2023-10-10 08:38:49 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex items-center">
|
2023-12-20 06:41:27 +00:00
|
|
|
<RadioButton v-model="radioValue" inputId="category2" value="C" name="radiovalue" @change="setCategory('C')" />
|
2023-11-20 11:36:16 +00:00
|
|
|
<label for="category2" class="ml-2 font-medium">Checking</label>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="text-surface-500 dark:text-surface-400 font-medium block mt-8 mb-4">Date</span>
|
2024-04-18 14:22:30 +00:00
|
|
|
<DatePicker v-model="dateValue" :showWeek="true" class="w-full" showIcon iconDisplay="input" />
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="box p-6 animate-fadein animate-duration-500">
|
2023-10-10 08:38:49 +00:00
|
|
|
<Chart type="line" :data="chartData" :options="chartOptions" />
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="box p-6 animate-fadein animate-duration-500">
|
|
|
|
<div class="flex items-center">
|
2023-10-10 08:38:49 +00:00
|
|
|
<Chip label="Vue" class="mr-2 font-medium" />
|
2023-10-13 18:58:51 +00:00
|
|
|
<Chip label="Typescript" class="mr-2 font-medium" />
|
2024-04-18 14:22:30 +00:00
|
|
|
<ToggleSwitch v-model="switchValue" class="ml-auto"></ToggleSwitch>
|
2023-10-10 08:38:49 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="mt-8 flex justify-center">
|
2023-10-10 08:38:49 +00:00
|
|
|
<SelectButton v-model="selectButtonValue" :options="selectButtonOptions" optionLabel="name" />
|
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="mt-8 pt-1 pb-2">
|
2023-10-10 08:38:49 +00:00
|
|
|
<Slider v-model="rangeValues" range class="w-full" />
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex flex-col w-6/12 gap-8 pl-4">
|
|
|
|
<div class="box p-6 animate-fadein animate-duration-500">
|
|
|
|
<div class="mb-6 w-full text-center p-8" style="border-radius: '10px'">
|
|
|
|
<img src="https://primefaces.org/cdn/primevue/images/landing/air-jordan-noir.png" alt="Watch" class="w-40" />
|
2023-10-10 08:38:49 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex items-center mb-6">
|
|
|
|
<div class="flex flex-col">
|
2023-10-12 09:06:27 +00:00
|
|
|
<span class="block font-semibold mb-1">Sneaker</span>
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="text-surface-500 dark:text-surface-400 text-sm">Premium Quality</span>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2023-10-12 09:06:27 +00:00
|
|
|
<span class="font-medium text-xl ml-auto">$990</span>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2024-03-29 08:04:04 +00:00
|
|
|
<Button label="Add to Cart" icon="pi pi-shopping-cart" severity="secondary" class="w-full"></Button>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="box p-6 animate-fadein animate-duration-500">
|
2023-10-10 08:38:49 +00:00
|
|
|
<ul class="list-none p-0 m-0">
|
2024-05-20 11:56:52 +00:00
|
|
|
<li class="flex items-center mb-4">
|
|
|
|
<span class="mr-4">
|
|
|
|
<Avatar label="AW" class="w-12 h-12" />
|
2023-10-10 08:38:49 +00:00
|
|
|
</span>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="flex flex-col">
|
2023-10-13 18:58:51 +00:00
|
|
|
<span class="font-bold mb-1">Amanda Williams</span>
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="text-surface-500 dark:text-surface-400 text-sm">Administrator</span>
|
2023-10-10 08:38:49 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="flex">
|
2024-05-20 11:56:52 +00:00
|
|
|
<a class="flex items-center p-4 rounded w-full hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors duration-150 cursor-pointer" style="border-radius: '10px'">
|
|
|
|
<i class="pi pi-home text-xl mr-4"></i>
|
|
|
|
<span class="flex flex-col">
|
2023-10-10 08:38:49 +00:00
|
|
|
<span class="font-bold mb-1">Dashboard</span>
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="m-0 text-surface-500 dark:text-surface-400 text-sm">Control Panel</span>
|
2023-10-10 08:38:49 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="flex">
|
2024-05-20 11:56:52 +00:00
|
|
|
<a class="flex items-center p-4 rounded w-full hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors duration-150 cursor-pointer" style="border-radius: '10px'">
|
|
|
|
<i class="pi pi-envelope text-xl mr-4"></i>
|
|
|
|
<span class="flex flex-col">
|
2023-10-10 08:38:49 +00:00
|
|
|
<span class="font-bold mb-1">Inbox</span>
|
2024-05-21 07:57:47 +00:00
|
|
|
<span class="m-0 text-surface-500 dark:text-surface-400 text-sm">View Messages</span>
|
2023-10-10 08:38:49 +00:00
|
|
|
</span>
|
|
|
|
<Badge value="3" class="ml-auto"></Badge>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2024-05-20 11:56:52 +00:00
|
|
|
<div class="box p-6 animate-fadein animate-duration-500">
|
|
|
|
<div class="flex justify-between items-center mb-8">
|
|
|
|
<span class="inline-flex items-center">
|
2023-12-31 19:21:00 +00:00
|
|
|
<Checkbox id="cbox" v-model="checked" :binary="true" />
|
|
|
|
<label for="cbox" class="ml-2">Confirm</label>
|
|
|
|
</span>
|
|
|
|
<SplitButton
|
|
|
|
label="Save"
|
|
|
|
icon="pi pi-plus"
|
|
|
|
:model="splitButtonItems"
|
|
|
|
outlined
|
|
|
|
:pt="{
|
|
|
|
button: {
|
|
|
|
root: 'p-2'
|
|
|
|
},
|
|
|
|
menuButton: {
|
|
|
|
width: 'auto',
|
|
|
|
root: 'p-2'
|
2024-01-12 07:55:29 +00:00
|
|
|
},
|
|
|
|
menu: {
|
|
|
|
root: {
|
2024-01-12 07:59:36 +00:00
|
|
|
style: 'width: 10rem; min-width: auto'
|
2024-01-12 07:55:29 +00:00
|
|
|
},
|
|
|
|
action: 'p-2'
|
2023-12-31 19:21:00 +00:00
|
|
|
}
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-10-10 08:38:49 +00:00
|
|
|
<TabMenu v-model:activeIndex="activeTabIndex" :model="items" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-06 13:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-10 18:19:29 +00:00
|
|
|
</div>
|
2022-09-06 13:53:29 +00:00
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-10-13 20:22:26 +00:00
|
|
|
import EventBus from '@/layouts/AppEventBus';
|
2023-10-10 08:38:49 +00:00
|
|
|
import { NodeService } from '@/service/NodeService';
|
2023-03-24 12:54:11 +00:00
|
|
|
|
2022-09-06 13:53:29 +00:00
|
|
|
export default {
|
2024-03-29 07:44:47 +00:00
|
|
|
redrawListener: null,
|
2022-09-06 13:53:29 +00:00
|
|
|
data() {
|
|
|
|
return {
|
2023-11-20 11:36:16 +00:00
|
|
|
value1: 24,
|
2023-10-10 08:38:49 +00:00
|
|
|
category: 'C',
|
2023-10-13 20:22:26 +00:00
|
|
|
chartData: {},
|
|
|
|
chartOptions: {},
|
2023-10-10 08:38:49 +00:00
|
|
|
pbValue1: 15,
|
|
|
|
pbValue2: 85,
|
|
|
|
pbValue3: 50,
|
|
|
|
pbValue4: 75,
|
|
|
|
pbValue5: 60,
|
|
|
|
activeTabIndex: 0,
|
2023-11-20 11:36:16 +00:00
|
|
|
radioValue: 'S',
|
2023-10-10 08:38:49 +00:00
|
|
|
nodes: null,
|
|
|
|
switchValue: true,
|
|
|
|
selectButtonValue: { name: 'Styled', value: 1 },
|
|
|
|
dateValue: null,
|
|
|
|
rangeValues: [20, 80],
|
2023-12-31 19:21:00 +00:00
|
|
|
checked: false,
|
|
|
|
splitButtonItems: [
|
|
|
|
{
|
|
|
|
label: 'Update',
|
|
|
|
icon: 'pi pi-refresh'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Delete',
|
|
|
|
icon: 'pi pi-times'
|
|
|
|
}
|
|
|
|
],
|
2023-10-10 08:38:49 +00:00
|
|
|
items: [
|
|
|
|
{ label: 'Home', icon: 'pi pi-fw pi-home' },
|
2023-12-31 19:21:00 +00:00
|
|
|
{ label: 'Inbox', icon: 'pi pi-fw pi-inbox' }
|
2023-10-10 08:38:49 +00:00
|
|
|
],
|
|
|
|
selectButtonOptions: [
|
|
|
|
{ name: 'Styled', value: 1 },
|
|
|
|
{ name: 'Unstyled', value: 2 }
|
2023-11-20 11:36:16 +00:00
|
|
|
],
|
|
|
|
user: null,
|
|
|
|
users: [
|
|
|
|
{ name: 'Amy Elsner', image: 'amyelsner.png' },
|
|
|
|
{ name: 'Bernardo Dominic', image: 'bernardodominic.png' },
|
|
|
|
{ name: 'Onyama Limba', image: 'onyamalimba.png' }
|
2023-10-10 08:38:49 +00:00
|
|
|
]
|
2022-09-14 14:26:41 +00:00
|
|
|
};
|
2022-09-06 13:53:29 +00:00
|
|
|
},
|
2023-10-13 20:22:26 +00:00
|
|
|
beforeUnmount() {
|
2024-03-29 07:44:47 +00:00
|
|
|
EventBus.off('dark-mode-toggle-complete', this.redrawListener);
|
|
|
|
EventBus.off('theme-palette-change', this.redrawListener);
|
2023-10-13 20:22:26 +00:00
|
|
|
},
|
2022-09-06 13:53:29 +00:00
|
|
|
mounted() {
|
2023-10-13 20:22:26 +00:00
|
|
|
this.chartData = this.setChartData();
|
|
|
|
this.chartOptions = this.setChartOptions();
|
|
|
|
|
2024-03-29 07:44:47 +00:00
|
|
|
this.redrawListener = () => {
|
|
|
|
this.chartData = this.setChartData();
|
2023-10-13 20:22:26 +00:00
|
|
|
this.chartOptions = this.setChartOptions();
|
|
|
|
};
|
|
|
|
|
2024-03-29 07:44:47 +00:00
|
|
|
EventBus.on('dark-mode-toggle-complete', this.redrawListener);
|
|
|
|
EventBus.on('theme-palette-change', this.redrawListener);
|
2023-10-13 20:22:26 +00:00
|
|
|
|
2023-10-10 08:38:49 +00:00
|
|
|
NodeService.getTreeNodes().then((data) => (this.nodes = data));
|
2022-09-06 13:53:29 +00:00
|
|
|
},
|
|
|
|
methods: {
|
2023-10-10 08:38:49 +00:00
|
|
|
setCategory(category) {
|
|
|
|
this.category = category;
|
2023-10-13 20:22:26 +00:00
|
|
|
},
|
|
|
|
setChartData() {
|
2024-03-29 07:44:47 +00:00
|
|
|
const documentStyle = getComputedStyle(document.documentElement);
|
|
|
|
const primaryColor = documentStyle.getPropertyValue('--primary-color');
|
|
|
|
|
2023-10-13 20:22:26 +00:00
|
|
|
return {
|
|
|
|
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
|
|
datasets: [
|
|
|
|
{
|
|
|
|
label: 'Annual Income',
|
|
|
|
data: [40, 59, 40, 50, 56],
|
|
|
|
fill: true,
|
2024-03-29 07:44:47 +00:00
|
|
|
borderColor: primaryColor,
|
2023-10-13 20:22:26 +00:00
|
|
|
tension: 0.4,
|
2024-03-29 07:44:47 +00:00
|
|
|
backgroundColor: `color-mix(in srgb, ${primaryColor}, transparent 80%)`
|
2023-10-13 20:22:26 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
},
|
|
|
|
setChartOptions() {
|
|
|
|
const documentStyle = getComputedStyle(document.documentElement);
|
2024-05-21 08:07:57 +00:00
|
|
|
const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
|
|
|
|
const surfaceBorder = documentStyle.getPropertyValue('p-content-border-color');
|
2023-10-13 20:22:26 +00:00
|
|
|
|
|
|
|
return {
|
|
|
|
plugins: {
|
|
|
|
legend: {
|
2023-10-18 10:15:34 +00:00
|
|
|
display: false
|
2023-10-13 20:22:26 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
scales: {
|
|
|
|
x: {
|
|
|
|
ticks: {
|
|
|
|
color: textColorSecondary
|
|
|
|
},
|
|
|
|
grid: {
|
|
|
|
color: surfaceBorder
|
|
|
|
}
|
|
|
|
},
|
|
|
|
y: {
|
|
|
|
beginAtZero: true,
|
|
|
|
ticks: {
|
|
|
|
color: textColorSecondary
|
|
|
|
},
|
|
|
|
min: 0,
|
|
|
|
max: 100,
|
|
|
|
grid: {
|
|
|
|
color: surfaceBorder
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2022-09-06 13:53:29 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-14 14:26:41 +00:00
|
|
|
};
|
|
|
|
</script>
|