File size: 6,207 Bytes
921d377 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | import React, { useState } from 'react';
/**
* Age Verification Modal
*
* Required when switching to Mature mode.
* Professional, non-judgmental design.
*/
export const AgeVerificationModal = ({ onConfirm, onCancel, }) => {
const [confirmed, setConfirmed] = useState(false);
return (<div className="modal-overlay" onClick={onCancel}>
<div className="modal-content" onClick={(e) => e.stopPropagation()}>
<div className="modal-header">
<span className="modal-icon">🔞</span>
<h2>Enable Mature Mode?</h2>
</div>
<div className="modal-body">
<p className="modal-description">
Mature mode unlocks adult content generation capabilities:
</p>
<ul className="feature-list">
<li>
<span className="check">✓</span>
NSFW image generation with anime models
</li>
<li>
<span className="check">✓</span>
Explicit content (nudity, porn) allowed
</li>
<li>
<span className="check">✓</span>
Fan service & ecchi content
</li>
<li>
<span className="check">✓</span>
Mature romance/erotica stories
</li>
</ul>
<div className="blocked-notice">
<span className="notice-icon">⚠</span>
<span>
<strong>Always blocked:</strong> CSAM, minors, non-consensual content
</span>
</div>
<label className="checkbox-label">
<input type="checkbox" checked={confirmed} onChange={(e) => setConfirmed(e.target.checked)}/>
<span className="checkbox-text">
I am 18 years or older and consent to viewing adult content
</span>
</label>
</div>
<div className="modal-footer">
<button className="btn-cancel" onClick={onCancel}>
Cancel
</button>
<button className="btn-confirm" onClick={onConfirm} disabled={!confirmed}>
Enable Mature Mode
</button>
</div>
</div>
<style>{`
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.modal-content {
background: var(--color-surface, #fff);
border-radius: 16px;
width: 100%;
max-width: 480px;
margin: 16px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
animation: slideUp 0.3s ease;
}
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.modal-header {
padding: 24px 24px 16px;
display: flex;
align-items: center;
gap: 12px;
border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.modal-icon {
font-size: 28px;
}
.modal-header h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
color: var(--color-text, #1e293b);
}
.modal-body {
padding: 24px;
}
.modal-description {
margin: 0 0 16px;
color: var(--color-text-muted, #64748b);
font-size: 15px;
}
.feature-list {
list-style: none;
margin: 0 0 20px;
padding: 0;
}
.feature-list li {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
color: var(--color-text, #1e293b);
font-size: 14px;
}
.check {
color: #10B981;
font-weight: bold;
}
.blocked-notice {
background: #FEF2F2;
border: 1px solid #FECACA;
border-radius: 8px;
padding: 12px 16px;
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 20px;
font-size: 13px;
color: #991B1B;
}
.notice-icon {
font-size: 16px;
}
.checkbox-label {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
padding: 12px;
background: var(--color-surface-hover, #f1f5f9);
border-radius: 8px;
}
.checkbox-label input[type="checkbox"] {
width: 20px;
height: 20px;
margin-top: 2px;
cursor: pointer;
accent-color: #8B5CF6;
}
.checkbox-text {
font-size: 14px;
color: var(--color-text, #1e293b);
line-height: 1.5;
}
.modal-footer {
padding: 16px 24px 24px;
display: flex;
gap: 12px;
justify-content: flex-end;
}
.btn-cancel,
.btn-confirm {
padding: 10px 20px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.btn-cancel {
background: transparent;
border: 1px solid var(--color-border, #e2e8f0);
color: var(--color-text-muted, #64748b);
}
.btn-cancel:hover {
background: var(--color-surface-hover, #f1f5f9);
}
.btn-confirm {
background: linear-gradient(135deg, #8B5CF6, #7C3AED);
border: none;
color: white;
}
.btn-confirm:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.btn-confirm:disabled {
opacity: 0.5;
cursor: not-allowed;
}
`}</style>
</div>);
};
|