-
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.
- Loading branch information
Showing
12 changed files
with
275 additions
and
14 deletions.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,3 +1,25 @@ | ||
page-signinpage { | ||
|
||
.splash-bg { | ||
position: relative; | ||
background: url('../../assets/imgs/med.png') no-repeat transparent; | ||
background-size: cover; | ||
height: 40%; | ||
z-index: 1; | ||
background-repeat: repeat-x; | ||
animation: animatedBackground 40s linear infinite; | ||
} | ||
@keyframes animatedBackground { | ||
from { background-position: 0 0; } | ||
to { background-position: 100% 0; } | ||
} | ||
|
||
.splash-info { | ||
position: relative; | ||
z-index: 2; | ||
margin-top: -64px; | ||
text-align: center; | ||
} | ||
|
||
|
||
} |
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
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
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
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,7 @@ | ||
export class User_Class{ | ||
|
||
constructor(public usr_sr_no:number,public pk_usr_email_id:string,public usr_name:string,public usr_mno:string,public usr_pass:string,public usr_gen:string,public usr_pro_pic:string,public usr_verify:number,public usr_token:string,public usr_type:string) | ||
{ | ||
|
||
} | ||
} |
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,39 @@ | ||
//import { HttpClient } from '@angular/common/http'; | ||
import { Injectable } from '@angular/core'; | ||
import { Http,Response,RequestOptions, Headers } from '@angular/http'; | ||
import 'rxjs/rx'; | ||
import { User_Class } from "./user_class"; | ||
|
||
|
||
/* | ||
Generated class for the UserlogProvider provider. | ||
See https://angular.io/guide/dependency-injection for more info on providers | ||
and Angular DI. | ||
*/ | ||
@Injectable() | ||
export class UserlogProvider { | ||
|
||
constructor(public http: Http) { | ||
console.log('Hello UserlogProvider Provider'); | ||
} | ||
public url_login:string="http://localhost:3000/login/"; | ||
public url_signup:string="http://localhost:3000/signup/"; | ||
Login(user:User_Class) { | ||
|
||
let body = JSON.stringify(user); | ||
//console.log(body); | ||
let h = new Headers({ 'Content-Type': 'application/json' }); | ||
let ro = new RequestOptions({ headers: h }); | ||
|
||
return this.http.post(this.url_login,body,ro) | ||
.map((res:Response) => res.json()); | ||
} | ||
addUser(user){ | ||
let body = JSON.stringify(user); | ||
let h = new Headers({ 'Content-Type': 'application/json' }); | ||
let ro = new RequestOptions({ headers: h }); | ||
return this.http.post(this.url_signup, body, ro).map((res) => res.json()); | ||
} | ||
|
||
} |