UNPKG

dikript-react-identity-comparison-sdk

Version:

A Dikript's React SDK for identity comparison and liveness checks.

299 lines (256 loc) 5.11 kB
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap'); .dikriptLivenessPopup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; overflow-y: auto; padding: 20px; box-sizing: border-box; font-family: 'Poppins', sans-serif; } .dikriptPopupContent { background-color: white; padding: 20px; border-radius: 10px; text-align: left; width: 100%; max-width: 500px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); color: #333; } .dikriptHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .dikriptBackButton, .dikriptCloseButton { background: none; border: none; font-size: 30px; cursor: pointer; color: #333; padding: 8px; display: block; visibility: visible; opacity: 1; position: relative; z-index: 10; } .dikriptLogo { height: 30px; max-width: 100px; } .dikriptHeaderCenter { flex: 1; text-align: center; } .dikriptLogoText { font-weight: bold; font-size: 18px; } .dikriptBackButton:hover, .dikriptCloseButton:hover { /* No specific hover styles in the original */ } .dikriptPopupContent h2 { font-size: 28px; font-weight: 700; color: #0b2d61; margin-bottom: 20px; } .dikriptSubtitle { font-size: 18px; font-weight: 600; color: #555; } .dikriptPermissions { margin-bottom: 20px; } .dikriptPermissionGroup h3 { font-size: 20px; font-weight: 600; color: #0b2d61; margin-bottom: 10px; } .dikriptPermissionGroup ul { list-style-type: none; padding-left: 0; } .dikriptPermissionGroup li { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; } .dikriptPermissionGroup li::before { content: '✓'; color: #0b2d61; font-weight: bold; margin-right: 10px; } .dikriptCameraContainer { position: relative; width: 100%; max-width: 400px; margin: 0 auto 20px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .dikriptCameraContainer video { width: 100%; display: block; } .dikriptFaceOverlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .dikriptMessage { text-align: center; margin: 15px 0; color: #0b2d61; font-weight: 600; } .dikriptMessage.dikriptError { color: #dc3545; } .dikriptMessage.dikriptSuccess { color: #0b2d61; } .dikriptConsent { margin-bottom: 20px; } .dikriptConsent label { display: flex; align-items: center; font-size: 14px; color: #1c1a1a; } .dikriptConsent input[type="checkbox"] { margin-right: 10px; } .dikriptButtonContainer { display: flex; flex-direction: column; gap: 10px; } .dikriptActionButton, .dikriptCaptureButton, .dikriptRetryButton { background-color: #0b2d61; color: white; border: none; border-radius: 5px; padding: 12px 20px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; } .dikriptActionButton:hover, .dikriptCaptureButton:hover, .dikriptRetryButton:hover { background-color: #0052CC; } .dikriptActionButton:disabled { background-color: #ccc; cursor: not-allowed; } .dikriptConsentConfirmation { font-size: 18px; font-weight: 600; color: #1c1a1a; margin-bottom: 20px; text-align: center; } .dikriptSuccessMessage { font-size: 18px; font-weight: 600; color: #1c1a1a; margin-bottom: 20px; text-align: center; } .dikriptActionButton { width: 100%; max-width: 200px; margin: 10px auto; } .dikriptCloseButtonStyled { margin-top: 20px; } .dikriptFooter { text-align: center; font-size: 14px; color: #777; margin-top: 20px; padding-top: 10px; border-top: 1px solid #eee; } .dikriptCenterContent { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .dikriptIdSelection { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .dikriptIdTypeSelect, .dikriptIdNumberInput { padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 5px; } @media (max-width: 600px) { .dikriptPopupContent { padding: 15px; } .dikriptPopupContent h2 { font-size: 20px; } .dikriptSubtitle, .dikriptPermissionGroup li, .dikriptConsent label { font-size: 14px; } .dikriptActionButton, .dikriptCaptureButton { font-size: 14px; padding: 10px; } } /* Loading indicator */ .dikriptLoadingOverlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; border-radius: 12px; } .dikriptLoader { border: 5px solid #f3f3f3; border-top: 5px solid #0066cc; border-radius: 50%; width: 50px; height: 50px; animation: dikriptSpin 1s linear infinite; margin-bottom: 16px; } @keyframes dikriptSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }