Rates, Build
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s

This commit is contained in:
2023-12-04 20:04:46 +01:00
parent aff90ceb86
commit 148a010f4d
8 changed files with 99 additions and 18 deletions

View File

@@ -19,20 +19,19 @@ defineExpose({ focus: () => input.value.focus() });
</script>
<template>
<form>
<div class="flex items-center justify-center">
<div class="flex border-2 rounded">
<input type="text" class="px-4 py-2 w-80"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)" placeholder="Search...">
<button class="flex items-center justify-center px-4 border-l bg-slate-500">
<svg class="w-6 h-6 text-white" fill="currentColor" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24">
<path
d="M16.32 14.9l5.39 5.4a1 1 0 0 1-1.42 1.4l-5.38-5.38a8 8 0 1 1 1.41-1.41zM10 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" />
</svg>
</button>
<div class="flex items-center max-w-md mx-auto bg-white rounded-md">
<div class="w-full">
<input type="search" class="border-0 w-full px-4 py-1 text-gray-800 rounded-full focus:outline-none focus:ring-0"
placeholder="search" x-model="search">
</div>
<div>
<button type="submit" class="flex items-center bg-blue-500 justify-center w-12 h-12 text-white rounded-r-md">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
</button>
</div>
</div>
</div>
</form>
</template>