| .qr-generator { |
| min-height: 100vh; |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| padding: 2rem; |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| } |
|
|
| .input-section { |
| width: 100%; |
| max-width: 800px; |
| background: white; |
| border-radius: 20px; |
| padding: 3rem; |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); |
| margin-bottom: 2rem; |
| } |
|
|
| .title { |
| font-size: 2.5rem; |
| font-weight: 800; |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| text-align: center; |
| margin-bottom: 0.5rem; |
| } |
|
|
| .subtitle { |
| text-align: center; |
| color: #6b7280; |
| font-size: 1.1rem; |
| margin-bottom: 2rem; |
| } |
|
|
| .input-group { |
| display: flex; |
| gap: 1rem; |
| margin-bottom: 1rem; |
| } |
|
|
| .url-input { |
| flex: 1; |
| padding: 1rem 1.5rem; |
| font-size: 1rem; |
| border: 2px solid #e5e7eb; |
| border-radius: 12px; |
| transition: all 0.3s ease; |
| outline: none; |
| } |
|
|
| .url-input:focus { |
| border-color: #667eea; |
| box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); |
| } |
|
|
| .generate-btn { |
| padding: 1rem 2rem; |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| color: white; |
| border: none; |
| border-radius: 12px; |
| font-size: 1rem; |
| font-weight: 600; |
| cursor: pointer; |
| transition: transform 0.2s ease, box-shadow 0.2s ease; |
| white-space: nowrap; |
| } |
|
|
| .generate-btn:hover:not(:disabled) { |
| transform: translateY(-2px); |
| box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); |
| } |
|
|
| .generate-btn:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| } |
|
|
| .error-message { |
| background: #fee2e2; |
| color: #dc2626; |
| padding: 0.75rem 1rem; |
| border-radius: 8px; |
| margin-top: 1rem; |
| font-size: 0.95rem; |
| } |
|
|
| .result-section { |
| width: 100%; |
| max-width: 800px; |
| background: white; |
| border-radius: 20px; |
| padding: 3rem; |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); |
| animation: slideUp 0.5s ease; |
| } |
|
|
| @keyframes slideUp { |
| from { |
| opacity: 0; |
| transform: translateY(20px); |
| } |
| to { |
| opacity: 1; |
| transform: translateY(0); |
| } |
| } |
|
|
| .profile-info { |
| display: flex; |
| align-items: center; |
| gap: 1.5rem; |
| margin-bottom: 2rem; |
| padding-bottom: 2rem; |
| border-bottom: 2px solid #f3f4f6; |
| } |
|
|
| .profile-avatar { |
| width: 80px; |
| height: 80px; |
| border-radius: 50%; |
| object-fit: cover; |
| border: 3px solid #667eea; |
| } |
|
|
| .profile-details h2 { |
| font-size: 1.5rem; |
| font-weight: 700; |
| color: #1f2937; |
| margin-bottom: 0.25rem; |
| } |
|
|
| .profile-username { |
| color: #6b7280; |
| font-size: 1rem; |
| margin-bottom: 0.5rem; |
| } |
|
|
| .profile-link { |
| color: #667eea; |
| text-decoration: none; |
| font-weight: 500; |
| display: inline-flex; |
| align-items: center; |
| gap: 0.25rem; |
| transition: gap 0.2s ease; |
| } |
|
|
| .profile-link:hover { |
| gap: 0.5rem; |
| } |
|
|
| .qr-code-section { |
| display: flex; |
| justify-content: center; |
| margin: 2rem 0; |
| padding: 0; |
| } |
|
|
| .qr-code-wrapper { |
| background: white; |
| border-radius: 16px; |
| overflow: hidden; |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); |
| } |
|
|
| .qr-code-container { |
| background: white; |
| padding: 2rem; |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| } |
|
|
| .profile-bar { |
| display: flex; |
| align-items: center; |
| gap: 1rem; |
| padding: 1.5rem 2rem; |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| color: white; |
| } |
|
|
| .profile-bar-avatar { |
| width: 50px; |
| height: 50px; |
| border-radius: 50%; |
| border: 3px solid white; |
| object-fit: cover; |
| } |
|
|
| .profile-bar-info { |
| flex: 1; |
| } |
|
|
| .profile-bar-name { |
| font-size: 1.1rem; |
| font-weight: 700; |
| margin: 0 0 0.25rem 0; |
| color: white; |
| } |
|
|
| .profile-bar-username { |
| font-size: 0.9rem; |
| opacity: 0.9; |
| margin: 0; |
| color: white; |
| } |
|
|
| .profile-bar-details { |
| display: flex; |
| align-items: center; |
| gap: 0.75rem; |
| flex-wrap: wrap; |
| } |
|
|
| .resource-type-badge { |
| display: inline-flex; |
| align-items: center; |
| padding: 0.2rem 0.5rem; |
| background: rgba(255, 255, 255, 0.2); |
| border-radius: 6px; |
| font-size: 0.8rem; |
| font-weight: 600; |
| color: white; |
| text-transform: capitalize; |
| } |
|
|
| .resource-name { |
| font-size: 0.9rem; |
| color: white; |
| font-weight: 500; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| max-width: 200px; |
| } |
|
|
| .actions-section { |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| gap: 2rem; |
| margin-top: 2rem; |
| } |
|
|
| .download-actions h3, |
| .share-actions h3 { |
| font-size: 1.1rem; |
| font-weight: 600; |
| color: #374151; |
| margin-bottom: 1rem; |
| } |
|
|
| .button-group { |
| display: flex; |
| gap: 1rem; |
| flex-wrap: wrap; |
| } |
|
|
| .download-btn { |
| flex: 1; |
| padding: 0.75rem 1.5rem; |
| background: #6b7280; |
| color: white; |
| border: none; |
| border-radius: 8px; |
| font-weight: 500; |
| cursor: pointer; |
| transition: all 0.2s ease; |
| min-width: 120px; |
| } |
|
|
| .download-btn:hover { |
| background: #4b5563; |
| transform: translateY(-1px); |
| } |
|
|
| .download-btn.primary { |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| } |
|
|
| .download-btn.primary:hover { |
| background: linear-gradient(135deg, #5a67d8 0%, #6b42a0 100%); |
| transform: translateY(-1px); |
| } |
|
|
| .download-btn.secondary { |
| background: #6b7280; |
| } |
|
|
| .download-btn.secondary:hover { |
| background: #4b5563; |
| } |
|
|
| .share-btn { |
| flex: 1; |
| padding: 0.75rem 1rem; |
| border: none; |
| border-radius: 8px; |
| font-weight: 500; |
| cursor: pointer; |
| transition: all 0.2s ease; |
| color: white; |
| min-width: 100px; |
| font-size: 0.9rem; |
| } |
|
|
| .share-btn.twitter { |
| background: #1DA1F2; |
| } |
|
|
| .share-btn.twitter:hover { |
| background: #1a91da; |
| } |
|
|
| .share-btn.facebook { |
| background: #1877F2; |
| } |
|
|
| .share-btn.facebook:hover { |
| background: #166fe5; |
| } |
|
|
| .share-btn.linkedin { |
| background: #0A66C2; |
| } |
|
|
| .share-btn.linkedin:hover { |
| background: #095196; |
| } |
|
|
| |
|
|
| |
| @media (max-width: 1024px) { |
| .qr-generator { |
| padding: 1.5rem; |
| } |
|
|
| .input-section, |
| .result-section { |
| max-width: 700px; |
| padding: 2.5rem 2rem; |
| } |
|
|
| .title { |
| font-size: 2.2rem; |
| } |
|
|
| .qr-phone-bg { |
| width: 360px; |
| } |
|
|
| .qr-share-sheet { |
| width: 360px; |
| } |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .qr-generator { |
| padding: 1rem; |
| } |
|
|
| .input-section, |
| .result-section { |
| padding: 2rem 1.5rem; |
| max-width: 100%; |
| } |
|
|
| .title { |
| font-size: 1.8rem; |
| } |
|
|
| .subtitle { |
| font-size: 1rem; |
| } |
|
|
| .input-group { |
| flex-direction: column; |
| } |
|
|
| .url-input, |
| .generate-btn { |
| width: 100%; |
| } |
|
|
| .profile-info { |
| flex-direction: column; |
| text-align: center; |
| } |
|
|
| .qr-code-wrapper { |
| width: 100%; |
| } |
|
|
| .profile-bar { |
| padding: 1rem 1.5rem; |
| } |
|
|
| .profile-bar-avatar { |
| width: 40px; |
| height: 40px; |
| } |
|
|
| .profile-bar-name { |
| font-size: 1rem; |
| } |
|
|
| .profile-bar-username { |
| font-size: 0.85rem; |
| } |
|
|
| .resource-type-badge { |
| font-size: 0.75rem; |
| padding: 0.15rem 0.4rem; |
| } |
|
|
| .resource-name { |
| font-size: 0.85rem; |
| max-width: 150px; |
| } |
|
|
| .actions-section { |
| grid-template-columns: 1fr; |
| gap: 1.5rem; |
| } |
|
|
| .button-group { |
| flex-direction: column; |
| } |
|
|
| .download-btn, |
| .share-btn { |
| width: 100%; |
| } |
|
|
| .qr-phone-bg { |
| width: 340px; |
| } |
|
|
| .qr-share-sheet { |
| width: 340px; |
| } |
| } |
|
|
| |
| @media (max-width: 414px) { |
| .qr-generator { |
| padding: 0.75rem; |
| } |
|
|
| .input-section, |
| .result-section { |
| padding: 1.5rem 1rem; |
| border-radius: 16px; |
| } |
|
|
| .title { |
| font-size: 1.5rem; |
| } |
|
|
| .subtitle { |
| font-size: 0.9rem; |
| } |
|
|
| .qr-phone-bg { |
| width: 100%; |
| max-width: 340px; |
| padding: 30px 12px 12px; |
| } |
|
|
| .qr-card-v2 { |
| padding: 45px 12px 16px; |
| } |
|
|
| .qr-share-sheet { |
| width: 100%; |
| max-width: 340px; |
| padding: 10px 12px; |
| } |
|
|
| .hf-card { |
| padding: 1.5rem; |
| } |
| } |
|
|
| |
| @media (max-width: 375px) { |
| .qr-phone-bg { |
| width: 100%; |
| max-width: 320px; |
| } |
|
|
| .qr-share-sheet { |
| width: 100%; |
| max-width: 320px; |
| } |
|
|
| .qr-avatar-wrap { |
| width: 48px; |
| height: 48px; |
| top: -24px; |
| } |
|
|
| .qr-name { |
| font-size: 0.95rem; |
| } |
|
|
| .qr-caption { |
| font-size: 0.75rem; |
| } |
| } |
|
|
| |
| @media (max-width: 320px) { |
| .input-section, |
| .result-section { |
| padding: 1.25rem 0.75rem; |
| } |
|
|
| .title { |
| font-size: 1.3rem; |
| } |
|
|
| .qr-phone-bg { |
| width: 100%; |
| padding: 25px 10px 10px; |
| } |
|
|
| .qr-card-v2 { |
| padding: 40px 10px 14px; |
| } |
|
|
| .qr-share-sheet { |
| width: 100%; |
| grid-template-columns: 1fr; |
| gap: 10px; |
| } |
|
|
| .qr-share-actions, |
| .qr-download-actions { |
| justify-content: center; |
| } |
| } |
|
|
| |
| .hf-card { |
| width: 100%; |
| max-width: 720px; |
| background: #ffffff; |
| border-radius: 20px; |
| padding: 2.25rem; |
| box-shadow: 0 14px 40px rgba(0,0,0,0.08); |
| margin-bottom: 2rem; |
| } |
|
|
| .hf-header { |
| display: flex; |
| align-items: center; |
| gap: 0.75rem; |
| margin-bottom: 1.25rem; |
| } |
|
|
| .hf-emoji { |
| font-size: 2rem; |
| } |
|
|
| .hf-title-wrap { display:flex; flex-direction: column; } |
| .hf-title { |
| font-size: 1.5rem; |
| font-weight: 800; |
| color: #111827; |
| } |
| .hf-subtitle { color:#6b7280; font-size: 0.95rem; } |
|
|
| .hf-form { display:flex; flex-direction: column; gap: 1rem; } |
| .hf-field { display:flex; flex-direction: column; gap: 0.4rem; } |
| .hf-label { font-size: 0.75rem; letter-spacing: .05em; color:#6b7280; font-weight: 700; } |
|
|
| .hf-input-wrap { position: relative; display:flex; align-items: center; } |
| .hf-input { |
| width: 100%; |
| padding: 0.9rem 2.75rem 0.9rem 1rem; |
| border: 1.5px solid #e5e7eb; |
| border-radius: 12px; |
| font-size: 0.95rem; |
| } |
| .hf-input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); } |
| .hf-valid { |
| position: absolute; |
| right: 0.75rem; |
| color: #10b981; |
| opacity: 0; |
| transition: opacity .2s ease; |
| font-weight: 900; |
| } |
| .hf-valid.active { opacity: 1; } |
|
|
| .hf-select { |
| width: 220px; |
| padding: 0.7rem 0.85rem; |
| border: 1.5px solid #e5e7eb; |
| border-radius: 12px; |
| font-size: 0.95rem; |
| background: #fff; |
| } |
|
|
| .hf-cta { |
| align-self: flex-start; |
| margin-top: 0.25rem; |
| padding: 0.85rem 1.25rem; |
| border-radius: 9999px; |
| border: none; |
| background: #111827; |
| color: #fff; |
| font-weight: 600; |
| cursor: pointer; |
| } |
| .hf-cta:disabled { opacity: .6; cursor: not-allowed; } |
|
|
| |
| .qr-preview { display:flex; flex-direction: column; align-items: center; justify-content:center; margin: 1.5rem 0 0.5rem; } |
| .qr-phone-bg { |
| position: relative; |
| width: 380px; |
| max-width: 100%; |
| height: auto; |
| border-radius: 32px; |
| background: linear-gradient(135deg,#f1c40f,#f39c12); |
| padding: 40px 18px 18px; |
| box-shadow: 0 12px 28px rgba(0,0,0,.15); |
| } |
|
|
| .qr-card-v2 { |
| position: relative; |
| background: #fff; |
| border-radius: 22px; |
| padding: 56px 18px 22px; |
| box-shadow: 0 8px 18px rgba(0,0,0,.08); |
| } |
|
|
| .qr-avatar-wrap { |
| position: absolute; |
| top: -28px; |
| left: 50%; |
| transform: translateX(-50%); |
| width: 56px; height: 56px; |
| border-radius: 9999px; |
| border: 3px solid #fff; |
| overflow: hidden; |
| box-shadow: 0 6px 12px rgba(0,0,0,.12); |
| } |
| .qr-avatar { width:100%; height:100%; object-fit: cover; } |
|
|
| .qr-card-inner { display:flex; flex-direction: column; align-items:center; gap: 12px; } |
| .qr-name { font-weight: 700; color:#111827; margin-top: -6px; } |
| .qr-code-holder { padding: 6px 0 2px; } |
| .qr-caption { color:#9ca3af; font-size: .8rem; text-align:center; } |
| .qr-brand { display:flex; align-items:center; gap:8px; color:#111827; font-weight:700; } |
| .qr-brand img { width:18px; height:18px; } |
| .qr-bg-help { text-align:center; color:#fef3c7; font-size: .78rem; margin-top: 10px; } |
|
|
| @media (max-width: 480px) { |
| .qr-phone-bg { padding: 44px 14px 16px; border-radius: 28px; height: auto; } |
| .qr-card-v2 { padding: 52px 14px 18px; border-radius: 20px; } |
| } |
|
|
| |
| .qr-topbar { |
| position: absolute; |
| top: 10px; |
| left: 10px; |
| right: 10px; |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| color: rgba(255,255,255,0.95); |
| padding: 8px; |
| } |
| .qr-topbar button { background: transparent; border: 0; color: inherit; padding: 8px; cursor: pointer; transition: opacity 0.2s; } |
| .qr-topbar button:hover { opacity: 0.7; } |
|
|
| |
| .qr-share-sheet { |
| position: relative; |
| width: 380px; |
| max-width: 100%; |
| margin: 10px auto 0; |
| background: #fff; |
| border-radius: 18px; |
| box-shadow: 0 -8px 24px rgba(0,0,0,.22); |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| align-items: start; |
| gap: 12px 16px; |
| padding: 12px 16px 14px; |
| font-family: var(--font-inter), var(--font-geist-sans), system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; |
| } |
|
|
| .qr-share-sheet .qr-close { |
| position: absolute; |
| right: 10px; |
| top: 8px; |
| border: 0; |
| background: transparent; |
| color: #111827; |
| opacity: .7; |
| font-size: 18px; |
| } |
|
|
| .qr-download-group { display:flex; flex-direction: column; gap: 8px; } |
| .qr-download-actions { display:flex; gap: 12px; } |
| .qr-download-item { display:flex; flex-direction: column; align-items: center; gap: 6px; } |
| .qr-action-text { font-size: 11px; color:#6b7280; } |
| .qr-circle { |
| width: 36px; height: 36px; border-radius: 9999px; display:flex; align-items:center; justify-content:center; |
| background: #f3f4f6; border: 1px solid #e5e7eb; color:#374151; |
| cursor: pointer; |
| } |
| .qr-share-group { display:flex; flex-direction: column; gap: 8px; } |
| .qr-share-label { font-size: 12px; color:#6b7280; margin-left: 0; text-align: left; letter-spacing: .02em; font-weight: 600; } |
| .qr-share-actions { display:flex; gap: 14px; } |
|
|
| |
| .qr-color-picker { |
| position: relative; |
| width: 380px; |
| max-width: 100%; |
| margin: 12px auto 0; |
| background: #fff; |
| border-radius: 18px; |
| box-shadow: 0 -8px 24px rgba(0,0,0,.22); |
| padding: 16px; |
| font-family: var(--font-inter), var(--font-geist-sans), system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; |
| animation: slideUp 0.3s ease; |
| } |
|
|
| .qr-color-picker-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| margin-bottom: 16px; |
| } |
|
|
| .qr-color-picker-header h3 { |
| font-size: 16px; |
| font-weight: 700; |
| color: #111827; |
| margin: 0; |
| } |
|
|
| .qr-color-close { |
| background: transparent; |
| border: none; |
| font-size: 24px; |
| color: #6b7280; |
| cursor: pointer; |
| padding: 0; |
| width: 24px; |
| height: 24px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| transition: color 0.2s; |
| } |
|
|
| .qr-color-close:hover { |
| color: #111827; |
| } |
|
|
| .qr-color-section { |
| margin-bottom: 16px; |
| } |
|
|
| .qr-color-section:last-child { |
| margin-bottom: 0; |
| } |
|
|
| .qr-color-section h4 { |
| font-size: 13px; |
| font-weight: 600; |
| color: #6b7280; |
| margin: 0 0 10px 0; |
| text-transform: uppercase; |
| letter-spacing: 0.05em; |
| } |
|
|
| .qr-color-grid { |
| display: grid; |
| grid-template-columns: repeat(4, 1fr); |
| gap: 10px; |
| } |
|
|
| .qr-color-swatch { |
| width: 100%; |
| aspect-ratio: 1; |
| border-radius: 12px; |
| border: 2px solid transparent; |
| cursor: pointer; |
| transition: all 0.2s; |
| position: relative; |
| } |
|
|
| .qr-color-swatch:hover { |
| transform: scale(1.05); |
| box-shadow: 0 4px 12px rgba(0,0,0,0.15); |
| } |
|
|
| .qr-color-swatch.active { |
| border-color: #111827; |
| box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827; |
| } |
|
|
| .qr-color-swatch.active::after { |
| content: '✓'; |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| transform: translate(-50%, -50%); |
| color: white; |
| font-size: 18px; |
| font-weight: bold; |
| text-shadow: 0 1px 3px rgba(0,0,0,0.5); |
| } |
|
|