Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
idatt2106_2024_02_frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IDATT2106 - Gruppe 2
idatt2106_2024_02_frontend
Commits
b7f0d65f
Commit
b7f0d65f
authored
11 months ago
by
Eline Evje
Browse files
Options
Downloads
Patches
Plain Diff
feat: added view for making the user´s first saving goal
parent
796dcb18
No related branches found
Branches containing commit
No related tags found
3 merge requests
!66
Final merge
,
!9
Saving goal suggestion
,
!4
Pipeline fix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/router/index.ts
+5
-0
5 additions, 0 deletions
src/router/index.ts
src/views/FirstSavingGoalView.vue
+57
-0
57 additions, 0 deletions
src/views/FirstSavingGoalView.vue
with
62 additions
and
0 deletions
src/router/index.ts
+
5
−
0
View file @
b7f0d65f
...
@@ -53,6 +53,11 @@ const router = createRouter({
...
@@ -53,6 +53,11 @@ const router = createRouter({
path
:
'
/konfigurasjonSteg4
'
,
path
:
'
/konfigurasjonSteg4
'
,
name
:
'
configurations4
'
,
name
:
'
configurations4
'
,
component
:
()
=>
import
(
'
../views/ConfigSpendingItemsAmountView.vue
'
)
component
:
()
=>
import
(
'
../views/ConfigSpendingItemsAmountView.vue
'
)
},
{
path
:
'
/forsteSparemaal
'
,
name
:
'
firstSavingGoal
'
,
component
:
()
=>
import
(
'
../views/FirstSavingGoalView.vue
'
)
}
}
]
]
})
})
...
...
This diff is collapsed.
Click to expand it.
src/views/FirstSavingGoalView.vue
0 → 100644
+
57
−
0
View file @
b7f0d65f
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'
vue
'
;
import
ContinueButtonComponent
from
'
@/components/ContinueButtonComponent.vue
'
;
import
router
from
'
@/router
'
;
const
savingsGoal
=
ref
(
''
);
const
amount
=
ref
(
''
);
const
onButtonClick
=
()
=>
{
router
.
push
(
'
/home
'
);
}
</
script
>
<
template
>
<div
class=
"flex flex-col items-center justify-center min-h-screen px-4 text-center"
>
<div
class=
"mb-20"
>
<div
class=
"flex flex-col items-center justify-center bg-white shadow-md rounded-lg p-16"
style=
"width: 400px; height: 400px;"
>
<div
class=
"mb-6 w-full text-left"
>
<label
for=
"savings-goal"
class=
"block text-xl font-bold mb-2"
>
Jeg vil spare til:
</label>
<input
type=
"text"
id=
"savings-goal"
v-model=
"savingsGoal"
:class=
"
{'border-green-500': savingsGoal.value, 'border-gray-300': !savingsGoal.value}"
class="block w-full rounded-md shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 text-xl"
placeholder="">
</div>
<div
class=
"mb-8 w-full flex items-center"
>
<label
for=
"amount"
class=
"shrink-0 text-xl font-bold mr-2"
>
Jeg vil spare:
</label>
<input
type=
"number"
id=
"amount"
v-model=
"amount"
:class=
"
{'border-green-500': amount.value, 'border-gray-300': !amount.value}"
class="flex-grow rounded-md shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 text-xl mr-2"
style="flex-basis: 0; max-width: calc(100% - 8rem);"
placeholder="">
<span
class=
"shrink-0 text-xl font-bold"
>
kr
</span>
</div>
<div
class=
"w-full px-4 py-2"
>
<img
src=
"@/assets/coins.png"
alt=
"Savings"
class=
"mx-auto w-36 h-32"
>
</div>
</div>
</div>
<ContinueButtonComponent
@
click=
"onButtonClick"
class=
"px-10 py-3 text-2xl font-bold self-end"
></ContinueButtonComponent>
</div>
</
template
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment