Implement Turnstile captcha for petition signing and add tweet prompt modal

This commit is contained in:
fISHIE
2025-12-17 11:40:38 +05:00
parent 973868336d
commit 1e44b19a70
14 changed files with 940 additions and 49 deletions

View File

@@ -332,3 +332,121 @@ body {
width: 100%;
}
}
/* Tweet Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
animation: fadeIn 0.3s ease;
}
.modal.show {
display: flex;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
max-width: 500px;
width: 90%;
position: relative;
animation: slideIn 0.3s ease;
}
.close-modal {
position: absolute;
top: 15px;
right: 20px;
font-size: 28px;
font-weight: bold;
color: #999;
cursor: pointer;
transition: color 0.3s ease;
}
.close-modal:hover {
color: #333;
}
.modal-content h2 {
font-size: 24px;
color: #222;
margin-bottom: 15px;
}
.modal-content p {
font-size: 16px;
color: #666;
margin-bottom: 25px;
line-height: 1.6;
}
.modal-buttons {
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
width: 100%;
}
.modal-buttons button {
width: 100%;
max-width: 300px;
justify-content: center;
}
.modal-buttons .btn-primary {
background-color: #1DA1F2;
display: flex;
align-items: center;
gap: 8px;
}
.modal-buttons .btn-primary:hover {
background-color: #1a91da;
}
.modal-buttons .btn-primary i {
font-size: 18px;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@media (max-width: 768px) {
.modal-content {
padding: 30px 20px;
max-width: 90%;
}
.modal-content h2 {
font-size: 20px;
}
}