Spaces:
Build error
Build error
Upload styles/globals.css with huggingface_hub
Browse files- styles/globals.css +68 -4
styles/globals.css
CHANGED
|
@@ -7,32 +7,81 @@
|
|
| 7 |
@layer base {
|
| 8 |
html {
|
| 9 |
scroll-behavior: smooth;
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
body {
|
| 13 |
font-family: 'Inter', system-ui, sans-serif;
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
h1, h2, h3 {
|
| 17 |
font-family: 'Playfair Display', serif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
}
|
| 20 |
|
| 21 |
@layer components {
|
| 22 |
.btn-primary {
|
| 23 |
-
@apply bg-primary-600 hover:bg-primary-700 text-white font-medium py-3 px-6 rounded-
|
| 24 |
}
|
| 25 |
|
| 26 |
.btn-secondary {
|
| 27 |
-
@apply bg-white hover:bg-gray-50 text-primary-700 font-medium py-3 px-6 rounded-
|
| 28 |
}
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
.card {
|
| 31 |
-
@apply bg-white rounded-
|
| 32 |
}
|
| 33 |
|
| 34 |
.input-field {
|
| 35 |
-
@apply w-full px-4 py-3 border border-gray-300 rounded-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
}
|
| 38 |
|
|
@@ -49,4 +98,19 @@
|
|
| 49 |
radial-gradient(circle at 1px 1px, rgba(59, 111, 255, 0.1) 1px, transparent 0);
|
| 50 |
background-size: 20px 20px;
|
| 51 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
|
|
|
| 7 |
@layer base {
|
| 8 |
html {
|
| 9 |
scroll-behavior: smooth;
|
| 10 |
+
font-size: 16px;
|
| 11 |
}
|
| 12 |
|
| 13 |
body {
|
| 14 |
font-family: 'Inter', system-ui, sans-serif;
|
| 15 |
+
line-height: 1.6;
|
| 16 |
+
color: #374151;
|
| 17 |
+
background-color: #f9fafb;
|
| 18 |
}
|
| 19 |
|
| 20 |
h1, h2, h3 {
|
| 21 |
font-family: 'Playfair Display', serif;
|
| 22 |
+
line-height: 1.2;
|
| 23 |
+
letter-spacing: -0.025em;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/* Improved focus styles for accessibility */
|
| 27 |
+
*:focus {
|
| 28 |
+
outline: 2px solid #3b6fff;
|
| 29 |
+
outline-offset: 2px;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
/* Skip to content link for screen readers */
|
| 33 |
+
.skip-to-content {
|
| 34 |
+
position: absolute;
|
| 35 |
+
top: -40px;
|
| 36 |
+
left: 6px;
|
| 37 |
+
background: #000;
|
| 38 |
+
color: #fff;
|
| 39 |
+
padding: 8px;
|
| 40 |
+
text-decoration: none;
|
| 41 |
+
border-radius: 4px;
|
| 42 |
+
z-index: 9999;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.skip-to-content:focus {
|
| 46 |
+
top: 6px;
|
| 47 |
}
|
| 48 |
}
|
| 49 |
|
| 50 |
@layer components {
|
| 51 |
.btn-primary {
|
| 52 |
+
@apply bg-primary-600 hover:bg-primary-700 active:bg-primary-800 text-white font-medium py-3 px-6 rounded-xl transition-all duration-200 shadow-soft hover:shadow-medium focus:ring-4 focus:ring-primary-200 disabled:opacity-50 disabled:cursor-not-allowed transform hover:scale-105 active:scale-95;
|
| 53 |
}
|
| 54 |
|
| 55 |
.btn-secondary {
|
| 56 |
+
@apply bg-white hover:bg-gray-50 active:bg-gray-100 text-primary-700 font-medium py-3 px-6 rounded-xl border border-primary-200 hover:border-primary-300 transition-all duration-200 shadow-soft hover:shadow-medium focus:ring-4 focus:ring-primary-200 disabled:opacity-50 disabled:cursor-not-allowed transform hover:scale-105 active:scale-95;
|
| 57 |
}
|
| 58 |
|
| 59 |
+
.btn-ghost {
|
| 60 |
+
@apply text-gray-700 hover:text-primary-600 hover:bg-primary-50 font-medium py-2 px-4 rounded-lg transition-all duration-200 focus:ring-4 focus:ring-primary-200;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
.card {
|
| 64 |
+
@apply bg-white rounded-2xl shadow-soft hover:shadow-medium transition-all duration-300 border border-gray-100 hover:border-primary-200;
|
| 65 |
}
|
| 66 |
|
| 67 |
.input-field {
|
| 68 |
+
@apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-4 focus:ring-primary-200 focus:border-primary-500 outline-none transition-all duration-200 bg-white hover:border-gray-400;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.search-input {
|
| 72 |
+
@apply w-full pl-12 pr-4 py-4 border border-gray-300 rounded-xl focus:ring-4 focus:ring-primary-200 focus:border-primary-500 outline-none transition-all duration-200 bg-white hover:border-gray-400 text-gray-900 placeholder-gray-500;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.tag {
|
| 76 |
+
@apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-gray-100 text-gray-800 hover:bg-primary-100 hover:text-primary-800 transition-colors duration-200 cursor-pointer;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.category-card {
|
| 80 |
+
@apply bg-white rounded-2xl p-6 shadow-soft hover:shadow-medium transition-all duration-300 border border-gray-100 hover:border-primary-200 cursor-pointer group;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.prompt-card {
|
| 84 |
+
@apply bg-white rounded-xl p-6 shadow-soft hover:shadow-medium transition-all duration-300 border border-gray-100 hover:border-primary-200 group;
|
| 85 |
}
|
| 86 |
}
|
| 87 |
|
|
|
|
| 98 |
radial-gradient(circle at 1px 1px, rgba(59, 111, 255, 0.1) 1px, transparent 0);
|
| 99 |
background-size: 20px 20px;
|
| 100 |
}
|
| 101 |
+
|
| 102 |
+
.glass-effect {
|
| 103 |
+
background: rgba(255, 255, 255, 0.9);
|
| 104 |
+
backdrop-filter: blur(10px);
|
| 105 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.animate-float {
|
| 109 |
+
animation: float 3s ease-in-out infinite;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
@keyframes float {
|
| 113 |
+
0%, 100% { transform: translateY(0px); }
|
| 114 |
+
50% { transform: translateY(-10px); }
|
| 115 |
+
}
|
| 116 |
}
|