Skip to content
Snippets Groups Projects
Commit 5e16d17e authored by Sverre Frogner Haugen's avatar Sverre Frogner Haugen
Browse files

Added input fields to the CreateChallengeView

parent 507e0ba0
No related branches found
No related tags found
1 merge request!45Create challenge
Pipeline #278265 passed
......@@ -4,22 +4,31 @@
<template>
<div class="create-challenge-view">
<h2>Personlig utfordring</h2>
<h2 id = pageTittle>Sett deg en spareutfordring</h2>
<div class="input-fields">
<div class="title">
<h3 class = fieldInfo>Gi din spareutfordring et navn!</h3>
<input/>
</div>
<div class="description">
<h3 class = fieldInfo>Beskriv ditt sparemål!</h3>
<input/>
</div>
<div class="goalSum">
<h3 class = fieldInfo>Hvor mye spares ved denne utfordringen?</h3>
<input type="number"/>
</div>
<div class="end-datre">
<div class="end-date">
<h3 class = fieldInfo> Hva er fristen på denne utfordringen?</h3>
<input type = "date"/>
</div>
<div class="repeatable">
<h3 class = fieldInfo> Hva er fristen på denne utfordringen?</h3>
<input/>
</div>
</div>
......@@ -28,9 +37,45 @@
</template>
<style scoped>
.create-challenge-view{
#pageTittle{
color: var(--color-heading);
}
.title, .description, .goalSum, .end-date, .repeatable{
border: 3px solid var(--color-border);
margin-top: 3%;
padding: 1%;
border-radius: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 70%;
height: 50%;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
}
.fieldInfo{
margin-bottom: 2%;
}
.input-fields{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
input{
width: 90%;
height: 45%;
border-radius: 20px;
border-color: var(--color-border);
}
.create-challenge-view{
width: 100%;
height: 100%;
}
......
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