diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index aa8653b..6f57717 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -3,7 +3,8 @@ import { Routes, RouterModule } from '@angular/router'; import { ContactsListComponent, - ContactFormComponent, + NewContactComponent, + EditContactComponent, FavoritesContactsComponent } from './contacts/components'; import { ProfileComponent } from './profile/profile.component'; @@ -13,7 +14,8 @@ const routes: Routes = [ { path: 'contacts', component: ContactsListComponent }, { path: 'favorites', component: FavoritesContactsComponent }, { path: 'dashboard', component: DashboardComponent }, - { path: 'new-contact', component: ContactFormComponent }, + { path: 'new-contact', component: NewContactComponent }, + { path: 'contacts/:id', component: EditContactComponent }, { path: 'profile', component: ProfileComponent }, { path: '', diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 6bc25c6..68ba496 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -2,6 +2,12 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; +import { FormsModule } from '@angular/forms'; +import { HttpClientModule } from '@angular/common/http'; +import { HttpModule } from '@angular/http'; + + + import { AppComponent } from './app.component'; import { HeaderComponent } from './blocks/header/header.component'; @@ -10,11 +16,19 @@ import { ContactsListComponent, ContactCardComponent, ContactFormComponent, - FavoritesContactsComponent + FavoritesContactsComponent, + NewContactComponent, + EditContactComponent } from './contacts/components'; import { ProfileComponent } from './profile/profile.component'; import { DashboardComponent } from './dashboard/dashboard.component'; +import { ContactService } from './services/contact.service'; +import { GithubService } from './services/github.service'; + +import { AdressComponent } from './contacts/components/contact-form/adress/adress.component'; + + @NgModule({ declarations: [ @@ -26,13 +40,22 @@ import { DashboardComponent } from './dashboard/dashboard.component'; ContactFormComponent, ProfileComponent, DashboardComponent, - FavoritesContactsComponent + FavoritesContactsComponent, + AdressComponent, + NewContactComponent, + EditContactComponent ], imports: [ BrowserModule, - AppRoutingModule + FormsModule, + AppRoutingModule, + HttpModule, + HttpClientModule + ], - providers: [], - bootstrap: [AppComponent] + providers: [ ContactService, GithubService ], + bootstrap: [AppComponent] }) export class AppModule { } + + diff --git a/src/app/contacts/components/contact-card/contact-card.component.css b/src/app/contacts/components/contact-card/contact-card.component.css index 328a6c7..7539b00 100644 --- a/src/app/contacts/components/contact-card/contact-card.component.css +++ b/src/app/contacts/components/contact-card/contact-card.component.css @@ -1,3 +1,20 @@ .contact-card { margin-bottom: 5px; } +.image{ + width: 200px; + height: 200px; +} +.card-contact-sizing{ + height: 500px; + margin-bottom: 15px; +} +.adjust-padding-card{ + margin-left: 15px; + +} +.bloc-shadow{ + box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15); + padding: 50px; + border-radius: 6px; +} \ No newline at end of file diff --git a/src/app/contacts/components/contact-card/contact-card.component.html b/src/app/contacts/components/contact-card/contact-card.component.html index 7e6f991..8758b65 100644 --- a/src/app/contacts/components/contact-card/contact-card.component.html +++ b/src/app/contacts/components/contact-card/contact-card.component.html @@ -1,23 +1,23 @@ -
email: {{contact.email}}.
+Bio: {{contact.bio}}
TODO: Create new contact form with save and a cancel button!!
-
- Check out the contact form repository to finish this task. check the api doc
-
- API DOC
-
TODO: Add Your contacts Here, and implements the delete action with confirmation and edit contact action!!
- Contacts database Managements
-TODO: Add Your favorite contacts Here, and implements the delete action with confirmation and edit contact action!!
- Contacts database Managements
+Update your profile settings
+Update your profile settings
TODO: Here you need to integrate in a elegant design your github profile, you can use the github api or try to copy/past
- your info here!!
- {{user.location}}
++ {{user.login}} +
++ {{user.email}} +
++ {{user.blog}} +
++ {{user.repos_url}} +
++ {{user.repos_url}} +
+