diff --git a/.drone.yml b/.drone.yml index 87aa402..e1d9fcc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,16 +3,11 @@ type: docker name: deploy steps: - - name: install + - name: build image: node:18-alpine commands: - - npm install -D tailwindcss@^3.4.0 - - - name: build-css - image: node:18-alpine - commands: - # Generate optimized CSS from src/input.css styles/main.css - - npx tailwindcss -i ./src/input.css -o ./styles/main.css --minify + - npm ci || npm install + - npm run build || npm build - name: sync-files image: alpine:latest @@ -21,9 +16,10 @@ steps: path: /host-target commands: - cp -a . /host-target - - chmod -R 755 /host-target + + - chmod -R 777 /host-target volumes: - name: website-data host: - path: /root/khy/data/html + path: /root/khywebsite/data/html diff --git a/index.html b/index.html index db85948..5399cf5 100644 --- a/index.html +++ b/index.html @@ -68,62 +68,6 @@ cursor: pointer; } - /* Attention animation for projects button */ - .attention-animation { - animation: attention-pulse 3s ease-in-out infinite; - position: relative; - overflow: hidden; - } - - .attention-animation::before { - content: ""; - position: absolute; - top: 0; - left: -100%; - width: 100%; - height: 100%; - background: linear-gradient( - 90deg, - transparent, - rgba(255, 255, 255, 0.2), - transparent - ); - animation: shimmer 4s ease-in-out infinite; - } - - @keyframes attention-pulse { - 0%, - 100% { - transform: scale(1); - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), - 0 2px 4px -1px rgba(0, 0, 0, 0.06); - } - 50% { - transform: scale(1.02); - box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), - 0 4px 6px -2px rgba(0, 0, 0, 0.05); - } - } - - @keyframes shimmer { - 0% { - left: -100%; - } - 50% { - left: 100%; - } - 100% { - left: 100%; - } - } - - .attention-animation:hover { - animation: none; - transform: scale(1.05); - box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), - 0 10px 10px -5px rgba(0, 0, 0, 0.04); - } - .product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15); @@ -390,11 +334,11 @@