@@ -155,6 +155,7 @@ func wishHTMLHandler(w http.ResponseWriter, r *http.Request) {
155
155
body {
156
156
font-family: "Roboto Condensed", sans-serif;
157
157
background-color: #58B19F;
158
+ min-height: 100vh;
158
159
}
159
160
#quote-container {
160
161
margin: 10px auto;
@@ -168,28 +169,31 @@ func wishHTMLHandler(w http.ResponseWriter, r *http.Request) {
168
169
color: #333;
169
170
}
170
171
#quote-card {
171
- margin: 20px auto;
172
+ background-color: #D6A2E8; /* White background */
173
+ border-radius: 15px; /* Rounded corners */
174
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
175
+ padding: 20px;
176
+ margin-top: 20px;
172
177
}
173
178
pre {
174
179
font-family: monospace;
175
180
font-size: 14px;
176
- background-color: #192a56 ;
177
- color: #fdcb6e ;
178
- text-shadow: 0 0 3px #FFC312 ;
181
+ background-color: #3d3d3d ;
182
+ color: #ecf0f1 ;
183
+ text-shadow: 0 0 3px #ecf0f1 ;
179
184
padding: 20px;
180
- border-radius: 5px;
185
+ border-radius: 10px;
181
186
word-wrap: break-word;
182
187
overflow-x: auto;
183
188
line-height: inherit;
184
189
position: relative;
185
- white-space: pre-wrap; /* Ensure ASCII art is preserved */
186
190
}
187
191
.copy-icon {
188
192
position: absolute;
189
- top: 10px ;
190
- right: 10px ;
193
+ top: 5px ;
194
+ right: 5px ;
191
195
cursor: pointer;
192
- color: #fdcb6e ;
196
+ color: #ecf0f1 ;
193
197
}
194
198
.notification {
195
199
font-family: "Roboto Condensed", sans-serif;
@@ -208,7 +212,8 @@ func wishHTMLHandler(w http.ResponseWriter, r *http.Request) {
208
212
margin: 20px auto;
209
213
padding: 20px;
210
214
background-color: #4b4b4b;
211
- border-radius: 5px;
215
+ border-radius: 15px;
216
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
212
217
max-width: 500px;
213
218
}
214
219
.form-container .field {
@@ -218,65 +223,61 @@ func wishHTMLHandler(w http.ResponseWriter, r *http.Request) {
218
223
.form-container .input,
219
224
.form-container .button {
220
225
font-family: "Roboto Condensed", sans-serif;
226
+ border-radius: 10px;
221
227
width: 100%%;
222
228
}
223
229
.form-container .button {
224
230
font-family: "Roboto Condensed", sans-serif;
225
- background-color: #4a90e2;
231
+ background-color: #25d366;
226
232
border-color: transparent;
227
233
color: #fff;
228
234
}
229
235
.form-container .button:hover {
230
- background-color: #357abd ;
236
+ background-color: #1ebd74 ;
231
237
}
232
238
</style>
233
239
</head>
234
240
<body>
235
241
236
242
<section class="section">
237
243
<div class="container">
238
- <div id="quote-card" class="card">
239
- <div id="quote-container">
240
- <div class="container">
241
- <div class="columns is-centered">
242
- <div class="column is-half">
243
- <div class="card">
244
- <div class="card-image">
245
- <figure class="image">
246
- <img src="https://img.sanweb.info/friend/friend?name=%s" alt="Happy Friendship Day" loading="lazy">
247
- </figure>
248
- </div>
249
- </div>
250
- </div>
251
- </div>
252
- <div class="buttons is-centered">
253
- <a class="button is-warning is-rounded" href="https://img.sanweb.info/dl/file?url=https://img.sanweb.info/friend/friend?name=%s" target="_blank" rel="nofollow noopener"><i class="fa fa-download" aria-hidden="true"></i> Download Image</a>
244
+ <div class="columns is-centered">
245
+ <div class="column is-half">
246
+ <div class="card">
247
+ <div class="card-image">
248
+ <figure class="image">
249
+ <img src="https://img.sanweb.info/friend/friend?name=%s" alt="Happy Friendship Day" loading="lazy">
250
+ </figure>
254
251
</div>
255
- <pre id="ascii-art">
252
+ </div>
253
+ </div>
254
+ </div>
255
+ <div class="buttons is-centered">
256
+ <a class="button is-warning is-rounded" href="https://img.sanweb.info/dl/file?url=https://img.sanweb.info/friend/friend?name=%s" target="_blank" rel="nofollow noopener">
257
+ <i class="fa fa-download" aria-hidden="true"></i> Download Image
258
+ </a>
259
+ </div>
260
+ <pre id="ascii-art">
256
261
%s
257
262
<span class="icon copy-icon" onclick="copyToClipboard()">
258
263
<i class="fas fa-copy"></i>
259
264
</span>
260
- </pre>
261
- <br>
262
- </div>
263
- </div>
264
- </div>
265
+ </pre>
265
266
<br>
266
- <pre>$ curl -G --data-urlencode "name=%s" %s<br><br>$ http -b GET "%s" "name==%s"<br>< /pre>
267
+ <pre>$ curl -G --data-urlencode "name=%s" %s<br><br>$ http -b GET "%s" "name==%s"</pre>
267
268
<br>
268
269
<div class="form-container">
269
270
<h2 class="title is-4 has-text-centered has-text-light">Create Your Greeting</h2>
270
271
<form action="/wish/web" method="get" onsubmit="sanitizeInput(event)">
271
272
<div class="field">
272
- <label class="label has-text-success has-text-centered" for="name">Your Name</label>
273
+ <label class="label has-text-warning has-text-centered" for="name">Your Name</label>
273
274
<div class="control">
274
- <input class="input is-rounded " type="text" id="name" name="name" placeholder="Enter your name" minlength="2" maxlength="36" required>
275
+ <input class="input" type="text" id="name" name="name" placeholder="Enter your name" minlength="2" maxlength="36" required>
275
276
</div>
276
277
</div>
277
278
<div class="field">
278
279
<div class="control">
279
- <button class="button is-primary is-rounded " type="submit">Generate Greeting</button>
280
+ <button class="button is-primary" type="submit">Generate Greeting</button>
280
281
</div>
281
282
</div>
282
283
</form>
0 commit comments