diff --git a/resources/css/app.css b/resources/css/app.css index 0dfedfd..b6c9030 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -27,4 +27,10 @@ a:visited { a:active { color: crimson; -} \ No newline at end of file +} + +.feedback { + position: absolute; + right: 0; + bottom: 0; +} diff --git a/resources/store/feedback.js b/resources/store/feedback.js new file mode 100644 index 0000000..9f99319 --- /dev/null +++ b/resources/store/feedback.js @@ -0,0 +1,21 @@ +import {defineStore} from 'pinia' +import axios from "axios"; + +export const useFeedbackStore = defineStore('feedback', { + state: () => ({ + }), + actions: { + async create(user_id, text){ + let result = null; + await axios.post(`/api/feedback/create`, + { + user_id: user_id, + text: text + } + ).then((response)=>{ + result = response; + }); + return result; + } + }, +}) diff --git a/resources/views/Public.vue b/resources/views/Public.vue index 1330cbd..0bf9519 100644 --- a/resources/views/Public.vue +++ b/resources/views/Public.vue @@ -47,6 +47,7 @@ + @@ -57,9 +58,10 @@ import {useUserStore} from "../store/user.js"; import { watch } from "vue"; import Login from "./Auth/Login.vue"; import Registration from "./Auth/Registration.vue"; +import FeedbackFooter from "./PublicWishlist/FeedbackFooter.vue"; export default { name: "Public", - components: {Registration, Login, ShowWhishlist}, + components: {FeedbackFooter, Registration, Login, ShowWhishlist}, data: ()=>({ isAuthenticated: false, isWide: window.innerWidth >= 800, diff --git a/resources/views/PublicWishlist/FeedbackFooter.vue b/resources/views/PublicWishlist/FeedbackFooter.vue new file mode 100644 index 0000000..7f059f6 --- /dev/null +++ b/resources/views/PublicWishlist/FeedbackFooter.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/resources/views/Welcome.vue b/resources/views/Welcome.vue index dae74fa..002cd95 100644 --- a/resources/views/Welcome.vue +++ b/resources/views/Welcome.vue @@ -21,6 +21,7 @@ + @@ -28,8 +29,10 @@