Last active
March 27, 2025 19:17
-
-
Save codigoconjuan/b1d93f23416c14a8327f536d7ef526b7 to your computer and use it in GitHub Desktop.
Formulario para generar con IA en Vue 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
</script> | |
<template> | |
<h1 class="text-6xl font-extrabold">Generar Receta con IA</h1> | |
<div class="max-w-4xl mx-auto"> | |
<form | |
class='flex flex-col space-y-3 py-10' | |
> | |
<div class="relative"> | |
<input | |
name="prompt" | |
id="prompt" | |
class="border bg-white p-4 rounded-lg w-full border-slate-800" | |
placeholder="Genera una receta con ingredientes. Ej. Bebida con Tequila y Fresa" | |
/> | |
<button | |
type="submit" | |
aria-label="Enviar" | |
class=" cursor-pointer absolute top-1/2 right-5 transform -translate-x-1/2 -translate-y-1/2" | |
> | |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" | |
stroke="currentColor" class="w-10 h-10"> | |
<path strokeLinecap="round" strokeLinejoin="round" | |
d="m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /> | |
</svg> | |
</button> | |
</div> | |
</form> | |
<div class="py-10 whitespace-pre-wrap"> | |
</div> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment