diff --git a/header.php b/header.php index 5a43b3f..c4a4a70 100644 --- a/header.php +++ b/header.php @@ -28,7 +28,7 @@ -
This is a test alert<\/a>.<\/p>", + "tabs": "all", + "toolbar": "basic", + "media_upload": 0, + "delay": 0, + "parent_repeater": "field_653fde8fdf14f" + } + ] + } + ], + "location": [ + [ + { + "param": "post_type", + "operator": "==", + "value": "post" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "default", + "label_placement": "left", + "instruction_placement": "label", + "hide_on_screen": "", + "active": false, + "description": "", + "show_in_rest": 0, + "acfe_display_title": "", + "acfe_autosync": [ + "json" + ], + "acfe_form": 0, + "acfe_meta": "", + "acfe_note": "", + "modified": 1698685001 +} diff --git a/package-lock.json b/package-lock.json index 84c4305..b7149a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "@types/body-scroll-lock": "^3.1.0", "@types/browser-sync": "^2.27.0", "@types/jest": "^29.5.3", + "@types/node": "^20.8.9", "@types/tailwindcss": "^3.1.0", "@types/webfontloader": "^1.6.34", "@typescript-eslint/eslint-plugin": "^6.2.1", @@ -1532,9 +1533,12 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.4.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.5.tgz", - "integrity": "sha512-rt40Nk13II9JwQBdeYqmbn2Q6IVTA5uPhvSO+JVqdXw/6/4glI6oR9ezty/A9Hg5u7JH4OmYmuQ+XvjKm0Datg==" + "version": "20.8.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", + "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -11721,6 +11725,11 @@ "integrity": "sha512-RsPyTbqORDNDxqAdQPQBpgqhWle1VcTSou/FraClYlHf6TZnQcGslpLcAphNR+sQW4q5lLWLbOsRlh9j24baQg==", "dev": true }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/union-value": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", @@ -13541,9 +13550,12 @@ "dev": true }, "@types/node": { - "version": "20.4.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.5.tgz", - "integrity": "sha512-rt40Nk13II9JwQBdeYqmbn2Q6IVTA5uPhvSO+JVqdXw/6/4glI6oR9ezty/A9Hg5u7JH4OmYmuQ+XvjKm0Datg==" + "version": "20.8.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", + "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "requires": { + "undici-types": "~5.26.4" + } }, "@types/normalize-package-data": { "version": "2.4.1", @@ -21029,6 +21041,11 @@ "integrity": "sha512-RsPyTbqORDNDxqAdQPQBpgqhWle1VcTSou/FraClYlHf6TZnQcGslpLcAphNR+sQW4q5lLWLbOsRlh9j24baQg==", "dev": true }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "union-value": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", diff --git a/package.json b/package.json index c943fd6..5b0c883 100644 --- a/package.json +++ b/package.json @@ -39,12 +39,12 @@ "devDependencies": { "@cypress/vite-dev-server": "^5.0.5", "@cypress/vue": "^5.0.5", - "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/forms": "^0.5.4", "@tailwindcss/typography": "^0.5.9", "@types/body-scroll-lock": "^3.1.0", "@types/browser-sync": "^2.27.0", "@types/jest": "^29.5.3", + "@types/node": "^20.8.9", "@types/tailwindcss": "^3.1.0", "@types/webfontloader": "^1.6.34", "@typescript-eslint/eslint-plugin": "^6.2.1", diff --git a/src/css/base/menu.css b/src/css/base/menu.css index 8b16447..1bc80d1 100644 --- a/src/css/base/menu.css +++ b/src/css/base/menu.css @@ -1,4 +1,8 @@ /* Menu Styles */ +.inactive { + @apply hidden; +} + .sticky-top { @apply sticky top-0 z-20; } diff --git a/src/js/modules/menu.ts b/src/js/modules/menu.ts index ca5ac73..0fcfb65 100644 --- a/src/js/modules/menu.ts +++ b/src/js/modules/menu.ts @@ -10,9 +10,9 @@ export default () => { buttons.forEach((el) => { el.addEventListener('click', () => { // Toggle the hide class - menu.classList.toggle('hidden'); + menu.classList.toggle('inactive'); - if (menu.classList.contains('hidden')) { + if (menu.classList.contains('inactive')) { enableBodyScroll(menu); document.body.classList.remove('menu-open'); @@ -26,8 +26,8 @@ export default () => { // Close menu on ESC key document.onkeydown = (e) => { - if (e.key === 'Escape' && !menu.classList.contains('hidden')) { - menu.classList.add('hidden'); + if (e.key === 'Escape' && !menu.classList.contains('inactive')) { + menu.classList.add('inactive'); document.body.classList.remove('menu-open'); diff --git a/src/sprite/tiktok.svg b/src/sprite/tiktok.svg new file mode 100644 index 0000000..afe49e7 --- /dev/null +++ b/src/sprite/tiktok.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/sprite/twitter.svg b/src/sprite/twitter.svg deleted file mode 100644 index 5df4655..0000000 --- a/src/sprite/twitter.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/sprite/x.svg b/src/sprite/x.svg new file mode 100644 index 0000000..65181e1 --- /dev/null +++ b/src/sprite/x.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/tailwind.config.ts b/tailwind.config.ts index 102ff62..ab8081a 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -20,7 +20,6 @@ export default { }, }, plugins: [ - require('@tailwindcss/aspect-ratio'), // eslint-disable-next-line @typescript-eslint/no-var-requires require('@tailwindcss/forms')({ strategy: 'class', diff --git a/tsconfig.json b/tsconfig.json index 22b96b8..9f3cea3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "importHelpers": true, "isolatedModules": true, "moduleResolution": "node", + "allowSyntheticDefaultImports": true, "jsx": "preserve", "baseUrl": ".", "paths": { @@ -12,7 +13,8 @@ }, "types": [ "vite/client", // if using vite-plugin-typescript - "jest" // if using jest + "jest", // if using jest + "node" // if using node ], "strict": true, // Enable strict type-checking options "skipLibCheck": true, // Skip type checking of declaration files