akhaliq HF Staff commited on
Commit
ef3a68d
·
verified ·
1 Parent(s): 77ad024

Upload src/app.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. src/app.css +88 -55
src/app.css CHANGED
@@ -1,79 +1,112 @@
 
1
  :root {
2
- font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 1.5;
4
- font-weight: 400;
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- color-scheme: light dark;
7
- color: rgba(255, 255, 255, 0.87);
8
- background-color: #242424;
9
 
10
- font-synthesis: none;
11
- text-rendering: optimizeLegibility;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
 
 
14
  }
15
 
16
- a {
17
- font-weight: 500;
18
- color: #646cff;
19
- text-decoration: inherit;
20
  }
21
- a:hover {
22
- color: #535bf2;
 
23
  }
24
 
25
- body {
26
  margin: 0;
27
- display: flex;
28
- place-items: center;
29
- min-width: 320px;
30
- min-height: 100vh;
31
  }
32
 
33
- h1 {
34
- font-size: 3.2em;
35
- line-height: 1.1;
36
  }
37
 
38
- .card {
39
- padding: 2em;
 
 
 
40
  }
41
 
42
- #app {
43
- max-width: 1280px;
44
- margin: 0 auto;
45
- padding: 2rem;
46
- text-align: center;
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
 
49
- button {
50
- border-radius: 8px;
51
- border: 1px solid transparent;
52
- padding: 0.6em 1.2em;
53
- font-size: 1em;
54
- font-weight: 500;
55
- font-family: inherit;
56
- background-color: #1a1a1a;
57
- cursor: pointer;
58
- transition: border-color 0.25s;
59
  }
60
- button:hover {
61
- border-color: #646cff;
 
62
  }
63
- button:focus,
64
- button:focus-visible {
65
- outline: 4px auto -webkit-focus-ring-color;
 
 
 
66
  }
67
 
68
- @media (prefers-color-scheme: light) {
69
- :root {
70
- color: #213547;
71
- background-color: #ffffff;
 
 
 
 
 
 
72
  }
73
- a:hover {
74
- color: #747bff;
 
75
  }
76
- button {
77
- background-color: #f9f9f9;
 
78
  }
79
- }
 
1
+ /* src/app.css */
2
  :root {
3
+ --primary: #3b82f6;
4
+ --success: #10b981;
5
+ --danger: #ef4444;
6
+ --gray-50: #f9fafb;
7
+ --gray-100: #f3f4f6;
8
+ --gray-200: #e5e7eb;
9
+ --gray-300: #d1d5db;
10
+ --gray-400: #9ca3af;
11
+ --gray-500: #6b7280;
12
+ --gray-600: #4b5563;
13
+ --gray-700: #374151;
14
+ --gray-800: #1f2937;
15
+ --gray-900: #111827;
16
+ }
17
 
18
+ * {
19
+ box-sizing: border-box;
20
+ }
21
 
22
+ body {
23
+ margin: 0;
24
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
25
+ background-color: var(--gray-50);
26
+ color: var(--gray-900);
27
+ line-height: 1.5;
28
  }
29
 
30
+ .container {
31
+ max-width: 1200px;
32
+ margin: 0 auto;
33
+ padding: 2rem 1rem;
34
  }
35
+
36
+ header {
37
+ margin-bottom: 2rem;
38
  }
39
 
40
+ h1 {
41
  margin: 0;
42
+ font-size: 2rem;
43
+ font-weight: 700;
44
+ color: var(--gray-900);
 
45
  }
46
 
47
+ .subtitle {
48
+ margin: 0.25rem 0 0;
49
+ color: var(--gray-600);
50
  }
51
 
52
+ .grid {
53
+ display: grid;
54
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
55
+ gap: 1.5rem;
56
+ margin-bottom: 2rem;
57
  }
58
 
59
+ .loading, .error {
60
+ display: flex;
61
+ flex-direction: column;
62
+ align-items: center;
63
+ justify-content: center;
64
+ min-height: 400px;
65
+ color: var(--gray-500);
66
+ }
67
+
68
+ .spinner {
69
+ width: 40px;
70
+ height: 40px;
71
+ border: 4px solid var(--gray-200);
72
+ border-top: 4px solid var(--primary);
73
+ border-radius: 50%;
74
+ animation: spin 1s linear infinite;
75
  }
76
 
77
+ @keyframes spin {
78
+ 0% { transform: rotate(0deg); }
79
+ 100% { transform: rotate(360deg); }
 
 
 
 
 
 
 
80
  }
81
+
82
+ .error {
83
+ color: var(--danger);
84
  }
85
+
86
+ .chart-section {
87
+ background: white;
88
+ border-radius: 0.5rem;
89
+ padding: 1.5rem;
90
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
91
  }
92
 
93
+ .chart-section h2 {
94
+ margin: 0 0 1rem;
95
+ font-size: 1.25rem;
96
+ font-weight: 600;
97
+ color: var(--gray-900);
98
+ }
99
+
100
+ @media (max-width: 640px) {
101
+ .container {
102
+ padding: 1rem;
103
  }
104
+
105
+ h1 {
106
+ font-size: 1.5rem;
107
  }
108
+
109
+ .grid {
110
+ grid-template-columns: 1fr;
111
  }
112
+ }