Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
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-2024-07
frontend
Commits
c72cda41
Commit
c72cda41
authored
11 months ago
by
Victor Ekholt Gunrell Kaste
Browse files
Options
Downloads
Plain Diff
Merge branch '49-feedback-and-support-for-transaction-issues' into 'main'
feat: Adding feedback form Closes
#49
See merge request
!11
parents
7c037538
0be4891b
No related branches found
No related tags found
1 merge request
!11
feat: Adding feedback form
Pipeline
#274090
failed
11 months ago
Stage: install
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Buttons/Button1.vue
+1
-1
1 addition, 1 deletion
src/components/Buttons/Button1.vue
src/views/FeedbackView.vue
+84
-2
84 additions, 2 deletions
src/views/FeedbackView.vue
with
85 additions
and
3 deletions
src/components/Buttons/Button1.vue
+
1
−
1
View file @
c72cda41
<
template
>
<button
type=
"button"
class=
"btn btn-
success
"
id=
"buttonStyle"
>
{{
buttonText
}}
</button>
<button
type=
"button"
class=
"btn btn-
primary
"
id=
"buttonStyle"
>
{{
buttonText
}}
</button>
</
template
>
<
script
>
...
...
This diff is collapsed.
Click to expand it.
src/views/FeedbackView.vue
+
84
−
2
View file @
c72cda41
<
template
>
Hallo
</
template
>
\ No newline at end of file
<main>
<div
class=
"wrapper"
>
<div
id=
"formFrame"
>
<h1>
Feedback
</h1>
<form
@
submit.prevent=
"submitForm"
>
<BaseInput
v-model=
"email"
label=
"Email"
type=
"email"
placeholder=
"Enter your email"
inputId=
"email"
required
/>
<br>
<label
for=
"feedback"
>
Your feedback:
</label>
<textarea
v-model=
"message"
placeholder=
"Write here"
rows=
"5"
name=
"comment[text]"
id=
"comment_text"
cols=
"33"
required
></textarea>
<Button1
button-text=
"Send"
@
click=
"submitForm"
>
Submit
</Button1>
<p
v-if=
"submissionStatus"
>
{{
submissionStatus
}}
</p>
</form>
</div>
</div>
</main>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'
vue
'
;
import
BaseInput
from
'
@/components/InputFields/BaseInput.vue
'
;
import
Button1
from
'
@/components/Buttons/Button1.vue
'
;
const
email
=
ref
(
""
);
const
message
=
ref
(
""
);
const
submissionStatus
=
ref
(
""
);
const
submitForm
=
async
()
=>
{
};
</
script
>
<
style
scoped
>
main
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
font-family
:
'Poppins'
,
sans-serif
;
}
.wrapper
{
width
:
60%
;
height
:
100%
;
margin
:
30px
;
margin-bottom
:
4rem
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
#formFrame
{
width
:
400px
;
padding
:
40px
;
border-radius
:
50px
;
color
:
#101010
;
}
textarea
{
padding
:
10px
;
max-width
:
100%
;
line-height
:
1.5
;
border-radius
:
5px
;
border
:
1px
solid
#ccc
;
box-shadow
:
1px
1px
1px
#999
;
}
textarea
{
width
:
500px
;
height
:
100px
;
background
:
none
repeat
scroll
0
0
rgba
(
255
,
255
,
255
,
0.151
);
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.12
)
inset
;
color
:
#555555
;
font-size
:
0.9em
;
line-height
:
1.4em
;
padding
:
5px
8px
;
transition
:
background-color
0.2s
ease
0s
;
}
textarea
:focus
{
background
:
none
repeat
scroll
0
0
#FFFFFF
;
outline-width
:
0
;
}
</
style
>
\ No newline at end of file
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