File tree Expand file tree Collapse file tree 9 files changed +150
-38
lines changed
Expand file tree Collapse file tree 9 files changed +150
-38
lines changed Original file line number Diff line number Diff line change 11import { CommonModule } from '@angular/common' ;
22import { NgModule } from '@angular/core' ;
3+ import { RouterModule } from '@angular/router' ;
34
45import { LoginComponent } from './login/login.component' ;
6+ import { RegisterComponent } from './register/register.component' ;
57
68@NgModule ( {
79 declarations : [
8- LoginComponent
10+ LoginComponent ,
11+ RegisterComponent
912 ] ,
1013 imports : [
11- CommonModule
14+ CommonModule ,
15+ RouterModule
1216 ]
1317} )
1418export class AuthModule { }
Original file line number Diff line number Diff line change @@ -2,11 +2,16 @@ import { NgModule } from "@angular/core";
22import { RouterModule , Routes } from "@angular/router" ;
33
44import { LoginComponent } from "./login/login.component" ;
5+ import { RegisterComponent } from "./register/register.component" ;
56
67const routes : Routes = [
78 {
89 path : 'login' ,
910 component : LoginComponent
11+ } ,
12+ {
13+ path : 'register' ,
14+ component : RegisterComponent
1015 }
1116] ;
1217
Original file line number Diff line number Diff line change 2020 background-position : center ;
2121}
2222
23- .form-group {
24- display : flex ;
25- flex-direction : column ;
26- gap : 2rem ;
27- flex : 1 ;
28- }
29-
30- .main {
31- flex : 1 ;
32- display : flex ;
33- flex-direction : column ;
34- justify-content : center ;
35- gap : 0.5rem ;
36-
37- & .title {
38- @include fs-1 ;
39- @include fw-600 ;
40- color : var (--fc-purple );
41- }
42-
43- & .sign-up {
44- @include fs-5 ;
45- @include fw-400 ;
46- color : var (--fc-secondary );
47-
48- & a {
49- color : var (--fc-purple );
50- text-decoration : none ;
51-
52- & :hover {
53- cursor : pointer ;
54- text-decoration : underline ;
55- }
56- }
57- }
58- }
5923
6024.options {
6125 display : flex ;
Original file line number Diff line number Diff line change 1+ < div class ="auth-wrapper ">
2+ < div class ="container ">
3+ < section class ="logo-content ">
4+ < div class ="logo ">
5+ < img src ="" alt ="logo_image ">
6+ </ div >
7+ < img src ="assets/images/register.svg " alt ="media " class ="register-image ">
8+ </ section >
9+ < section class ="form-group ">
10+ < div class ="main ">
11+ < span class ="title "> Regístrate</ span >
12+ < span class ="sign-up "> ¿Ya tienes una cuenta?
13+ < a routerLink ="/login "> Inicia sesión</ a >
14+ </ span >
15+ </ div >
16+ < form >
17+ < div class ="input-group ">
18+ < label for ="name "> Nombre</ label >
19+ < input type ="text " id ="name " placeholder ="Nombre ">
20+ </ div >
21+ < div class ="input-group ">
22+ < label for ="email "> Correo electrónico</ label >
23+ < input type ="email " id ="email " placeholder ="Correo electrónico ">
24+ </ div >
25+ < div class ="input-group ">
26+ < label for ="password "> Contraseña</ label >
27+ < input type ="password " id ="password " placeholder ="Contraseña ">
28+ </ div >
29+ < div class ="input-group ">
30+ < label for ="confirm-password "> Confirmar contraseña</ label >
31+ < input type ="password " id ="confirm-password " placeholder ="Confirmar contraseña ">
32+ </ div >
33+ < div class ="input-container ">
34+ < button class ="btn btn-primary "> Regístrarme</ button >
35+ </ div >
36+ </ form >
37+ </ section >
38+ </ div >
39+ </ div >
Original file line number Diff line number Diff line change 1+ @import ' settings/_colors.scss' ;
2+ @import ' settings/_typography.scss' ;
3+
4+ .logo-content {
5+ flex : 2 ;
6+ }
7+
8+ .logo {
9+ position : absolute ;
10+ top : 1rem ;
11+ left : 1rem ;
12+ }
13+
14+ .register-image {
15+ width : 100% ;
16+ height : 100% ;
17+ max-width : 80rem ;
18+ background-repeat : no-repeat ;
19+ background-size : cover ;
20+ background-position : center ;
21+ }
22+
23+
24+ .btn {
25+ width : 100% ;
26+ border-radius : 0.5rem ;
27+ }
Original file line number Diff line number Diff line change 1+ import { ComponentFixture , TestBed } from '@angular/core/testing' ;
2+
3+ import { RegisterComponent } from './register.component' ;
4+
5+ describe ( 'RegisterComponent' , ( ) => {
6+ let component : RegisterComponent ;
7+ let fixture : ComponentFixture < RegisterComponent > ;
8+
9+ beforeEach ( async ( ) => {
10+ await TestBed . configureTestingModule ( {
11+ declarations : [ RegisterComponent ]
12+ } )
13+ . compileComponents ( ) ;
14+ } ) ;
15+
16+ beforeEach ( ( ) => {
17+ fixture = TestBed . createComponent ( RegisterComponent ) ;
18+ component = fixture . componentInstance ;
19+ fixture . detectChanges ( ) ;
20+ } ) ;
21+
22+ it ( 'should create' , ( ) => {
23+ expect ( component ) . toBeTruthy ( ) ;
24+ } ) ;
25+ } ) ;
Original file line number Diff line number Diff line change 1+ import { Component } from '@angular/core' ;
2+
3+ @Component ( {
4+ selector : 'app-register' ,
5+ templateUrl : './register.component.html' ,
6+ styleUrls : [ './register.component.scss' ]
7+ } )
8+ export class RegisterComponent { }
9+
Original file line number Diff line number Diff line change @@ -130,3 +130,41 @@ form {
130130 }
131131 }
132132}
133+
134+
135+ .form-group {
136+ display : flex ;
137+ flex-direction : column ;
138+ gap : 2rem ;
139+ flex : 1 ;
140+ }
141+
142+ .main {
143+ flex : 1 ;
144+ display : flex ;
145+ flex-direction : column ;
146+ justify-content : center ;
147+ gap : 0.5rem ;
148+
149+ & .title {
150+ @include fs-1 ;
151+ @include fw-600 ;
152+ color : var (--fc-purple );
153+ }
154+
155+ & .sign-up {
156+ @include fs-5 ;
157+ @include fw-400 ;
158+ color : var (--fc-secondary );
159+
160+ & a {
161+ color : var (--fc-purple );
162+ text-decoration : none ;
163+
164+ & :hover {
165+ cursor : pointer ;
166+ text-decoration : underline ;
167+ }
168+ }
169+ }
170+ }
You can’t perform that action at this time.
0 commit comments