Spaces:
Sleeping
Sleeping
Download frontend/src/index.css from manojkumarsh/pdfbazaar: direct link, hf CLI and curl.
- Browser
- Download file 13.5 kB
-
https://huggingface.co/spaces/manojkumarsh/pdfbazaar/resolve/main/frontend/src/index.css
- Command line
-
hf download hf://spaces/manojkumarsh/pdfbazaar/frontend/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/manojkumarsh/pdfbazaar/resolve/main/frontend/src/index.css
13.5 kB
| :root { | |
| --primary: #4f46e5; | |
| --primary-hover: #4338ca; | |
| --bg-color: #f8fafc; | |
| --panel-bg: #ffffff; | |
| --text-primary: #0f172a; | |
| --text-secondary: #64748b; | |
| --border-color: #e2e8f0; | |
| --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); | |
| --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| --header-height: 72px; | |
| --radius-lg: 12px; | |
| --transition: all 0.2s ease-in-out; | |
| } | |
| /* Spin animation for loading spinner */ | |
| @keyframes spin { | |
| from { | |
| transform: rotate(0deg); | |
| } | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| .animate-spin { | |
| animation: spin 0.8s linear infinite; | |
| display: inline-block; | |
| } | |
| /* Indeterminate progress bar animation */ | |
| @keyframes indeterminate { | |
| 0% { | |
| transform: translateX(-250%); | |
| } | |
| 100% { | |
| transform: translateX(350%); | |
| } | |
| } | |
| /* Shimmer for upload progress bar */ | |
| @keyframes shimmer { | |
| 0% { | |
| left: -60%; | |
| } | |
| 100% { | |
| left: 110%; | |
| } | |
| } | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| background-color: var(--bg-color); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| text-rendering: optimizeSpeed; | |
| } | |
| h1, | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6 { | |
| font-weight: 700; | |
| line-height: 1.2; | |
| } | |
| a { | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| button { | |
| cursor: pointer; | |
| border: none; | |
| font-family: 'Roboto', sans-serif; | |
| transition: var(--transition); | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 20px; | |
| } | |
| /* Navbar */ | |
| .navbar { | |
| height: var(--header-height); | |
| background: rgba(255, 255, 255, 0.7); | |
| backdrop-filter: blur(12px) saturate(180%); | |
| -webkit-backdrop-filter: blur(12px) saturate(180%); | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.3); | |
| display: flex; | |
| align-items: center; | |
| position: sticky; | |
| top: 0; | |
| z-index: 50; | |
| } | |
| .nav-container { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| width: 100%; | |
| } | |
| .nav-brand { | |
| font-weight: 900; | |
| font-size: 26px; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| background: linear-gradient(135deg, #1e293b 0%, #475569 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| letter-spacing: -0.8px; | |
| } | |
| .nav-brand-icon { | |
| color: var(--primary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .nav-links { | |
| display: flex; | |
| gap: 24px; | |
| align-items: center; | |
| margin-left: 32px; | |
| flex: 1; | |
| } | |
| .nav-link { | |
| font-weight: 600; | |
| color: #1d1d1f; | |
| transition: var(--transition); | |
| font-size: 14px; | |
| letter-spacing: 0.3px; | |
| } | |
| .nav-link:hover { | |
| color: var(--primary); | |
| } | |
| .nav-actions { | |
| display: flex; | |
| gap: 16px; | |
| align-items: center; | |
| } | |
| .btn-login { | |
| font-weight: 500; | |
| font-size: 14px; | |
| color: #333333; | |
| background: transparent; | |
| padding: 8px 12px; | |
| } | |
| .btn-login:hover { | |
| color: var(--primary); | |
| } | |
| .btn-signup { | |
| background: var(--primary); | |
| color: white; | |
| padding: 8px 16px; | |
| border-radius: 4px; | |
| font-weight: 500; | |
| font-size: 14px; | |
| } | |
| .btn-signup:hover { | |
| background: var(--primary-hover); | |
| } | |
| /* Base button styling */ | |
| .btn-primary { | |
| background-color: var(--primary) ; | |
| color: #ffffff ; | |
| padding: 12px 24px; | |
| border-radius: 8px; | |
| font-weight: 500; | |
| font-size: 15px; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2); | |
| transition: var(--transition); | |
| } | |
| .btn-primary:hover { | |
| background: var(--primary-hover) ; | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3); | |
| } | |
| /* Hero Section */ | |
| .hero-wrapper { | |
| background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%); | |
| position: relative; | |
| overflow: hidden; | |
| padding: 80px 0 40px; | |
| } | |
| /* Subtle pattern for background */ | |
| .hero-wrapper::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-image: radial-gradient(#cbd5e1 1px, transparent 1px); | |
| background-size: 24px 24px; | |
| opacity: 0.5; | |
| z-index: 0; | |
| } | |
| .hero { | |
| position: relative; | |
| z-index: 1; | |
| text-align: center; | |
| max-width: 850px; | |
| margin: 0 auto; | |
| } | |
| .hero h1 { | |
| font-size: 52px; | |
| margin-bottom: 20px; | |
| color: #1d1d1f; | |
| font-weight: 800; | |
| letter-spacing: -1px; | |
| } | |
| .hero p { | |
| font-size: 22px; | |
| color: #333336; | |
| margin-bottom: 0; | |
| line-height: 1.5; | |
| font-weight: 500; | |
| } | |
| /* Tool Filters */ | |
| .tool-filters { | |
| display: flex; | |
| justify-content: center; | |
| gap: 12px; | |
| margin: 40px 0 20px; | |
| flex-wrap: wrap; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .filter-btn { | |
| padding: 10px 24px; | |
| border-radius: 99px; | |
| background: rgba(255, 255, 255, 0.8); | |
| backdrop-filter: blur(10px); | |
| border: 1px solid rgba(0, 0, 0, 0.06); | |
| color: #1d1d1f; | |
| font-weight: 600; | |
| font-size: 14px; | |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); | |
| transition: var(--transition); | |
| } | |
| .filter-btn:hover { | |
| background: #f5f5f5; | |
| } | |
| .filter-btn.active { | |
| background: #333333; | |
| color: white; | |
| border-color: #333333; | |
| } | |
| /* Tools Grid */ | |
| .tools-section { | |
| padding: 30px 0 80px; | |
| background: var(--bg-color); | |
| } | |
| /* Blend the background nicely */ | |
| .tools-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | |
| gap: 20px; | |
| } | |
| .tool-card { | |
| background: rgba(255, 255, 255, 0.8); | |
| backdrop-filter: blur(8px); | |
| border: 1px solid rgba(255, 255, 255, 0.5); | |
| border-radius: 20px; | |
| padding: 28px; | |
| display: flex; | |
| flex-direction: column; | |
| transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); | |
| } | |
| .tool-card:hover { | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| transform: translateY(-8px) scale(1.02); | |
| background: #ffffff; | |
| border-color: var(--primary); | |
| } | |
| .tool-icon { | |
| width: 54px; | |
| height: 54px; | |
| margin-bottom: 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 16px; | |
| } | |
| .icon-arrow-badge { | |
| position: absolute; | |
| bottom: -4px; | |
| right: -4px; | |
| background-color: white; | |
| border-radius: 50%; | |
| width: 20px; | |
| height: 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); | |
| } | |
| .tool-card h3 { | |
| font-size: 20px; | |
| margin-bottom: 10px; | |
| color: #1d1d1f; | |
| font-weight: 700; | |
| letter-spacing: -0.3px; | |
| } | |
| .tool-card p { | |
| font-size: 15px; | |
| color: var(--text-secondary); | |
| line-height: 1.5; | |
| flex-grow: 1; | |
| } | |
| /* Tool Page */ | |
| .tool-page { | |
| padding: 60px 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| flex: 1; | |
| } | |
| .tool-header { | |
| text-align: center; | |
| margin-bottom: 40px; | |
| } | |
| .tool-header h1 { | |
| font-size: 40px; | |
| margin-bottom: 16px; | |
| } | |
| .tool-header p { | |
| font-size: 20px; | |
| color: #555555; | |
| } | |
| /* Upload Area */ | |
| .upload-area { | |
| width: 100%; | |
| max-width: 800px; | |
| height: 350px; | |
| border: 2px dashed #818cf8; | |
| border-radius: 16px; | |
| background: #e0e7ff; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| position: relative; | |
| overflow: hidden; | |
| transition: var(--transition); | |
| } | |
| .upload-area:hover, | |
| .upload-area.active { | |
| background: #c7d2fe; | |
| border-color: var(--primary); | |
| transform: translateY(-2px); | |
| } | |
| .btn-upload { | |
| background-color: var(--primary) ; | |
| color: #ffffff ; | |
| border: none; | |
| border-radius: 8px; | |
| padding: 14px 36px; | |
| font-size: 16px; | |
| font-weight: 600; | |
| font-family: inherit; | |
| box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); | |
| pointer-events: auto; | |
| transition: var(--transition); | |
| } | |
| .btn-upload:hover { | |
| background: var(--primary-hover) ; | |
| box-shadow: 0 8px 16px rgba(79, 70, 229, 0.35); | |
| transform: translateY(-1px); | |
| } | |
| .upload-sub { | |
| font-size: 16px; | |
| color: #555555; | |
| margin-top: 24px; | |
| } | |
| /* iLovePDF-style File Preview Cards */ | |
| .preview-grid { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 20px; | |
| justify-content: center; | |
| align-items: flex-start; | |
| padding: 20px; | |
| } | |
| .file-preview-card { | |
| background: rgba(255, 255, 255, 0.7); | |
| backdrop-filter: blur(10px); | |
| border-radius: 16px; | |
| box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); | |
| border: 1px solid rgba(0, 0, 0, 0.05); | |
| padding: 24px 16px 16px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 12px; | |
| width: 140px; | |
| text-align: center; | |
| position: relative; | |
| transition: var(--transition); | |
| cursor: default; | |
| } | |
| .file-preview-card:hover { | |
| box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); | |
| transform: translateY(-4px); | |
| } | |
| .file-card-icon { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| filter: drop-shadow(0 3px 6px rgba(229, 50, 45, 0.2)); | |
| } | |
| .file-card-name { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: #333; | |
| word-break: break-all; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| line-height: 1.4; | |
| max-width: 100%; | |
| } | |
| .file-card-size { | |
| font-size: 11px; | |
| color: #999; | |
| font-weight: 400; | |
| } | |
| .file-card-remove { | |
| position: absolute; | |
| top: -8px; | |
| right: -8px; | |
| background: #ef4444; | |
| /* red-500 */ | |
| color: white; | |
| border: 2px solid white; | |
| border-radius: 8px; | |
| width: 26px; | |
| height: 26px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
| transition: var(--transition); | |
| opacity: 0; | |
| } | |
| .file-preview-card:hover .file-card-remove { | |
| opacity: 1; | |
| } | |
| .file-card-remove:hover { | |
| background: #dc2626; | |
| /* red-600 */ | |
| transform: translateY(-1px); | |
| } | |
| /* Add more files card */ | |
| .file-preview-add { | |
| background: transparent; | |
| border: 2px dashed rgba(0, 0, 0, 0.1); | |
| box-shadow: none; | |
| cursor: pointer; | |
| justify-content: center; | |
| min-height: 160px; | |
| } | |
| .file-preview-add:hover { | |
| border-color: rgba(0, 0, 0, 0.2); | |
| background: rgba(0, 0, 0, 0.02); | |
| transform: scale(1.02); | |
| } | |
| /* Result Page */ | |
| .result-box { | |
| background: white; | |
| border: 1px solid var(--border-color); | |
| border-radius: 16px; | |
| padding: 50px 40px; | |
| text-align: center; | |
| max-width: 600px; | |
| width: 100%; | |
| box-shadow: var(--card-shadow-hover); | |
| margin-top: 40px; | |
| } | |
| .btn-download { | |
| background-color: var(--primary) ; | |
| color: #ffffff ; | |
| padding: 14px 28px; | |
| border-radius: 8px; | |
| font-size: 16px; | |
| font-weight: 500; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 12px; | |
| margin: 24px 0; | |
| text-decoration: none; | |
| box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); | |
| transition: var(--transition); | |
| } | |
| .btn-download:hover { | |
| background: var(--primary-hover) ; | |
| transform: translateY(-1px); | |
| box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3); | |
| } | |
| /* Footer Group */ | |
| .footer { | |
| background: #fdfdfd; | |
| border-top: 1px solid #f0f0f0; | |
| padding: 60px 0 24px; | |
| margin-top: auto; | |
| } | |
| .footer-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 40px; | |
| margin-bottom: 40px; | |
| } | |
| .footer-col h4 { | |
| font-size: 16px; | |
| font-weight: 700; | |
| margin-bottom: 20px; | |
| color: var(--primary); | |
| } | |
| .footer-links { | |
| list-style: none; | |
| } | |
| .footer-links li { | |
| margin-bottom: 12px; | |
| } | |
| .footer-links a { | |
| color: #333333; | |
| font-size: 14px; | |
| } | |
| .footer-links a:hover { | |
| color: var(--primary); | |
| } | |
| /* Mobile Specific */ | |
| @media (max-width: 768px) { | |
| .nav-links { | |
| display: none; | |
| } | |
| .nav-brand span { | |
| font-size: 20px; | |
| } | |
| .footer-grid { | |
| grid-template-columns: 1fr; | |
| gap: 30px; | |
| } | |
| .footer-col[style*="gridColumn"] { | |
| grid-column: span 1 ; | |
| } | |
| .hero h1 { | |
| font-size: 32px; | |
| } | |
| .hero p { | |
| font-size: 16px; | |
| } | |
| .tool-filters { | |
| gap: 8px; | |
| padding: 0 10px; | |
| } | |
| .filter-btn { | |
| padding: 6px 14px; | |
| font-size: 13px; | |
| } | |
| } | |
| .workspace { | |
| width: 100%; | |
| display: flex; | |
| min-height: 500px; | |
| } | |
| .workspace-main { | |
| flex: 1; | |
| background: #fbfbfd; | |
| padding: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .workspace-sidebar { | |
| width: 320px; | |
| background: white; | |
| border-left: 1px solid #e0e0e0; | |
| padding: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .workspace-sidebar-title { | |
| font-size: 26px; | |
| font-weight: 800; | |
| color: #333333; | |
| margin-bottom: 24px; | |
| padding-bottom: 24px; | |
| border-bottom: 1px solid #e0e0e0; | |
| text-align: center; | |
| } | |
| .options-group { | |
| margin-bottom: 20px; | |
| background: #eef4ff; | |
| border: 1.5px solid #3b82f6; | |
| border-radius: 10px; | |
| padding: 16px; | |
| } | |
| .radio-label { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| padding: 12px; | |
| border: 1px solid #e0e0e0; | |
| border-radius: 8px; | |
| margin-bottom: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .radio-label:hover { | |
| background: #fdfdfd; | |
| border-color: var(--primary); | |
| } | |
| .radio-label input[type="radio"] { | |
| margin-top: 4px; | |
| } | |
| .input-field { | |
| width: 100%; | |
| padding: 12px; | |
| border: 1px solid #e0e0e0; | |
| border-radius: 8px; | |
| font-family: 'Roboto', sans-serif; | |
| font-size: 14px; | |
| margin-top: 8px; | |
| } | |
| .input-field:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| } | |
| /* Visibility Helpers for PageSpeed (avoid layout shifts) */ | |
| .desktop-only { | |
| display: none ; | |
| } | |
| @media (min-width: 769px) { | |
| .desktop-only { | |
| display: inline-flex ; | |
| } | |
| } | |
| .mobile-only { | |
| display: none ; | |
| } | |
| @media (max-width: 768px) { | |
| .mobile-only { | |
| display: inline-flex ; | |
| } | |
| } |