-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/#92-4
- Loading branch information
Showing
26 changed files
with
1,635 additions
and
2,201 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
1 change: 1 addition & 0 deletions
1
src/app/modules/challenge/components/challenge-header/challenge-header.component.html
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
2 changes: 1 addition & 1 deletion
2
src/app/modules/challenge/components/challenge-info/challenge-info.component.html
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
32 changes: 32 additions & 0 deletions
32
src/app/modules/profile/components/profile-header/profile-header.component.html
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,32 @@ | ||
<div class="user gap-3 row mt-4"> | ||
<span class="image col-3"> | ||
<img src="../../../../assets/img/users/user-1.png" alt="User" class=""> | ||
</span> | ||
<span class="col-9"> | ||
<p>Bienvenid@ de nuevo,</p> | ||
<h2>Ona Costa</h2> | ||
</span> | ||
|
||
</div> | ||
|
||
<div class="stats gap-3"> | ||
<span class="stat"> | ||
<img src="../../../../assets/img/icon/badge.svg" alt="Badge"> | ||
12 retos | ||
</span> | ||
<span class="stat" ngbTooltip="Empezado y finalizado"> | ||
<img src="../../../../assets/img/icon/bullseye-pointer.svg" alt="Bullseye pointer"> | ||
95% finalizados | ||
</span> | ||
<span class="stat" ngbTooltip="Veces guardado"> | ||
<img src="../../../../assets/img/icon/chart-pie-slice.svg" alt="Chart pie slice"> | ||
65% progreso | ||
</span> | ||
<span class="stat" ngbTooltip="Fecha creación"> | ||
<img src="../../../../assets/img/icon/folder-upload.svg" alt="Folder Upload" id="folder"> | ||
1 reto subido | ||
</span> | ||
<span class="progress"> | ||
<span class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></span> | ||
</span> | ||
</div> |
61 changes: 61 additions & 0 deletions
61
src/app/modules/profile/components/profile-header/profile-header.component.scss
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,61 @@ | ||
@import "src/styles/colors"; | ||
|
||
|
||
.user{ | ||
display: flex; | ||
align-items: center; | ||
color: $black-1; | ||
.image{ | ||
background-color: $gray-4; | ||
border-radius: 100%; | ||
padding: .2rem 2rem .6rem 2rem; | ||
width: 2rem; | ||
height: 4rem; | ||
display: flex; | ||
justify-content: center; | ||
|
||
img{ | ||
width: 5rem; | ||
height:3rem; | ||
} | ||
} | ||
} | ||
|
||
.col-9{ | ||
padding: 0; | ||
margin: 0; | ||
p{ | ||
margin: 0; | ||
color: $gray-3; | ||
} | ||
h2{ | ||
margin: 0; | ||
} | ||
} | ||
.stats{ | ||
color: $gray-1; | ||
font-weight: bold; | ||
margin-top: 2rem; | ||
img{ | ||
width: 1.2rem; | ||
|
||
} | ||
#folder{ | ||
width: 1.1rem; | ||
} | ||
.stat{ | ||
margin-right: 1rem; | ||
} | ||
.progress{ | ||
width: 80%; | ||
height: .8rem; | ||
margin-top: 1rem; | ||
|
||
.progress-bar{ | ||
background-color: $primary; | ||
border-radius: 10px; | ||
width: 65%; | ||
} | ||
|
||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/app/modules/profile/components/profile-header/profile-header.component.spec.ts
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 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ProfileHeaderComponent } from './profile-header.component'; | ||
|
||
describe('ProfileHeaderComponent', () => { | ||
let component: ProfileHeaderComponent; | ||
let fixture: ComponentFixture<ProfileHeaderComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ProfileHeaderComponent] | ||
}); | ||
fixture = TestBed.createComponent(ProfileHeaderComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
src/app/modules/profile/components/profile-header/profile-header.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-profile-header', | ||
templateUrl: './profile-header.component.html', | ||
styleUrls: ['./profile-header.component.scss'] | ||
}) | ||
export class ProfileHeaderComponent { | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/app/modules/profile/components/profile/profile.component.html
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,27 @@ | ||
<app-profile-header></app-profile-header> | ||
<div> | ||
<div class="d-flex justify-content-between"> | ||
<h3 class="mt-5">Retos realizados</h3> | ||
<div> | ||
<img src="../../../../assets/img/icon/arrow_left.svg" alt="Arrow Left"> | ||
<img src="../../../../assets/img/icon/arrow_right.svg" alt="Arrow Right"> | ||
</div> | ||
</div> | ||
<!---- TO DO NGFOR -----> | ||
<app-challenge-card></app-challenge-card> | ||
<app-challenge-card></app-challenge-card> | ||
<app-challenge-card></app-challenge-card> | ||
</div> | ||
<div> | ||
<div class="d-flex justify-content-between"> | ||
<h3 class="mt-5">Retos guardados</h3> | ||
<div> | ||
<img src="../../../../assets/img/icon/arrow_left.svg" alt="Arrow Left" class="m-0 p-0"> | ||
<img src="../../../../assets/img/icon/arrow_right.svg" alt="Arrow Right" class="m-0 p-0"> | ||
</div> | ||
</div> | ||
<!---- TO DO NGFOR -----> | ||
<app-challenge-card></app-challenge-card> | ||
<app-challenge-card></app-challenge-card> | ||
<app-challenge-card></app-challenge-card> | ||
</div> |
Empty file.
33 changes: 33 additions & 0 deletions
33
src/app/modules/profile/components/profile/profile.component.spec.ts
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,33 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import {HttpClientTestingModule} from "@angular/common/http/testing"; | ||
import {RouterTestingModule} from "@angular/router/testing"; | ||
|
||
import { ProfileComponent } from './profile.component'; | ||
import { ProfileHeaderComponent } from '../profile-header/profile-header.component'; | ||
import { SharedComponentsModule } from '../../../../shared/components/shared-components.module'; | ||
|
||
describe('ProfileComponent', () => { | ||
let component: ProfileComponent; | ||
let fixture: ComponentFixture<ProfileComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ | ||
ProfileComponent, | ||
ProfileHeaderComponent | ||
], | ||
imports: [ | ||
SharedComponentsModule, | ||
HttpClientTestingModule, | ||
RouterTestingModule, | ||
] | ||
}); | ||
fixture = TestBed.createComponent(ProfileComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
src/app/modules/profile/components/profile/profile.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-profile', | ||
templateUrl: './profile.component.html', | ||
styleUrls: ['./profile.component.scss'] | ||
}) | ||
export class ProfileComponent { | ||
|
||
} |
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,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
|
||
const routes: Routes = []; | ||
|
||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class ProfileRoutingModule { } |
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,20 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { ProfileComponent } from './components/profile/profile.component'; | ||
import { ProfileHeaderComponent } from './components/profile-header/profile-header.component'; | ||
import { RouterModule } from '@angular/router'; | ||
import { SharedComponentsModule } from 'src/app/shared/components/shared-components.module'; | ||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
ProfileComponent, | ||
ProfileHeaderComponent | ||
], | ||
imports: [ | ||
CommonModule, | ||
RouterModule, | ||
SharedComponentsModule | ||
] | ||
}) | ||
export class ProfileModule { } |
Oops, something went wrong.