-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(http): create project from branch step-06-solution
- Loading branch information
Showing
29 changed files
with
776 additions
and
0 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
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 @@ | ||
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
# | ||
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed | ||
|
||
> 0.5% | ||
last 2 versions | ||
Firefox ESR | ||
not dead | ||
not IE 9-11 |
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,46 @@ | ||
mat-toolbar.extend-toolbar { | ||
background-color: #0168AB; | ||
background-image: url('/assets/images/bg_right.png'); | ||
background-repeat: no-repeat; | ||
background-position: right; | ||
top: 0px; | ||
box-shadow: 0 2px 5px 0 rgba(0,0,0,.26); | ||
width: 100%; | ||
z-index: 1; | ||
color: white; | ||
margin-bottom: 10px; | ||
} | ||
|
||
mat-toolbar .flex { | ||
flex: 1 1 auto; | ||
} | ||
|
||
mat-toolbar a { | ||
color: inherit; | ||
text-decoration: none; | ||
height: 100%; | ||
margin: 0px 10px 0px 10px; | ||
border-bottom: 2px solid transparent; | ||
font-size: 1.1em; | ||
font-weight: normal; | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
mat-toolbar a:not(.active):hover { | ||
border-bottom: 2px solid white; | ||
} | ||
|
||
mat-toolbar a img { | ||
height: 100%; | ||
margin-left: -60px; | ||
} | ||
|
||
mat-toolbar-row:nth-child(1) { | ||
margin-bottom: 66px; | ||
} | ||
mat-toolbar-row:nth-child(2) { | ||
padding-left: 30px; | ||
text-align: center; | ||
height: 56px; | ||
margin-top: 56px; | ||
} |
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,16 @@ | ||
<mat-toolbar class="extend-toolbar"> | ||
<span> | ||
<a href="#/home"> | ||
<img src="assets/images/logo-sfeir.svg" aria-label="sfeir" alt="Sfeir"> | ||
</a> | ||
</span> | ||
|
||
<span class="flex"></span> | ||
|
||
<span> | ||
<a href="#/locator">Maps</a> | ||
<a href="#/people">List</a> | ||
</span> | ||
</mat-toolbar> | ||
|
||
<sfeir-home></sfeir-home> |
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: 'sfeir-app', | ||
templateUrl: 'app.component.html', | ||
styleUrls: ['app.component.css'] | ||
}) | ||
export class PeopleAppComponent { | ||
constructor() {} | ||
} |
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,48 @@ | ||
// CORE DEPS | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { HttpClientModule, HttpClient } from '@angular/common/http'; | ||
// MATERIAL DESIGN MODULES | ||
import { | ||
MatToolbarModule, | ||
MatCardModule, | ||
MatTabsModule, | ||
MatButtonModule, | ||
MatInputModule, | ||
MatCheckboxModule, | ||
MatRadioModule, | ||
MatIconModule, | ||
MatListModule | ||
} from '@angular/material'; | ||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; | ||
|
||
import { PeopleAppComponent } from './app.component'; | ||
import { HomeComponent } from './home'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
BrowserAnimationsModule, | ||
MatToolbarModule, | ||
MatCardModule, | ||
MatTabsModule, | ||
MatButtonModule, | ||
MatInputModule, | ||
MatCheckboxModule, | ||
MatRadioModule, | ||
MatIconModule, | ||
MatListModule, | ||
HttpClientModule | ||
], | ||
declarations: [ | ||
PeopleAppComponent, | ||
HomeComponent | ||
], | ||
providers: [ | ||
HttpClient, | ||
], | ||
bootstrap: [ | ||
PeopleAppComponent | ||
] | ||
}) | ||
export class AppModule { } |
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,151 @@ | ||
h1 { | ||
text-align: center; | ||
} | ||
|
||
section { | ||
display: flex; | ||
flex-flow: row wrap; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
:host(.wide) mat-card, | ||
:host(.wide) mat-list-item{ | ||
width: 600px; | ||
} | ||
} | ||
|
||
mat-card, | ||
mat-list-item { | ||
color: rgba(0,0,0,0.87); | ||
background-color: white; | ||
margin: 10px; | ||
width: 360px; | ||
} | ||
|
||
mat-card:hover { | ||
box-shadow: 0 11px 15px -7px rgba(0,0,0,.2), | ||
0 24px 38px 3px rgba(0,0,0,.14), | ||
0 9px 46px 8px rgba(0,0,0,.12); | ||
} | ||
|
||
mat-list-item { | ||
height: 22px; | ||
padding: 0; | ||
margin-left: -12px; | ||
font-size: 14px; | ||
} | ||
|
||
mat-card-title { | ||
margin-bottom: 0; | ||
} | ||
|
||
mat-card-title span { | ||
font-size: 24px; | ||
font-weight: 400; | ||
line-height: 32px; | ||
} | ||
|
||
mat-card-subtitle.contact-info { | ||
margin-top: -7px; | ||
height: 20px; | ||
} | ||
|
||
mat-card-title-group { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.contact-info mat-icon + a { | ||
top: -8px; | ||
position: relative; | ||
height: 18px; | ||
} | ||
|
||
.contact-info a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.buttons-info { | ||
float: right; | ||
margin-top: -50px; | ||
} | ||
|
||
@media (max-width: 412px) { | ||
.buttons-info { | ||
margin-top: -34px; | ||
} | ||
} | ||
|
||
.buttons-info [mat-button] { | ||
min-width: 0px; | ||
padding: 2px; | ||
height: 40px; | ||
} | ||
|
||
mat-icon { | ||
color: rgba(0,0,0,0.54); | ||
margin: 4px; | ||
} | ||
|
||
a { | ||
color: #337ab7; | ||
text-decoration: none; | ||
} | ||
|
||
mat-card-actions button[mat-raised-button] { | ||
margin: 5px; | ||
} | ||
|
||
.hl { | ||
background-color: orange; | ||
color: white; | ||
} | ||
|
||
.skills { | ||
padding: 10px; | ||
background-color: #FAFAFA; | ||
} | ||
|
||
a.truncate { | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: inline-block; | ||
width: 188px; | ||
} | ||
|
||
@media (max-width: 600px) { | ||
a.truncate { | ||
width: 170px; | ||
} | ||
} | ||
|
||
@media (max-width: 768px) { | ||
a.truncate { | ||
width: 190px; | ||
} | ||
} | ||
|
||
.mat-whiteframe-2dp { | ||
box-shadow: 0 1px 5px 0 rgba(0,0,0,.2), | ||
0 2px 2px 0 rgba(0,0,0,.14), | ||
0 3px 1px -2px rgba(0,0,0,.12); | ||
} | ||
|
||
img { | ||
border-radius: 50%; | ||
margin-right: 18px; | ||
} | ||
|
||
@media (max-width: 412px) { | ||
img { | ||
margin-right: 3px; | ||
} | ||
} | ||
|
||
@media (max-width: 600px) { | ||
img { | ||
margin-right: 5px; | ||
} | ||
} |
Oops, something went wrong.