Spaces:
Running
Running
Update index.html
Browse files- index.html +74 -52
index.html
CHANGED
|
@@ -54,52 +54,52 @@ tailwind.config = {
|
|
| 54 |
}
|
| 55 |
}
|
| 56 |
</script>
|
| 57 |
-
<link href="https://fonts.googleapis.com/css2?family=
|
| 58 |
<style>
|
| 59 |
* { box-sizing: border-box; }
|
| 60 |
-
body { font-family: '
|
| 61 |
|
| 62 |
body {
|
| 63 |
-
--bg: #
|
| 64 |
-
--surface: #
|
| 65 |
-
--border: #
|
| 66 |
-
--mist: #
|
| 67 |
-
--fog: #
|
| 68 |
-
--ghost: #
|
| 69 |
-
--pearl: #
|
| 70 |
-
--cream: #
|
| 71 |
-
--accent: #
|
| 72 |
-
--accent2: #
|
| 73 |
-
--ink: #
|
| 74 |
-
--user-bg: #
|
| 75 |
-
--user-text: #
|
| 76 |
-
--danger: #
|
| 77 |
-
--safe: #
|
| 78 |
-
--prose: #
|
| 79 |
-
--code-bg: rgba(
|
| 80 |
-
--code-col: #
|
| 81 |
-
--pre-bg: #
|
| 82 |
}
|
| 83 |
body.light {
|
| 84 |
-
--bg: #
|
| 85 |
-
--surface: #
|
| 86 |
-
--border: #
|
| 87 |
-
--mist: #
|
| 88 |
-
--fog: #
|
| 89 |
-
--ghost: #
|
| 90 |
-
--pearl: #
|
| 91 |
-
--cream: #
|
| 92 |
-
--accent: #
|
| 93 |
-
--accent2: #
|
| 94 |
-
--ink: #
|
| 95 |
-
--user-bg: #
|
| 96 |
-
--user-text: #
|
| 97 |
-
--danger: #
|
| 98 |
-
--safe: #
|
| 99 |
-
--prose: #
|
| 100 |
-
--code-bg: rgba(
|
| 101 |
-
--code-col: #
|
| 102 |
-
--pre-bg: #
|
| 103 |
}
|
| 104 |
|
| 105 |
body { background: var(--bg); color: var(--pearl); }
|
|
@@ -128,31 +128,54 @@ tailwind.config = {
|
|
| 128 |
.from-amber { --tw-gradient-from: var(--accent) !important; }
|
| 129 |
.to-ember { --tw-gradient-to: var(--accent2) !important; }
|
| 130 |
.bg-rose { background: var(--danger) !important; }
|
| 131 |
-
.hover\:text-rose:hover
|
| 132 |
-
.hover\:text-sage:hover
|
| 133 |
.hover\:text-pearl:hover { color: var(--pearl) !important; }
|
| 134 |
textarea, input, select { background: var(--mist); color: var(--cream); }
|
| 135 |
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
.prose-msg p { margin: 0 0 0.6em; } .prose-msg p:last-child { margin-bottom: 0; }
|
| 138 |
-
.prose-msg code { font-family: '
|
| 139 |
-
.prose-msg pre { background: var(--pre-bg); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; overflow-x: auto; margin: 0.6em 0; }
|
| 140 |
-
.prose-msg pre code { background: transparent; padding: 0; color: var(--prose); font-size: 0.82em; }
|
| 141 |
-
.prose-msg h1,.prose-msg h2,.prose-msg h3 { font-family: '
|
| 142 |
.prose-msg h1 { font-size: 1.25em; } .prose-msg h2 { font-size: 1.1em; } .prose-msg h3 { font-size: 1em; }
|
| 143 |
.prose-msg ul, .prose-msg ol { padding-left: 1.25em; margin: 0.4em 0 0.6em; }
|
|
|
|
| 144 |
.prose-msg li { margin: 0.2em 0; }
|
| 145 |
.prose-msg blockquote { border-left: 2px solid var(--accent); padding-left: 0.75em; color: var(--ghost); margin: 0.5em 0; font-style: italic; }
|
| 146 |
.prose-msg a { color: var(--accent); text-decoration: underline; }
|
| 147 |
.prose-msg strong { color: var(--cream); font-weight: 500; }
|
| 148 |
.prose-msg table { border-collapse: collapse; width: 100%; margin: 0.5em 0; font-size: 0.85em; }
|
| 149 |
-
.prose-msg th { background: var(--mist); color: var(--cream); padding: 5px 8px; text-align: left; }
|
| 150 |
.prose-msg td { border-top: 1px solid var(--border); padding: 5px 8px; }
|
| 151 |
|
| 152 |
.prose-user { line-height: 1.65; color: var(--user-text); }
|
| 153 |
.prose-user p { margin: 0 0 0.5em; } .prose-user p:last-child { margin-bottom: 0; }
|
| 154 |
-
.prose-user code { background: rgba(
|
| 155 |
-
.prose-user pre { background: rgba(0,0,0,0.15); border-radius: 5px; padding: 10px 12px; overflow-x: auto; margin: 0.5em 0; }
|
| 156 |
.prose-user strong { font-weight: 500; }
|
| 157 |
|
| 158 |
textarea { resize: none; overflow: hidden; }
|
|
@@ -162,8 +185,7 @@ tailwind.config = {
|
|
| 162 |
.dot-2 { animation: blink 1.2s 0.2s infinite; }
|
| 163 |
.dot-3 { animation: blink 1.2s 0.4s infinite; }
|
| 164 |
select { -webkit-appearance: none; appearance: none; }
|
| 165 |
-
textarea:focus, input:focus, select:focus { outline: none; box-shadow: 0 0 0 1.5px var(--accent); }
|
| 166 |
-
#input-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
|
| 167 |
@media (max-width: 768px) { main { padding-bottom: 5vh; } }
|
| 168 |
</style>
|
| 169 |
</head>
|
|
|
|
| 54 |
}
|
| 55 |
}
|
| 56 |
</script>
|
| 57 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Syne:wght@400;700;800&display=swap" rel="stylesheet">
|
| 58 |
<style>
|
| 59 |
* { box-sizing: border-box; }
|
| 60 |
+
body { font-family: 'Inter', sans-serif; }
|
| 61 |
|
| 62 |
body {
|
| 63 |
+
--bg: #080e1a;
|
| 64 |
+
--surface: #0d1526;
|
| 65 |
+
--border: #1a2a45;
|
| 66 |
+
--mist: #152035;
|
| 67 |
+
--fog: #3a5580;
|
| 68 |
+
--ghost: #6a90c0;
|
| 69 |
+
--pearl: #a0c0e8;
|
| 70 |
+
--cream: #d0e4f8;
|
| 71 |
+
--accent: #4a9eff;
|
| 72 |
+
--accent2: #2a7ee0;
|
| 73 |
+
--ink: #080e1a;
|
| 74 |
+
--user-bg: #1a4a8a;
|
| 75 |
+
--user-text: #d0e4f8;
|
| 76 |
+
--danger: #e05050;
|
| 77 |
+
--safe: #40a880;
|
| 78 |
+
--prose: #a0c0e8;
|
| 79 |
+
--code-bg: rgba(74,158,255,0.08);
|
| 80 |
+
--code-col: #60c0ff;
|
| 81 |
+
--pre-bg: #060c18;
|
| 82 |
}
|
| 83 |
body.light {
|
| 84 |
+
--bg: #eaf2ff;
|
| 85 |
+
--surface: #ddeaf8;
|
| 86 |
+
--border: #b8d0f0;
|
| 87 |
+
--mist: #ccdff5;
|
| 88 |
+
--fog: #6090c0;
|
| 89 |
+
--ghost: #3a6090;
|
| 90 |
+
--pearl: #1a3a6a;
|
| 91 |
+
--cream: #0a1a3a;
|
| 92 |
+
--accent: #1a60d0;
|
| 93 |
+
--accent2: #0a48b0;
|
| 94 |
+
--ink: #eaf2ff;
|
| 95 |
+
--user-bg: #1a60d0;
|
| 96 |
+
--user-text: #eaf2ff;
|
| 97 |
+
--danger: #c03030;
|
| 98 |
+
--safe: #208860;
|
| 99 |
+
--prose: #1a3a6a;
|
| 100 |
+
--code-bg: rgba(26,96,208,0.07);
|
| 101 |
+
--code-col: #0a48b0;
|
| 102 |
+
--pre-bg: #d8eaf8;
|
| 103 |
}
|
| 104 |
|
| 105 |
body { background: var(--bg); color: var(--pearl); }
|
|
|
|
| 128 |
.from-amber { --tw-gradient-from: var(--accent) !important; }
|
| 129 |
.to-ember { --tw-gradient-to: var(--accent2) !important; }
|
| 130 |
.bg-rose { background: var(--danger) !important; }
|
| 131 |
+
.hover\:text-rose:hover { color: var(--danger) !important; }
|
| 132 |
+
.hover\:text-sage:hover { color: var(--safe) !important; }
|
| 133 |
.hover\:text-pearl:hover { color: var(--pearl) !important; }
|
| 134 |
textarea, input, select { background: var(--mist); color: var(--cream); }
|
| 135 |
|
| 136 |
+
/* Subtle starfield in dark mode */
|
| 137 |
+
body:not(.light) {
|
| 138 |
+
background-image:
|
| 139 |
+
radial-gradient(1px 1px at 20% 30%, rgba(160,200,255,0.4) 0%, transparent 100%),
|
| 140 |
+
radial-gradient(1px 1px at 75% 15%, rgba(160,200,255,0.3) 0%, transparent 100%),
|
| 141 |
+
radial-gradient(1px 1px at 55% 70%, rgba(160,200,255,0.25) 0%, transparent 100%),
|
| 142 |
+
radial-gradient(1px 1px at 90% 55%, rgba(160,200,255,0.2) 0%, transparent 100%),
|
| 143 |
+
radial-gradient(1px 1px at 10% 85%, rgba(160,200,255,0.2) 0%, transparent 100%);
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
/* Glowing accent on sidebar top */
|
| 147 |
+
body:not(.light) #sidebar::before {
|
| 148 |
+
content: '';
|
| 149 |
+
position: absolute;
|
| 150 |
+
top: 0; left: 0; right: 0;
|
| 151 |
+
height: 1px;
|
| 152 |
+
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
| 153 |
+
opacity: 0.5;
|
| 154 |
+
}
|
| 155 |
+
#sidebar { position: relative; }
|
| 156 |
+
|
| 157 |
+
.font-display { font-family: 'Syne', sans-serif !important; }
|
| 158 |
+
|
| 159 |
+
.prose-msg { line-height: 1.7; color: var(--prose); }
|
| 160 |
.prose-msg p { margin: 0 0 0.6em; } .prose-msg p:last-child { margin-bottom: 0; }
|
| 161 |
+
.prose-msg code { font-family: 'Intel One Mono', 'Fira Code', monospace; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.875em; color: var(--code-col); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
|
| 162 |
+
.prose-msg pre { background: var(--pre-bg); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 6px; padding: 12px 14px; overflow-x: auto; margin: 0.6em 0; }
|
| 163 |
+
.prose-msg pre code { background: transparent; border: none; padding: 0; color: var(--prose); font-size: 0.82em; }
|
| 164 |
+
.prose-msg h1,.prose-msg h2,.prose-msg h3 { font-family: 'Syne', sans-serif; color: var(--cream); margin: 0.8em 0 0.3em; font-weight: 700; }
|
| 165 |
.prose-msg h1 { font-size: 1.25em; } .prose-msg h2 { font-size: 1.1em; } .prose-msg h3 { font-size: 1em; }
|
| 166 |
.prose-msg ul, .prose-msg ol { padding-left: 1.25em; margin: 0.4em 0 0.6em; }
|
| 167 |
+
.prose-msg li::marker { color: var(--accent); }
|
| 168 |
.prose-msg li { margin: 0.2em 0; }
|
| 169 |
.prose-msg blockquote { border-left: 2px solid var(--accent); padding-left: 0.75em; color: var(--ghost); margin: 0.5em 0; font-style: italic; }
|
| 170 |
.prose-msg a { color: var(--accent); text-decoration: underline; }
|
| 171 |
.prose-msg strong { color: var(--cream); font-weight: 500; }
|
| 172 |
.prose-msg table { border-collapse: collapse; width: 100%; margin: 0.5em 0; font-size: 0.85em; }
|
| 173 |
+
.prose-msg th { background: var(--mist); color: var(--cream); padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--accent); }
|
| 174 |
.prose-msg td { border-top: 1px solid var(--border); padding: 5px 8px; }
|
| 175 |
|
| 176 |
.prose-user { line-height: 1.65; color: var(--user-text); }
|
| 177 |
.prose-user p { margin: 0 0 0.5em; } .prose-user p:last-child { margin-bottom: 0; }
|
| 178 |
+
.prose-user code { background: rgba(255,255,255,0.1); padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.875em; }
|
|
|
|
| 179 |
.prose-user strong { font-weight: 500; }
|
| 180 |
|
| 181 |
textarea { resize: none; overflow: hidden; }
|
|
|
|
| 185 |
.dot-2 { animation: blink 1.2s 0.2s infinite; }
|
| 186 |
.dot-3 { animation: blink 1.2s 0.4s infinite; }
|
| 187 |
select { -webkit-appearance: none; appearance: none; }
|
| 188 |
+
textarea:focus, input:focus, select:focus { outline: none; box-shadow: 0 0 0 1.5px var(--accent), 0 0 12px color-mix(in srgb, var(--accent) 20%, transparent); }
|
|
|
|
| 189 |
@media (max-width: 768px) { main { padding-bottom: 5vh; } }
|
| 190 |
</style>
|
| 191 |
</head>
|