cleaned up mobile styling and updated input action component

This commit is contained in:
Edward Tirado Jr 2026-04-08 19:04:15 -05:00
parent 59fb81a42e
commit a8488f111f
11 changed files with 112 additions and 56 deletions

View file

@ -0,0 +1,47 @@
<script lang="ts" setup>
const model = defineModel<string>({default: ''});
defineProps<{
placeholder: string
buttonText: string
inputName: string
}>()
const emit = defineEmits(['action'])
</script>
<template>
<div class="form-group">
<input v-model="model"
:name="inputName"
:placeholder="placeholder"
type="text">
<button @click="emit('action')">{{ buttonText }}</button>
</div>
</template>
<style scoped>
button {
background-color: #4caf50;
color: white;
padding: .5rem 1rem;
border: none;
border-radius: 0 4px 4px 0;
}
input {
padding: .5rem;
border: 1px solid #ccc;
border-right: none;
border-radius: 4px 0 0 4px;
flex: 1;
}
.form-group {
display: flex;
}
</style>