diff --git a/app/assets/styles/button.css b/app/assets/styles/button.css index c753472..46e25a1 100755 --- a/app/assets/styles/button.css +++ b/app/assets/styles/button.css @@ -20,6 +20,11 @@ box-shadow: var(--box-shadow-z2); padding: .5em 1.5em; border-radius: var(--radius-default); + + &.danger { + --background: var(--color-red); + --color: var(--color-white); + } } &.text { @@ -32,6 +37,10 @@ --background: rgba(0, 0, 0, 0.05); } + &.white { + --color: var(--color-white); + } + &.danger { --color: var(--color-red); diff --git a/app/assets/styles/formInput.css b/app/assets/styles/formInput.css index 01d1092..c207605 100755 --- a/app/assets/styles/formInput.css +++ b/app/assets/styles/formInput.css @@ -1,40 +1,52 @@ .Input { - position: relative; - flex: 25% 1 0; - border: 2px solid var(--color-blue); - border-radius: var(--radius-default); - overflow: hidden; - transition: var(--transition-default); - outline: 0 solid var(--color-white); + &.error { + & .input-wrapper { + border-color: var(--color-red); + outline-width: 2px; + } - & label { - position: absolute; - font-size: .8em; - top: .3rem; - left: .5rem; - transition: var(--transition-default); - } - - & input { - all: unset; - width: calc(100% - 1rem); - padding: 1.3rem .5rem .5rem .5rem; - background: var(--color-white); - - &[type="number"] { - text-align: right; + & span { + color: var(--color-red); } } - &.error { - border-color: var(--color-red); - outline-width: 2px; + & span { + font-size: .65em; } - & input:focus, - & input:not(:placeholder-shown) { - & + label { - color: var(--color-main); + & .input-wrapper { + position: relative; + flex: 25% 1 0; + border: 2px solid var(--color-blue); + border-radius: var(--radius-default); + overflow: hidden; + transition: var(--transition-default); + outline: 0 solid var(--color-white); + + & label { + position: absolute; + font-size: .8em; + top: .3rem; + left: .5rem; + transition: var(--transition-default); + } + + & input { + all: unset; + width: calc(100% - 1rem); + padding: 1.3rem .5rem .5rem .5rem; + background: var(--color-white); + + &[type="number"] { + text-align: right; + } + } + + & input:focus, + & input:not(:placeholder-shown) { + & + label { + color: var(--color-main); + } } } } \ No newline at end of file diff --git a/app/assets/styles/priceCard.css b/app/assets/styles/priceCard.css index 3cef1ec..9eb4269 100755 --- a/app/assets/styles/priceCard.css +++ b/app/assets/styles/priceCard.css @@ -16,6 +16,12 @@ display: flex; justify-content: space-between; align-items: center; + font-size: 1.5rem; + + & .icon { + font-size: 1.2rem; + cursor: pointer; + } & > .name-price { display: flex; diff --git a/app/components/Pp/DeleteDialog.vue b/app/components/Pp/DeleteDialog.vue new file mode 100644 index 0000000..dd24927 --- /dev/null +++ b/app/components/Pp/DeleteDialog.vue @@ -0,0 +1,39 @@ + + + \ No newline at end of file diff --git a/app/components/Pp/FormInput.vue b/app/components/Pp/FormInput.vue index 32889d8..cd1ec71 100755 --- a/app/components/Pp/FormInput.vue +++ b/app/components/Pp/FormInput.vue @@ -1,6 +1,7 @@ @@ -22,6 +25,7 @@ type Props = { min ?: number step ?: number required ?: boolean + message ?: string label : string id : string } @@ -31,9 +35,6 @@ const { required = false, step = 0.01, min = 1, - max, - label, - id, } = defineProps() const emit = defineEmits(['blur']) diff --git a/app/components/Pp/PriceCard.vue b/app/components/Pp/PriceCard.vue index 63ea1b5..7df8199 100755 --- a/app/components/Pp/PriceCard.vue +++ b/app/components/Pp/PriceCard.vue @@ -7,11 +7,16 @@
{{ card.name || 'Kein Name' }} - {{ intl.format(card.price)}} + {{ intl.format(+replaceComma(card.price))}} +
+
+ + + + + +
- - -
@@ -60,8 +65,5 @@ const intl = Intl.NumberFormat('de-DE', { const update = () => emit('update') -const deleteCard = async () => { - root.value?.addEventListener('transitionend', () => emit('remove')) - deleting.value = true -} +const deleteCard = () => emit('remove') diff --git a/app/components/Pp/PriceCardDialog.vue b/app/components/Pp/PriceCardDialog.vue new file mode 100644 index 0000000..00dd42f --- /dev/null +++ b/app/components/Pp/PriceCardDialog.vue @@ -0,0 +1,129 @@ + + + \ No newline at end of file diff --git a/app/pages/index.vue b/app/pages/index.vue index a6dba3f..84debe6 100755 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,38 +1,15 @@