Skip to content

Commit 81fb39d

Browse files
author
Mikel Echeverria
committed
chore: Update index.html with model selection feature
1 parent f8cff4b commit 81fb39d

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

index.html

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@
315315
height: auto;
316316
}
317317

318+
.back-button {
319+
position: fixed;
320+
bottom: 20px;
321+
left: 20px;
322+
}
323+
318324
.back-button__link {
319325
color: #9c9c9c;
320326
text-decoration: none;
@@ -328,10 +334,43 @@
328334
transition: all 0.3s ease-in-out;
329335
}
330336

337+
.model-select-container {
338+
display: flex;
339+
justify-content: flex-end;
340+
align-items: center;
341+
margin-bottom: 20px;
342+
}
343+
344+
.model-select {
345+
position: fixed;
346+
top: 20px;
347+
right: 20px;
348+
padding: 10px;
349+
border: none;
350+
border-radius: 15px;
351+
background-color: var(--input-background);
352+
color: var(--text-color);
353+
font-size: 1rem;
354+
z-index: 1;
355+
}
356+
357+
.model-select:focus {
358+
outline: none;
359+
}
360+
361+
.model-select option {
362+
background-color: var(--input-background);
363+
color: var(--text-color);
364+
}
365+
331366
@media (max-width: 768px) {
332367
.back-button {
333-
bottom: 10px;
334-
left: 10px;
368+
display: none;
369+
}
370+
371+
.model-select {
372+
position: static;
373+
margin: 0 auto;
335374
}
336375
}
337376
</style>
@@ -342,6 +381,11 @@ <h1>ChatGPT 100% local con WebGPU</h1>
342381
<div class="creditos">
343382
Por <a href="https://mikeldev.com" target="_blank" rel="noopener noreferrer">Mikel Echeverria</a>
344383
</div>
384+
<div class="model-select-container">
385+
<select id="model-select" class="model-select">
386+
<option selected disabled value="unselected">Seleccionar modelo</option>
387+
</select>
388+
</div>
345389
<main>
346390
<ul id="chat-messages">
347391
<li class="message bot">

0 commit comments

Comments
 (0)