diff --git a/front/src/BookForm.vue b/front/src/BookForm.vue
index 9dd7d32..e12e205 100644
--- a/front/src/BookForm.vue
+++ b/front/src/BookForm.vue
@@ -15,9 +15,7 @@ import {
import { useTemplateRef, nextTick } from 'vue'
import { useRouter, onBeforeRouteUpdate } from 'vue-router'
import { VRating } from 'vuetify/components/VRating'
-import BigIcon from './BigIcon.vue'
-import BookDateWidget from './BookDateWidget.vue'
-import DateWidget from './DateWidget.vue'
+import BookFormIcons from './BookFormIcons.vue'
const router = useRouter()
const props = defineProps({
@@ -92,12 +90,6 @@ function onEndReadDateChange(d) {
}
}
-function isStartReadExpanded() {
- let isStartReadDateSet = data.value.startReadDate ? true : false
- let isReadUnset = !data.value.read ? true : false
- return isStartReadDateSet && isReadUnset
-}
-
function goToAuthor() {
router.push('/author/' + data.value.authorId)
}
@@ -131,89 +123,14 @@ function goToAuthor() {
OLID: {{ data.openlibraryid }}
-
-
-
- onStartReadDateChange(d)"
- />
-
-
- onEndReadDateChange(d)"
- />
-
-
+
@@ -232,38 +149,10 @@ img {
align-items: center;
}
-.iconscontainer {
- border: solid;
- border-radius: 50px;
- width: 250px;
-}
-
-.mobile-dates {
- display: block;
-}
-
-.mobiledate {
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
@media (min-width: 1024px) {
.left-panel {
margin-left: 3rem;
}
-
- .border-radius-wantread-fill {
- border-radius: 45px 45px 0px 0px;
- }
-
- .remove-border-bottom {
- border-bottom: none;
- }
-
- .bigiconcontainer {
- display: flex;
- }
}
@media (max-width: 1024px) {
@@ -273,27 +162,10 @@ img {
padding: 20px;
}
- .bigiconcontainer {
- flex: 1;
- }
-
- .border-radius-wantread-fill {
- border-radius: 38px 0px 0px 38px;
- }
-
.image {
display: flex;
justify-content: center;
align-items: center;
}
-
- .iconscontainer {
- display: flex;
- width: 100%;
- }
-
- .border-radius-right-fill {
- border-radius: 0px 38px 38px 0px;
- }
}
diff --git a/front/src/BookFormIcons.vue b/front/src/BookFormIcons.vue
new file mode 100644
index 0000000..47a2b6b
--- /dev/null
+++ b/front/src/BookFormIcons.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
$emit('onStartReadDateChange', d)"
+ @onIconClick="$emit('onStartReadIconClick')"
+ />
+ $emit('onStartReadDateChange', d)"
+ @onEndDateChange="(d) => $emit('onEndReadDateChange', d)"
+ @onIconClick="$emit('onReadIconClick')"
+ />
+
+
+
+
+ $emit('onStartReadDateChange', d)"
+ />
+
+
+ $emit('onEndReadDateChange', d)"
+ />
+
+
+
+
+