Skip to content

Commit

Permalink
Add contact page as last tab
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-irt committed Jun 19, 2017
1 parent d1373fe commit b3a57ef
Show file tree
Hide file tree
Showing 10 changed files with 137 additions and 4 deletions.
19 changes: 16 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@ import { GamesListComponent } from './games-list/games-list.component';

import 'hammerjs';

import { MdTabsModule, MdButtonModule, MdCheckboxModule, MdCardModule, MdChipsModule} from '@angular/material';
import {
MdTabsModule,
MdButtonModule,
MdCheckboxModule,
MdCardModule,
MdChipsModule,
MdListModule,
MdIconModule
} from '@angular/material';

import { CvComponent } from './cv/cv.component';
import { ContactComponent } from './contact/contact.component';

@NgModule({
declarations: [
Expand All @@ -22,7 +32,8 @@ import { CvComponent } from './cv/cv.component';
FooterComponent,
ContentComponent,
GamesListComponent,
CvComponent
CvComponent,
ContactComponent
],
imports: [
BrowserModule,
Expand All @@ -33,7 +44,9 @@ import { CvComponent } from './cv/cv.component';
MdCheckboxModule,
MdCardModule,
MdTabsModule,
MdChipsModule
MdChipsModule,
MdListModule,
MdIconModule
],
providers: [],
bootstrap: [AppComponent]
Expand Down
46 changes: 46 additions & 0 deletions src/app/contact/contact.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
md-card {
float: left;
width: 420px;
margin: 10px;
}

md-card.full {
width: calc(100% - 68px);
}

md-card-title {
font-size: 22px !important;
}

md-card-title.large {
font-size: 28px !important;
margin: 0;
}

a {
text-decoration: none;
color: inherit;
}

.seperator {
width: 100%;
margin-top: 30px;
margin-bottom: 20px;
}

.line {
position: relative;
width: calc(100% + 48px);
left: -24px;
right: -24px;
border-bottom: 1px solid rgba(0,0,0,0.2);
}

.mat-list-icon {
color: rgba(0, 0, 0, 0.54);
}

.mat-list .mat-list-item .mat-list-avatar {
opacity: 0.6;
border-radius: 0;
}
29 changes: 29 additions & 0 deletions src/app/contact/contact.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<md-card class="full">
<md-card-content>
<md-card-header> <md-card-title class="large">Say hi</md-card-title> </md-card-header>
<div class="seperator"><div class="line"></div></div>

<md-list>
<a href="https://twitter.com/irt_io" md-list-item>
<img md-list-avatar src="../../assets/images/twitter.svg" alt="...">
<h4 md-line>Twitter</h4>
<p md-line>@irt_io</p>
</a>
<a href="https://github.com/irt-io" md-list-item>
<img md-list-avatar src="../../assets/images/github-circle.svg" alt="...">
<h4 md-line>Github</h4>
<p md-line>irt-io</p>
</a>
<a href="https://www.linkedin.com/in/alexanderstavrinou/" md-list-item>
<img md-list-avatar src="../../assets/images/linkedin.svg" alt="...">
<h4 md-line>Linkedin</h4>
<p md-line>Alexander Stavrinou</p>
</a>
<a href="mailto:alex@irt.io?Subject=Hi" md-list-item>
<img md-list-avatar src="../../assets/images/email-open.svg" alt="...">
<h4 md-line>Email</h4>
<p md-line>alex@irt.io</p>
</a>
</md-list>
</md-card-content>
</md-card>
25 changes: 25 additions & 0 deletions src/app/contact/contact.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { ContactComponent } from './contact.component';

describe('ContactComponent', () => {
let component: ContactComponent;
let fixture: ComponentFixture<ContactComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ContactComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(ContactComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should be created', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/contact/contact.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-contact',
templateUrl: './contact.component.html',
styleUrls: ['./contact.component.css']
})
export class ContactComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
3 changes: 2 additions & 1 deletion src/app/content/content.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<md-tab label="CV">
<app-cv></app-cv>
</md-tab>
<md-tab label="About">
<md-tab label="Contact">
<app-contact></app-contact>
</md-tab>
</md-tab-group>
</section>
Expand Down
1 change: 1 addition & 0 deletions src/assets/images/email-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/facebook-box.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b3a57ef

Please sign in to comment.