-
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
1 parent
16fa542
commit 6a956be
Showing
6 changed files
with
48 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="container-fluid p-0 m-0"> | ||
<div class="home-content text-center text-lg-start d-flex flex-column gap-3 gap-lg-5 col-12 align-items-md-center align-items-lg-start"> | ||
<h2 class="m-0 p-0">Say Hi from <span class="bg-gradient">Nerm</span>, Front-End & UI Developer</h2> | ||
<h2 class="m-0 p-0">Say Hi from <span class="bg-gradient">Nerm</span>, {{ _profileService.dataProfile.mainRole }} & {{ _profileService.dataProfile.secondRole }}</h2> | ||
<p class="m-0 p-0">{{ _homeService.dataAbout.initial }}</p> | ||
</div> | ||
</div> |
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,8 @@ | ||
export interface Profile { | ||
imageProfile?:string, | ||
email?: string, | ||
location?: string, | ||
mainRole?: string, | ||
rights?: string, | ||
secondRole?: 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,24 @@ | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Injectable } from '@angular/core'; | ||
import { Profile } from '../interfaces/profile.interface'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class ProfileService { | ||
|
||
cargada = false; | ||
dataProfile: Profile = {}; | ||
|
||
constructor( private http: HttpClient) { | ||
this.getProfileData(); | ||
} | ||
|
||
private getProfileData() { | ||
this.http.get('https://portfolio-web-bd37a-default-rtdb.firebaseio.com/profile.json') | ||
.subscribe( (response: Profile) => { | ||
this.cargada = true; | ||
this.dataProfile = response; | ||
}) | ||
} | ||
} |
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,5 +1,6 @@ | ||
import { Component } from '@angular/core'; | ||
import { NetworksService } from 'src/app/services/networks.service'; | ||
import { ProfileService } from 'src/app/services/profile.service'; | ||
|
||
@Component({ | ||
selector: 'app-profile', | ||
|
@@ -8,14 +9,12 @@ import { NetworksService } from 'src/app/services/networks.service'; | |
}) | ||
export class ProfileComponent { | ||
|
||
constructor( public _networkService: NetworksService) { | ||
} | ||
constructor( | ||
public _networkService: NetworksService, | ||
public _profileService: ProfileService | ||
) { } | ||
|
||
date: Date = new Date(); | ||
year: number = this.date.getFullYear(); | ||
|
||
role: string = 'Front-End & UI Developer'; | ||
email: string = '[email protected]'; | ||
location: string = 'Tucson, Arizona'; | ||
|
||
} |