Skip to content

Commit

Permalink
add firebase deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrownLemon authored and ThrownLemon committed May 21, 2023
1 parent d926860 commit d19a82d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "conceal-hub"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ chrome-profiler-events*.json
*.launch
.settings/
*.sublime-workspace
.firebase

# IDE - VSCode
.vscode/*
Expand Down
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist/conceal-hub",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
3 changes: 2 additions & 1 deletion src/app/modules/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ <h2 class="title">News</h2>
<mat-card-title>{{item.title}}</mat-card-title>
<mat-card-subtitle>{{item.pubDate}}</mat-card-subtitle>
</mat-card-header>
<img mat-card-image src="{{item.thumbnail}}" alt="Image">
<img *ngIf="item.thumbnail != 'https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95c80f02f39f'" mat-card-image src="{{item.thumbnail}}" alt="Image">
<img *ngIf="item.thumbnail == 'https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95c80f02f39f'" mat-card-image src="https://miro.medium.com/max/1024/0*3EfILMb_EljUUSOp" alt="Image">
<mat-card-actions>
<a mat-raised-button color="primary" href="{{item.link}}" target="_blank" fxFlex.lt-sm>Read</a>
</mat-card-actions>
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.mat-card {
margin-bottom: 15px;
background: rgba(35, 35, 35, 0.8);
background: rgba(40, 40, 40, 0.9);
color: #fff;
}

Expand Down
1 change: 0 additions & 1 deletion src/app/modules/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class HomeComponent implements OnInit {
ngOnInit(): void {
this.getPrices();
this.getArticles();
console.log(this.posts);
}

getPrices() {
Expand Down

0 comments on commit d19a82d

Please sign in to comment.