Skip to content

Commit ba56ae5

Browse files
committed
🚀 deployed in netlify
1 parent 82c8851 commit ba56ae5

File tree

8 files changed

+17
-6
lines changed

8 files changed

+17
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ testem.log
4343
Thumbs.db
4444

4545
.angular/
46+
47+
# Local Netlify folder
48+
.netlify

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"tsConfig": "tsconfig.app.json",
2525
"assets": [
2626
"src/favicon.ico",
27-
"src/assets"
27+
"src/assets",
28+
"src/_redirects"
2829
],
2930
"styles": [
3031
"src/styles.css"

src/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

src/app/app.routing.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ const routes: Routes = [
99
redirectTo: '/home',
1010
pathMatch: 'full'
1111
},
12+
{
13+
path: '**',
14+
redirectTo: '/home',
15+
pathMatch: 'full'
16+
}
1217
];
1318

1419
@NgModule({

src/app/auth/components/login/login.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export class LoginComponent implements OnInit {
2424

2525
loadForm() {
2626
this.loginForm = this.fb.group({
27-
email: ['[email protected]', Validators.required],
28-
password: ['Mysecret123$', Validators.required]
27+
email: ['', Validators.required],
28+
password: ['', Validators.required]
2929
});
3030
}
3131

src/app/auth/components/more-features/more-features.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="more-container">
22
<img src="/assets/svg/explore.svg" alt="explore">
33
<div class="content">
4-
<span class="description">You want to unlock more features</span>
4+
<span class="description">You want to unlock more features or content</span>
55
<button (click)="change(true)" class="btn btn-primary btn-lg">Sign in</button>
66
<span class="description">or</span>
77
<button (click)="change(false)" class="btn btn-following btn-lg">Sign on</button>

src/app/core/components/sidebar/sidebar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</div>
4343
<div *ngIf="isAuthenticated" routerLink="/settings" class="profile-details">
4444
<figure class="box-image">
45-
<img src="https://res.cloudinary.com/dfeujtobk/image/upload/v1598123661/user_xzklt6.png" alt="img-user">
45+
<img [src]="userActive.image" alt="img-user">
4646
</figure>
4747
<span class="username"> {{ getName }} </span>
4848
</div>

src/environments/environment.prod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export const environment = {
2-
production: true
2+
production: true,
3+
base_url: 'https://inforeader-app.herokuapp.com/api',
34
};

0 commit comments

Comments
 (0)