Compare commits

..

4 Commits

Author SHA1 Message Date
Antoine M
942381bcf2 CHORE Installing notyf
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-20 14:58:36 +02:00
Antoine M
b07316de9b STYLE Updatong font size and line heights for global site settings 2025-06-20 14:58:28 +02:00
Antoine M
d7dd5db521 CHORE Enqueuing notyf 2025-06-20 14:58:04 +02:00
Antoine M
97d322faec CHORE Installing notyf 2025-06-20 14:57:49 +02:00
6 changed files with 21 additions and 3 deletions

View File

@ -90,6 +90,10 @@ function carhop_enqueue_scripts()
wp_enqueue_style('swiper-css', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');
wp_enqueue_script('swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), null, true);
// Enqueue NOTYF CSS and JS
wp_enqueue_style('notyf-css', get_template_directory_uri() . '/resources/libs/notyf.min.css');
wp_enqueue_script('notyf-js', get_template_directory_uri() . '/resources/libs/notyf.min.js', array(), null, true);
wp_enqueue_script('gsap-js', 'https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js', array(), false, true);
wp_enqueue_script('gsap-st', 'https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/ScrollTrigger.min.js', array('gsap-js'), false, true);
}

12
package-lock.json generated
View File

@ -9,6 +9,7 @@
"version": "3.0.0",
"license": "MIT",
"dependencies": {
"notyf": "^3.10.0",
"swiper": "^11.2.6"
},
"devDependencies": {
@ -1774,6 +1775,12 @@
"node": ">=0.10.0"
}
},
"node_modules/notyf": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/notyf/-/notyf-3.10.0.tgz",
"integrity": "sha512-Mtnp+0qiZxgrH+TzVlzhWyZceHdAZ/UWK0/ju9U0HQeDpap1mZ8cC7H5wSI5mwgni6yeAjaxsTw0sbMK+aSuHw==",
"license": "MIT"
},
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@ -4638,6 +4645,11 @@
"integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",
"dev": true
},
"notyf": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/notyf/-/notyf-3.10.0.tgz",
"integrity": "sha512-Mtnp+0qiZxgrH+TzVlzhWyZceHdAZ/UWK0/ju9U0HQeDpap1mZ8cC7H5wSI5mwgni6yeAjaxsTw0sbMK+aSuHw=="
},
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",

View File

@ -47,6 +47,7 @@
"tailwindcss": "^3.1.0"
},
"dependencies": {
"notyf": "^3.10.0",
"swiper": "^11.2.6"
}
}

View File

@ -2,7 +2,7 @@
body {
font-family: 'Nunito Sans', sans-serif;
@apply text-primary;
@apply text-primary text-xl;
}
h1,
@ -25,7 +25,7 @@ h2 {
p {
@apply font-light;
line-height: 1.6;
line-height: 1.8;
}
body.wp-admin h1:not(.editor-visual-editor h1),
@ -61,4 +61,3 @@ body.wp-admin h6:not(.editor-visual-editor h6) {
text-rendering: geometricPrecision;
font-weight: 100 !important;
}

1
resources/libs/notyf.min.css vendored Normal file

File diff suppressed because one or more lines are too long

1
resources/libs/notyf.min.js vendored Normal file

File diff suppressed because one or more lines are too long