Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToDo-App Jan Schnaidt and Abdullah Kiran
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdullah Kiran
ToDo-App Jan Schnaidt and Abdullah Kiran
Commits
d82fafd0
Commit
d82fafd0
authored
10 months ago
by
abdu
Browse files
Options
Downloads
Patches
Plain Diff
add login-/signup-page
parent
7e8a93f7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/App.vue
+11
-2
11 additions, 2 deletions
frontend/src/App.vue
frontend/src/components/LoginPage.vue
+37
-2
37 additions, 2 deletions
frontend/src/components/LoginPage.vue
with
48 additions
and
4 deletions
frontend/src/App.vue
+
11
−
2
View file @
d82fafd0
<
template
>
<div
id=
"app"
>
<LoginPage></LoginPage>
<LoginPage
id=
"appBody"
></LoginPage>
</div>
</
template
>
...
...
@@ -16,12 +16,21 @@ export default {
</
script
>
<
style
>
body
{
background-color
:
#343a40
!important
;
/* Dark grey background */
color
:
white
!important
;
/* White text */
}
#app
{
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
text-align
:
center
;
color
:
#2c3e50
;
margin-top
:
60px
;
}
#appBody
{
margin-left
:
35px
;
margin-right
:
35px
;
}
</
style
>
This diff is collapsed.
Click to expand it.
frontend/src/components/LoginPage.vue
+
37
−
2
View file @
d82fafd0
<
script
>
export
default
{
name
:
"
LoginPage
"
name
:
"
LoginPage
"
,
data
(){
return
{
showSignUpModal
:
false
}
},
methods
:
{
openSignUpModal
(){
this
.
showSignUpModal
=
true
}
}
}
</
script
>
<
template
>
<b-card>
<b-card-header>
ToDo-App
</b-card-header>
<b-card-body>
<!-- sign-up-modal -->
<b-button
variant=
"primary"
@
click=
"openSignUpModal"
>
Sign Up
</b-button>
<b-modal
v-model=
"showSignUpModal"
>
<b-input
id=
"username"
type=
"text"
placeholder=
"enter username"
></b-input>
<b-input
id=
"password"
type=
"password"
placeholder=
"enter password"
></b-input>
</b-modal>
<!-- sign-in-modal -->
</b-card-body>
<b-card-footer>
</b-card-footer>
</b-card>
</
template
>
<
style
scoped
>
<
style
>
body
{
background-color
:
#343a40
!important
;
/* Dark grey background */
color
:
white
!important
;
/* White text */
}
#username
{
margin-bottom
:
10px
;
}
</
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