Skip to content
Snippets Groups Projects
Commit 745f12f8 authored by Ingrid Martinsheimen Egge's avatar Ingrid Martinsheimen Egge :cow2:
Browse files

fjernet epostfelt

parent b0b98cee
No related branches found
No related tags found
1 merge request!21Merge profilinnstillinger into main
...@@ -47,7 +47,7 @@ nav a:first-of-type { ...@@ -47,7 +47,7 @@ nav a:first-of-type {
@media (min-width: 1024px) { @media (min-width: 1024px) {
header { header {
display: flex; display: flex;
qplace-items: center; place-items: center;
padding-right: calc(var(--section-gap) / 2); padding-right: calc(var(--section-gap) / 2);
} }
......
...@@ -29,7 +29,7 @@ a, ...@@ -29,7 +29,7 @@ a,
#app { #app {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; /*grid-template-columns: 1fr 1fr;*/
padding: 0 2rem; padding: 0 2rem;
} }
} }
src/components/images/w66XcIlw.jpeg

105 KiB

<template> <template>
<main> <main>
<h1><br><br>Profilinnstillinger <br></h1> <h1><br><br>Profilinnstillinger <br></h1>
<div v-if="hasProfileImage" id = "profilepicture-container"> <div v-if="hasProfileImage" id = "profilepicture-container">
<img width="500px" src="{{profile.image}}" alt="profile picture"> <img width="100" src="../components/images/w66XcIlw.jpeg" alt="profile picture">
</div> </div>
<div v-else id = "profilepicture-container"> <div v-else id = "profilepicture-container">
<Icon icon="material-symbols:person" :color=iconColor :style="{ fontSize: '500px'}" /> <Icon icon="material-symbols:person" :color=iconColor :style="{ fontSize: '500px'}" />
...@@ -28,7 +27,7 @@ ...@@ -28,7 +27,7 @@
<h3>Profilbilde</h3> <h3>Profilbilde</h3>
<div id="changeUserImage"> <div id="changeUserImage">
<div v-if="hasProfileImage" id = "profilepicture-container"> <div v-if="hasProfileImage" id = "profilepicture-container">
<img width="30px" src="{{profile.image}}" alt="profile picture"> <img width="50" src="../components/images/w66XcIlw.jpeg" alt="profile picture">
</div> </div>
<div v-else id = "profilepicture-container"> <div v-else id = "profilepicture-container">
<Icon icon="material-symbols:person" :color=iconColor :style="{ fontSize: '30px'}" /> <Icon icon="material-symbols:person" :color=iconColor :style="{ fontSize: '30px'}" />
...@@ -74,7 +73,7 @@ ...@@ -74,7 +73,7 @@
<h1>Konto-innstillinger</h1> <h1>Konto-innstillinger</h1>
<form @submit.prevent="submit"> <form @submit.prevent="submit">
<p class="infoText">OBS: Kontakt admin dersom du ønsker å oppdatere epost</p> <p class="infoText">OBS: Kontakt admin dersom du ønsker å oppdatere epost</p><br>
<p>Epost:</p> <p>Epost:</p>
<p>{{user.username}}</p><br> <p>{{user.username}}</p><br>
...@@ -105,11 +104,14 @@ ...@@ -105,11 +104,14 @@
import {Icon} from "@iconify/vue"; import {Icon} from "@iconify/vue";
import {API} from "@/util/API"; import {API} from "@/util/API";
//import { mapState } from "pinia";
//import { useAuthStore } from "@/stores/authStore";
export default { export default {
name: "ProfileSettings", name: "ProfileSettings",
components: {Icon}, components: {Icon},
computed: { computed: {
//...mapState(useAuthStore, ['user']),
iconColor() { iconColor() {
return "#000000" return "#000000"
}, },
...@@ -128,13 +130,17 @@ export default { ...@@ -128,13 +130,17 @@ export default {
profile: { profile: {
name: "Petter", name: "Petter",
isRestricted: false, isRestricted: false,
image: "", image: "../components/images/w66XcIlw.jpeg",
}, },
foodPreferences: [], foodPreferences: [],
allergens: [], allergens: [],
deletionConfirmation: false, deletionConfirmation: false,
} }
}, },
beforeMount(){
//TODO: Hent bruker
//todo hent profil
},
methods: { methods: {
saveUserSettings(){ saveUserSettings(){
alert("(Denne knappen gjør ingen ting) brukerinnstillinger lagret!") alert("(Denne knappen gjør ingen ting) brukerinnstillinger lagret!")
...@@ -144,7 +150,6 @@ export default { ...@@ -144,7 +150,6 @@ export default {
this.profile.isRestricted, this.profile.isRestricted,
this.profile.image, this.profile.image,
); );
}, },
saveAccountSettings(){ saveAccountSettings(){
alert("(Denne knappen gjør ingen ting) konto oppdatert") alert("(Denne knappen gjør ingen ting) konto oppdatert")
...@@ -174,9 +179,16 @@ export default { ...@@ -174,9 +179,16 @@ export default {
</script> </script>
<style scoped lang ="scss"> <style scoped lang ="scss">
#dangerZone { main {
color: white; background-color: white;
color: darkred; color:black;
display:flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
text-align: left;
left:0;
} }
#profilepicture-container { #profilepicture-container {
...@@ -190,6 +202,10 @@ export default { ...@@ -190,6 +202,10 @@ export default {
border: 3px solid base.$grey; border: 3px solid base.$grey;
} }
img {
border-radius: 50%;
}
#changeUserImage { #changeUserImage {
display:flex; display:flex;
} }
...@@ -205,20 +221,16 @@ export default { ...@@ -205,20 +221,16 @@ export default {
margin: .4em; margin: .4em;
} }
form { form {
background-color: base.$grey; background-color: base.$grey;
color: black; color: black;
align-content: end; align-content: end;
padding: 2em; padding: 2em;
margin-top: 2em; margin-top: 2em;
margin-bottom: 2em; margin-bottom: 2em;
} }
input[type="text"], input[type="text"],
input[type="password"]{ input[type="password"]{
width: 100%; width: 100%;
padding: .5em; padding: .5em;
...@@ -236,10 +248,15 @@ button { ...@@ -236,10 +248,15 @@ button {
margin: 1em; margin: 1em;
} }
button:hover{
background-color: #282828; #changeUserBtn {
padding:.9em;
} }
button:hover{
background-color: #282828;
}
.saveBtn, .delBtn { .saveBtn, .delBtn {
background-color: base.$green; background-color: base.$green;
...@@ -248,27 +265,11 @@ button:hover{ ...@@ -248,27 +265,11 @@ button:hover{
padding:.9em; padding:.9em;
border:none; border:none;
} }
.delBtn { .delBtn {
background-color: darkred; background-color: darkred;
} }
#changeUserBtn { #dangerZone {
padding:.9em; color: darkred;
}
main {
background-color: white;
color:black;
display:flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
text-align: left;
left:0;
} }
</style> </style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment