diff --git a/package.json b/package.json index 8f85bf4..e6a775e 100644 --- a/package.json +++ b/package.json @@ -1,38 +1,38 @@ { - "name": "silvester-24", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --plugin-search-dir . --check . && eslint .", - "format": "prettier --plugin-search-dir . --write ." - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^2.0.0", - "@sveltejs/kit": "^1.20.4", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", - "eslint": "^8.28.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-svelte": "^2.30.0", - "prettier": "^2.8.0", - "prettier-plugin-svelte": "^2.10.1", - "svelte": "^4.0.5", - "svelte-check": "^3.4.3", - "tslib": "^2.4.1", - "typescript": "^5.0.0", - "vite": "^4.4.2" - }, - "type": "module", - "dependencies": { - "@sveltejs/adapter-node": "^1.3.1", - "svelte-particles": "^2.12.0", - "tsparticles": "^2.12.0", - "tsparticles-confetti": "^2.12.0", - "tsparticles-slim": "^2.12.0" - } + "name": "silvester-24", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "vite dev --port 8080 --host", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "prettier --plugin-search-dir . --check . && eslint .", + "format": "prettier --plugin-search-dir . --write ." + }, + "devDependencies": { + "@sveltejs/adapter-auto": "^2.0.0", + "@sveltejs/kit": "^1.20.4", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "eslint": "^8.28.0", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-svelte": "^2.30.0", + "prettier": "^2.8.0", + "prettier-plugin-svelte": "^2.10.1", + "svelte": "^4.0.5", + "svelte-check": "^3.4.3", + "tslib": "^2.4.1", + "typescript": "^5.0.0", + "vite": "^4.4.2" + }, + "type": "module", + "dependencies": { + "@sveltejs/adapter-node": "^1.3.1", + "svelte-particles": "^2.12.0", + "tsparticles": "^2.12.0", + "tsparticles-confetti": "^2.12.0", + "tsparticles-slim": "^2.12.0" + } } diff --git a/src/app.html b/src/app.html index 8b83556..671b2c0 100644 --- a/src/app.html +++ b/src/app.html @@ -5,7 +5,8 @@ %sveltekit.head% - + + diff --git a/src/lib/components/button.svelte b/src/lib/components/button.svelte index 5595dbe..732cc30 100644 --- a/src/lib/components/button.svelte +++ b/src/lib/components/button.svelte @@ -16,21 +16,33 @@ font-size: 2em; color: #ceba51; background: transparent; - filter: drop-shadow(0px 0px 30px #886d2c); - /*** Your CSS code ***/ - border-style: solid; border-width: 30px; border-image: url(/border.png); - border-color: transparent; border-image-repeat: stretch; + border-image-slice: 100%; border-image-slice: 24% 23%; - transition: border-image-slice 0.3s ease, filter 0.3s ease; + transition: border-image-slice 0.3s ease; will-change: contents; - transform: translateZ(1px); } button:hover { - filter: drop-shadow(0px 0px 20px #886d2c); border-image-slice: 24% 23%; } + + button::after { + content: ''; + position: absolute; + background: rgba(0, 0, 0, 0.7); + box-shadow: 0 0 70px #ffb11b88; + top: -15px; + left: -15px; + z-index: -1; + width: calc(100% + 30px); + height: calc(100% + 30px); + transition: box-shadow 0.3s ease; + } + + button:hover::after { + box-shadow: 0 0 30px #ffb11b88; + } diff --git a/src/lib/components/confetti.svelte b/src/lib/components/confetti.svelte index a7d32a3..69cab3b 100644 --- a/src/lib/components/confetti.svelte +++ b/src/lib/components/confetti.svelte @@ -1,36 +1,46 @@ diff --git a/src/lib/components/curtains.svelte b/src/lib/components/curtains.svelte new file mode 100644 index 0000000..53d0585 --- /dev/null +++ b/src/lib/components/curtains.svelte @@ -0,0 +1,98 @@ + + +