vue-client-notpaid
is a Vue.js plugin that fades your website's content progressively until it becomes completely transparent, based on the payment due date and deadline. It's inspired by the not-paid JavaScript project.
- Easy to integrate with any Vue.js project.
- Customizable due date and deadline.
- Progressive transparency to encourage client payments.
npm install vue-client-notpaid
or
yarn add vue-client-notpaid
Import vue-client-notpaid
in your main app file:
import { createApp } from "vue";
import App from "./App.vue";
import VueClientNotPaid from "vue-client-notpaid";
const app = createApp(App);
app.use(VueClientNotPaid, { dueDate: "YYYY-MM-DD", deadline: 60 });
Now you can access the $opacity property at any part of your App, for example in App.vue:
<div :style="{ opacity: $opacity }"></div>
dueDate
: The date by which payment should be received (format:YYYY-MM-DD
).deadline
: The number of days after the due date when the website will be fully transparent.
To see vue-client-notpaid
in action, visit this link.
vue-client-notpaid
is open-sourced software licensed under the MIT license.
- Inspired by not-paid created by kleampa.
- Thanks to all contributors who help maintain and improve this project.
If you find this plugin helpful, consider starring the repository to show your support. Any donations to support the development are appreciated!