From ca5d6ff404da4c63e673138f9f45f92f488e9eba Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Sun, 14 Jan 2024 22:25:16 +0100 Subject: [PATCH] Added profilepic component and made userview more mobild friendly --- package-lock.json | 6 ++-- .../elements/CCButton/RouterCCButton.vue | 2 +- src/components/elements/LoginComponent.vue | 6 ++-- .../elements/ProfilePicComponent.vue | 26 ++++++++++++++++ src/views/UserView/UserView.vue | 30 ++++++++++++++----- 5 files changed, 56 insertions(+), 14 deletions(-) create mode 100644 src/components/elements/ProfilePicComponent.vue diff --git a/package-lock.json b/package-lock.json index 33b539af..0737f55b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2227,9 +2227,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001481", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001481.tgz", - "integrity": "sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ==", + "version": "1.0.30001576", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz", + "integrity": "sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==", "dev": true, "funding": [ { diff --git a/src/components/elements/CCButton/RouterCCButton.vue b/src/components/elements/CCButton/RouterCCButton.vue index ee162226..1ea1c9dc 100644 --- a/src/components/elements/CCButton/RouterCCButton.vue +++ b/src/components/elements/CCButton/RouterCCButton.vue @@ -8,6 +8,7 @@ diff --git a/src/components/elements/LoginComponent.vue b/src/components/elements/LoginComponent.vue index abc9ddba..656e7e8d 100644 --- a/src/components/elements/LoginComponent.vue +++ b/src/components/elements/LoginComponent.vue @@ -3,8 +3,9 @@ class="text-white font-bold uppercase flex hover:underline my-auto" @click="tryLogin" > - PP @@ -20,6 +21,7 @@ import { useProfilePic } from "@/def-composables/useProfilePic"; import { useLoggedIn } from "@/def-composables/useLoggedIn"; import { useLogin } from "@/def-composables/useLogin"; import { onMounted } from "vue"; +import ProfilePicComponent from "@/components/elements/ProfilePicComponent.vue"; const { loggedInProfilePic } = useProfilePic(); const { loggedIn } = useLoggedIn(); diff --git a/src/components/elements/ProfilePicComponent.vue b/src/components/elements/ProfilePicComponent.vue new file mode 100644 index 00000000..6f23b366 --- /dev/null +++ b/src/components/elements/ProfilePicComponent.vue @@ -0,0 +1,26 @@ + + diff --git a/src/views/UserView/UserView.vue b/src/views/UserView/UserView.vue index 3ef29053..a82dc717 100644 --- a/src/views/UserView/UserView.vue +++ b/src/views/UserView/UserView.vue @@ -1,12 +1,22 @@