feat: enhance contact form security and add animated hero
This commit is contained in:
parent
ea18dcdb8e
commit
8497cd819d
19 changed files with 320 additions and 112 deletions
|
|
@ -1,19 +1,16 @@
|
|||
import ScrollReveal from 'scrollreveal';
|
||||
import ScrollReveal from "scrollreveal";
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const defaultOptions = {
|
||||
origin: 'bottom',
|
||||
distance: '80px',
|
||||
origin: "bottom",
|
||||
distance: "80px",
|
||||
duration: 1000,
|
||||
delay: 200,
|
||||
easing: 'cubic-bezier(0.5, 0, 0, 1)',
|
||||
easing: "cubic-bezier(0.5, 0, 0, 1)",
|
||||
reset: true,
|
||||
};
|
||||
|
||||
const sr = ScrollReveal(defaultOptions);
|
||||
|
||||
// You can make it available to the rest of your Nuxt application
|
||||
// by returning it in the `provide` object.
|
||||
// This makes it accessible as `$sr` in your components.
|
||||
nuxtApp.provide('sr', sr);
|
||||
nuxtApp.provide("sr", sr);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue