Skip to content

Commit

Permalink
update homepage navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
theeditor committed Feb 24, 2018
1 parent 01ef150 commit 28cdd3b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client/.angular-cli.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "client"
"name": "starrysea-nextgen"
},
"apps": [
{
Expand Down
6 changes: 3 additions & 3 deletions client/src/app/common/guard/admin-guard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export class AdminGuardService {

canActivate(route:ActivatedRouteSnapshot, state:RouterStateSnapshot):Observable<boolean>|boolean {
let the_cookie = document.cookie.split(';');
let token = the_cookie[0].split("=")[1];
if(token || localStorage.getItem('loggedIn') == 'true'){
let token_name = the_cookie[0].split("=")[1];
if(token_name === "token" || localStorage.getItem('loggedIn') == 'true'){
return true
}else{
this.router.navigate(['/']);
this.router.navigate(['/404']);
return false;
}

Expand Down
6 changes: 6 additions & 0 deletions client/src/app/view/home/home.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
}
}

@media screen and (max-width: 991px) {
.title{
font-size: 2.54rem!important;
}
}

.intro{
clear: both;
background: #000000;
Expand Down
6 changes: 2 additions & 4 deletions client/src/app/view/partical/navbar/navbar.component.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.navbar{
background: url("/assets/img/navbar.jpg") no-repeat fixed;
background-size: 100%;
width: 100%;
}

Expand All @@ -12,14 +10,14 @@
background-color: rgba(255,255,255,0.7);
}
.navbar{
font-size: xx-large;
font-size: 24px;
font-weight: 400;
}
}
@media screen and (max-width: 992px) {
.navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

}

.navbar-logo{
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/view/partical/navbar/navbar.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav class="navbar navbar-light navbar-toggleable-sm navbar-expand-lg">
<nav class="navbar navbar-light navbar-toggleable-md navbar-expand-lg py-0">
<a class="navbar-brand" routerLink="/"><img src="/assets/img/starsea.png" class="navbar-logo" alt="Logo"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down

0 comments on commit 28cdd3b

Please sign in to comment.