Download static/css/style.css from eslamrefai22/Animal_classifier_model: direct link, hf CLI and curl.
- Browser
- Download file 4.24 kB
-
https://huggingface.co/spaces/eslamrefai22/Animal_classifier_model/resolve/refs%2Fpr%2F1/static/css/style.css
- Command line
-
hf download hf://spaces/eslamrefai22/Animal_classifier_model@refs/pr/1/static/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/eslamrefai22/Animal_classifier_model/resolve/refs%2Fpr%2F1/static/css/style.css
4.24 kB
| @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Fraunces:ital,wght@0,600;0,700;1,600&display=swap'); | |
| :root { | |
| --sand: #EDE3D0; | |
| --sand-dark: #DCCBA6; | |
| --savanna-green: #5C6E4A; | |
| --clay: #B5652C; | |
| --charcoal: #2B2620; | |
| --cream-text: #FAF6EE; | |
| --stripe: #3A3530; | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| min-height: 100vh; | |
| background: var(--sand); | |
| background-image: | |
| repeating-linear-gradient(135deg, rgba(58,53,48,0.03) 0px, rgba(58,53,48,0.03) 2px, transparent 2px, transparent 14px); | |
| font-family: 'Cairo', sans-serif; | |
| color: var(--charcoal); | |
| display: flex; | |
| justify-content: center; | |
| padding: 48px 20px; | |
| } | |
| .page { | |
| width: 100%; | |
| max-width: 640px; | |
| } | |
| .hero { | |
| text-align: center; | |
| margin-bottom: 32px; | |
| } | |
| .eyebrow { | |
| display: inline-block; | |
| font-size: 12px; | |
| letter-spacing: 0.12em; | |
| text-transform: uppercase; | |
| color: var(--clay); | |
| font-weight: 700; | |
| border: 1.5px solid var(--clay); | |
| border-radius: 999px; | |
| padding: 4px 14px; | |
| margin-bottom: 18px; | |
| } | |
| .hero h1 { | |
| font-family: 'Fraunces', serif; | |
| font-weight: 700; | |
| font-size: clamp(32px, 5vw, 44px); | |
| margin: 0 0 10px; | |
| color: var(--charcoal); | |
| } | |
| .subtitle { | |
| color: #55503f; | |
| font-size: 16px; | |
| margin: 0 auto; | |
| max-width: 440px; | |
| line-height: 1.6; | |
| } | |
| .panel { | |
| background: var(--cream-text); | |
| border: 1px solid var(--sand-dark); | |
| border-radius: 18px; | |
| padding: 32px; | |
| box-shadow: 0 10px 30px rgba(43, 38, 32, 0.08); | |
| } | |
| .upload-form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 18px; | |
| } | |
| .dropzone { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| border: 2px dashed var(--sand-dark); | |
| border-radius: 14px; | |
| padding: 40px 20px; | |
| cursor: pointer; | |
| transition: border-color 0.2s ease, background 0.2s ease; | |
| background: #FFFDF8; | |
| } | |
| .dropzone:hover { | |
| border-color: var(--clay); | |
| background: #FFF8ED; | |
| } | |
| .dropzone-icon { font-size: 28px; } | |
| .dropzone-text { | |
| font-weight: 600; | |
| color: var(--charcoal); | |
| font-size: 15px; | |
| } | |
| .dropzone input[type="file"] { | |
| position: absolute; | |
| inset: 0; | |
| opacity: 0; | |
| cursor: pointer; | |
| } | |
| .preview-img { | |
| max-width: 100%; | |
| max-height: 220px; | |
| border-radius: 10px; | |
| object-fit: contain; | |
| box-shadow: 0 6px 18px rgba(43, 38, 32, 0.12); | |
| } | |
| .upload-status { | |
| margin: 0; | |
| text-align: center; | |
| font-size: 14px; | |
| font-weight: 700; | |
| color: var(--savanna-green); | |
| } | |
| .btn:disabled { | |
| opacity: 0.7; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| .btn { | |
| background: var(--savanna-green); | |
| color: var(--cream-text); | |
| border: none; | |
| border-radius: 10px; | |
| padding: 14px 20px; | |
| font-family: 'Cairo', sans-serif; | |
| font-weight: 700; | |
| font-size: 16px; | |
| cursor: pointer; | |
| transition: background 0.2s ease, transform 0.15s ease; | |
| } | |
| .btn:hover { | |
| background: #4a5a3b; | |
| transform: translateY(-1px); | |
| } | |
| .error { | |
| color: #A13B2A; | |
| background: #FBE9E3; | |
| border: 1px solid #E7B9A9; | |
| border-radius: 10px; | |
| padding: 10px 14px; | |
| margin-top: 16px; | |
| font-weight: 600; | |
| font-size: 14px; | |
| } | |
| .result { | |
| margin-top: 28px; | |
| display: grid; | |
| grid-template-columns: 140px 1fr; | |
| gap: 20px; | |
| align-items: center; | |
| padding-top: 24px; | |
| border-top: 1px dashed var(--sand-dark); | |
| } | |
| .result-image img { | |
| width: 100%; | |
| aspect-ratio: 1; | |
| object-fit: cover; | |
| border-radius: 12px; | |
| border: 3px solid var(--sand-dark); | |
| } | |
| .result-label { | |
| font-size: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| color: var(--clay); | |
| font-weight: 700; | |
| } | |
| .result-class { | |
| font-family: 'Fraunces', serif; | |
| font-size: 28px; | |
| margin: 4px 0 12px; | |
| color: var(--charcoal); | |
| } | |
| .confidence-bar { | |
| background: var(--sand-dark); | |
| border-radius: 999px; | |
| height: 8px; | |
| overflow: hidden; | |
| } | |
| .confidence-fill { | |
| height: 100%; | |
| background: var(--clay); | |
| border-radius: 999px; | |
| } | |
| .confidence-text { | |
| display: block; | |
| margin-top: 8px; | |
| font-size: 13px; | |
| color: #55503f; | |
| font-weight: 600; | |
| } | |
| .footer { | |
| text-align: center; | |
| margin-top: 24px; | |
| font-size: 13px; | |
| color: #8a8368; | |
| letter-spacing: 0.04em; | |
| } | |
| @media (max-width: 480px) { | |
| .result { | |
| grid-template-columns: 1fr; | |
| } | |
| .result-image img { | |
| max-width: 180px; | |
| margin: 0 auto; | |
| } | |
| } | |