Skip to content
Snippets Groups Projects
Commit 9dbe1ade authored by Malin Haugland Høli's avatar Malin Haugland Høli
Browse files

refactor: :ambulance: Update design

parent d3c7a4b2
No related branches found
No related tags found
3 merge requests!66Final merge,!50fix(styling):,!4Pipeline fix
...@@ -62,7 +62,7 @@ watch( ...@@ -62,7 +62,7 @@ watch(
<input <input
v-model="firstname" v-model="firstname"
name="firstname" name="firstname"
:class="{ 'bg-green-200': isFirstNameValid }" :class="{ 'border-2 border-lime-400': isFirstNameValid }"
placeholder="Skriv inn fornavn" placeholder="Skriv inn fornavn"
type="text" type="text"
/> />
...@@ -77,7 +77,7 @@ watch( ...@@ -77,7 +77,7 @@ watch(
<input <input
v-model="lastname" v-model="lastname"
name="lastname" name="lastname"
:class="{ 'bg-green-200': isLastNameValid }" :class="{ 'border-2 border-lime-400': isLastNameValid }"
placeholder="Skriv inn etternavn" placeholder="Skriv inn etternavn"
type="text" type="text"
/> />
...@@ -92,7 +92,7 @@ watch( ...@@ -92,7 +92,7 @@ watch(
<input <input
v-model="email" v-model="email"
name="email" name="email"
:class="{ 'bg-green-200': isEmailValid }" :class="{ 'border-2 border-lime-400': isEmailValid }"
placeholder="Skriv inn e-post" placeholder="Skriv inn e-post"
type="text" type="text"
/> />
...@@ -109,7 +109,7 @@ watch( ...@@ -109,7 +109,7 @@ watch(
name="username" name="username"
placeholder="Skriv inn brukernavn" placeholder="Skriv inn brukernavn"
type="text" type="text"
:class="{ 'bg-green-200': isUsernameValid }" :class="{ 'border-2 border-lime-400': isUsernameValid }"
/> />
</div> </div>
<div class="flex flex-col"> <div class="flex flex-col">
...@@ -126,7 +126,7 @@ watch( ...@@ -126,7 +126,7 @@ watch(
:type="showPassword ? 'text' : 'password'" :type="showPassword ? 'text' : 'password'"
placeholder="Skriv inn passord" placeholder="Skriv inn passord"
class="w-full" class="w-full"
:class="{ 'bg-green-200': isPasswordValid }" :class="{ 'border-2 border-lime-400': isPasswordValid }"
/> />
<button <button
class="absolute right-0 top-1 bg-transparent hover:bg-transparent" class="absolute right-0 top-1 bg-transparent hover:bg-transparent"
...@@ -137,7 +137,7 @@ watch( ...@@ -137,7 +137,7 @@ watch(
</div> </div>
<input <input
v-model="confirm" v-model="confirm"
:class="{ 'bg-green-200': password == confirm && '' !== confirm.valueOf() }" :class="{ 'border-2 border-lime-400': password == confirm && '' !== confirm.valueOf() }"
class="mt-2" class="mt-2"
name="confirm" name="confirm"
placeholder="Bekreft passord" placeholder="Bekreft passord"
...@@ -145,7 +145,7 @@ watch( ...@@ -145,7 +145,7 @@ watch(
/> />
</div> </div>
<div class="flex flex-row gap-5"> <div class="flex flex-row gap-5">
<button :disabled="isFormInvalid" class="grow-0" name="submit" @click="submitForm"> <button :disabled="isFormInvalid" class="grow-0 primary" name="submit" @click="submitForm">
Registrer deg Registrer deg
</button> </button>
<p>{{ errorMessage }}</p> <p>{{ errorMessage }}</p>
......
...@@ -6,7 +6,8 @@ defineProps({ ...@@ -6,7 +6,8 @@ defineProps({
<template> <template>
<div class="w-full bg-gray-200 rounded-full overflow-hidden"> <div class="w-full bg-gray-200 rounded-full overflow-hidden">
<div :style="{ width: completion + '%' }" class="bg-green-500 h-2 rounded-full"></div> <div :style="{ width: completion + '%' }" class="bg-lime-400 h-2 rounded-full">
</div>
</div> </div>
</template> </template>
......
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