Skip to content

Commit

Permalink
Under Construction
Browse files Browse the repository at this point in the history
  • Loading branch information
prafsoni committed Jun 20, 2017
1 parent 6f22b3e commit cd441dd
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "pksprojects-org"
}
}
11 changes: 11 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"hosting": {
"public": "dist",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"license": "MIT",
"scripts": {
"ng": "ng",
"firebase": "firebase",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"deploy": "firebase deploy --token $FIREBASE_TOKEN",
"lint": "ng lint",
"e2e": "ng e2e"
},
Expand All @@ -32,6 +34,7 @@
"@types/jasmine": "2.5.45",
"@types/node": "~6.0.60",
"codelyzer": "~3.0.1",
"firebase-tools": "^3.7.0",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
Expand Down
28 changes: 28 additions & 0 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.home {
background-color: #222;
background-size: cover;
padding: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

h1 {
font-size: 60px;
line-height: 80px;
margin-bottom: 16px;
color: #3CB371;
text-transform: capitalize;
}

h2 {
line-height: 80px;
margin-bottom: 16px;
color: #3CB371;
}

h2 a {
color: #3CB371
}
26 changes: 7 additions & 19 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
<!--The whole content below can be removed with the new code.-->
<div style="text-align:center">
<h1>
Welcome to {{title}}!!
</h1>
<img width="300" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmN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xMjUsNTIuMUwxMjUsNTIuMUwxMjUsNTIuMQ0KCQlMMTI1LDUyLjF6IE0xNDIsMTM1LjRIMTA4bDE3LTQwLjlMMTQyLDEzNS40eiIvPg0KPC9nPg0KPC9zdmc+DQo=" />
</div>
<h2>Here are some links to help you start: </h2>
<ul>
<li>
<h2><a target="_blank" href="https://angular.io/tutorial">Tour of Heroes</a></h2>
</li>
<li>
<h2><a target="_blank" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2>
</li>
<li>
<h2><a target="_blank" href="http://angularjs.blogspot.ca/">Angular blog</a></h2>
</li>
</ul>
<section class="home">
<h1 align="center">Welcome!</h1>
<div align= "center">
<img src="/assets/img/logo-nobg_300.png">
</div>
<h2 align="center">Website is under construction meanwhile check <a href="https://github.com/pksprojects">here</a>.</h2>
</section>

8 changes: 4 additions & 4 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
}));

it(`should have as title 'app'`, async(() => {
it(`should have as title 'pksprojects'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app');
expect(app.title).toEqual('pksprojects');
}));

it('should render title in a h1 tag', async(() => {
it('should render welcome in a h1 tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!!');
expect(compiled.querySelector('h1').textContent).toContain('Welcome');
}));
});
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
title = 'pksprojects';
}
Binary file added src/assets/img/logo-nobg_300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/favicon.ico
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>PksprojectsOrg</title>
<title>pksprojects</title>
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit cd441dd

Please sign in to comment.