forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jtamiace/login-frontend
login modal vue component
- Loading branch information
Showing
6 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.7 on 2016-08-02 00:11 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('kolibriauth', '0002_auto_20160318_0557'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='role', | ||
name='user', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='roles', to='kolibriauth.FacilityUser'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<template> | ||
|
||
<div class="login-modal"> | ||
<modal btntext="Login"> | ||
<div class="title" slot="header"> | ||
<div class="login-brand-box"> | ||
<img src="./kolibri-logo.svg"> | ||
<p id="login-brand">Kolibri</p> | ||
</div> | ||
</div> | ||
<div slot="body"> | ||
<input type="text" class="login-form login-username" placeholder="Username"> | ||
<input type="text" class="login-form login-password" placeholder="Password"> | ||
<button class="login-button">Login</button> | ||
<a href="#" id="login-forgot-pass">Forgot password?</a> | ||
</div> | ||
<div slot="footer"></div> | ||
</modal> | ||
</div> | ||
|
||
</template> | ||
|
||
|
||
<script> | ||
module.exports = { | ||
components: { | ||
modal: require('./modal.vue'), | ||
}, | ||
}; | ||
</script> | ||
|
||
|
||
<style lang="stylus" scoped> | ||
@require '~core-theme.styl' | ||
.login-button | ||
width: 300px | ||
display: block | ||
margin: 20px auto | ||
padding: 8px | ||
background: $core-action-normal | ||
color: white | ||
font-size: 16px | ||
.login-brand-box | ||
text-align: center | ||
margin: 15px auto | ||
img, p | ||
display: inline-block | ||
img | ||
min-width: 60px | ||
height: auto | ||
#login-brand | ||
font-size: 50px | ||
letter-spacing: 0.1em | ||
font-weight: 100 | ||
color: $core-action-normal | ||
.login-form | ||
width: 300px | ||
margin: 0 auto | ||
display: block | ||
padding: 5px 10px | ||
letter-spacing: 0.08em | ||
border: none | ||
border-bottom: 1px solid $core-text-default | ||
&:focus | ||
outline: none | ||
border-bottom: 3px solid $core-action-normal | ||
.login-username | ||
margin-bottom: 30px | ||
#login-forgot-pass | ||
text-align: center | ||
display: block | ||
margin: auto | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters