Spaces:
Sleeping
Sleeping
File size: 3,662 Bytes
0481514 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 900px;
margin: 0 auto;
background: white;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
text-align: center;
}
header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
header p {
opacity: 0.9;
font-size: 1.1em;
}
header code {
background: rgba(255, 255, 255, 0.2);
padding: 4px 8px;
border-radius: 4px;
}
main {
padding: 30px;
}
.prompt-section {
margin-bottom: 20px;
}
.prompt-section label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: #333;
}
#prompt {
width: 100%;
padding: 15px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1em;
font-family: inherit;
resize: vertical;
transition: border-color 0.3s;
}
#prompt:focus {
outline: none;
border-color: #667eea;
}
.settings-section {
margin-bottom: 20px;
}
details {
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 15px;
}
summary {
cursor: pointer;
font-weight: 600;
color: #667eea;
user-select: none;
}
summary:hover {
color: #764ba2;
}
.settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 15px;
}
.setting label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #555;
}
.setting input[type="range"] {
width: 100%;
cursor: pointer;
}
.button-section {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 30px;
}
.generate-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 15px 40px;
font-size: 1.1em;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.generate-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.generate-btn:active {
transform: translateY(0);
}
.generate-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.status {
font-size: 1.5em;
}
.output-section h3 {
color: #333;
margin-bottom: 15px;
}
.output {
background: #f8f9fa;
border: 2px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
min-height: 150px;
font-family: 'Courier New', monospace;
white-space: pre-wrap;
word-wrap: break-word;
line-height: 1.6;
color: #333;
}
.output.empty {
color: #999;
font-style: italic;
}
.output.error {
color: #dc3545;
background: #fff5f5;
border-color: #dc3545;
}
footer {
background: #f8f9fa;
padding: 20px;
text-align: center;
color: #666;
font-size: 0.9em;
}
footer code {
background: white;
padding: 4px 8px;
border-radius: 4px;
border: 1px solid #e0e0e0;
}
@media (max-width: 768px) {
header h1 {
font-size: 2em;
}
.settings-grid {
grid-template-columns: 1fr;
}
.button-section {
flex-direction: column;
align-items: stretch;
}
}
|