improved styling for movie search and added some css variables for colors
This commit is contained in:
parent
8ebb55e31a
commit
338cd36166
11 changed files with 87 additions and 21 deletions
22
app/components/common/button-action.vue
Normal file
22
app/components/common/button-action.vue
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<script lang="ts" setup>
|
||||
defineProps<{
|
||||
buttonText: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits(['action'])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button @click="emit('action')">{{ buttonText }}</button>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
button {
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.25rem;
|
||||
background-color: var(--color-action-button);
|
||||
color: var(--color-action-button-text);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
<style scoped>
|
||||
.card {
|
||||
padding: 2rem;
|
||||
background-color: lightgray;
|
||||
background-color: var(--card-background);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ defineProps<{
|
|||
placeholder: string
|
||||
buttonText: string
|
||||
inputName: string
|
||||
inputId?: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits(['action'])
|
||||
|
|
@ -13,7 +14,8 @@ const emit = defineEmits(['action'])
|
|||
|
||||
<template>
|
||||
<div class="form-group">
|
||||
<input v-model="model"
|
||||
<input :id="inputId"
|
||||
v-model="model"
|
||||
:name="inputName"
|
||||
:placeholder="placeholder"
|
||||
type="text">
|
||||
|
|
@ -24,8 +26,8 @@ const emit = defineEmits(['action'])
|
|||
|
||||
<style scoped>
|
||||
button {
|
||||
background-color: #4caf50;
|
||||
color: white;
|
||||
background-color: var(--color-action-button);
|
||||
color: var(--color-action-button-text, white);
|
||||
padding: .5rem 1rem;
|
||||
border: none;
|
||||
border-radius: 0 4px 4px 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue