Add honeypot, spam protection to contact form

This commit is contained in:
2026-05-02 11:24:11 +12:00
parent cd8d581f7a
commit 3587ba7f26
25 changed files with 553 additions and 41 deletions
+55 -2
View File
@@ -112,7 +112,11 @@ nav {
flex: 1;
text-decoration: none;
color: var(--text);
transition: background 0.15s;
transform: translateY(0);
transition:
background 0.15s,
transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.18s ease;
}
.mega-service:hover {
@@ -129,13 +133,62 @@ nav {
justify-content: center;
font-size: 24px;
color: #fff;
transition: background 0.15s;
box-shadow: 0 10px 22px rgba(33, 48, 33, 0.12);
transform: translateY(0) rotate(0deg) scale(1);
transition:
background 0.15s,
transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.2s ease;
}
.mega-service:hover .mega-icon {
background: #2d4230;
}
@media (hover: hover) and (min-width: 769px) {
.has-mega:hover .mega-service {
animation: mega-service-settle 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.has-mega:hover .mega-service:nth-child(1) {
animation-delay: 0.02s;
}
.has-mega:hover .mega-service:nth-child(2) {
animation-delay: 0.06s;
}
.has-mega:hover .mega-service:nth-child(3) {
animation-delay: 0.1s;
}
.mega-service:hover {
transform: translateY(-3px);
box-shadow: 0 12px 26px rgba(17, 20, 24, 0.08);
}
.mega-service:hover .mega-icon {
transform: translateY(-3px) rotate(-5deg) scale(1.04);
box-shadow: 0 16px 28px rgba(33, 48, 33, 0.18);
}
.mega-service:nth-child(even):hover .mega-icon {
transform: translateY(-3px) rotate(5deg) scale(1.04);
}
}
@keyframes mega-service-settle {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.mega-service-label {
font-weight: 700;
font-size: 14px;