Skip to content

Commit

Permalink
Point to the correct links in the header menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-vk committed Feb 28, 2020
1 parent ae554e2 commit 898779e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<img class="logo" src="assets/celo-logo.svg">
</div>
<div class="menu menu--right">
<a class="menu__link">
<a class="menu__link" [href]="menu.blog" target="_blank">
Blog
<svg class="menu__link-icon" width="20" height="20" viewBox="0 0 24 24" fill="none"><title>Medium Logo</title><path d="M0 0V24H24V0H0ZM19.9385 5.68615L18.6511 6.92062C18.5403 7.00554 18.4849 7.14462 18.5083 7.28246V16.3495C18.4849 16.4874 18.5403 16.6265 18.6511 16.7114L19.9089 17.9446V18.2154H13.5852V17.9446L14.8874 16.6806C15.0154 16.5526 15.0154 16.5157 15.0154 16.32V8.99077L11.3957 18.1858H10.9058L6.69046 8.99077V15.1532C6.656 15.4117 6.74215 15.6726 6.92431 15.8609L8.61785 17.9151V18.1858H3.81538V17.9151L5.50892 15.8609C5.68985 15.6726 5.77108 15.4105 5.72677 15.1532V8.02708C5.74769 7.82892 5.67138 7.63323 5.52369 7.50031L4.01846 5.68615V5.41538H8.69292L12.3065 13.3391L15.4818 5.41538H19.9385V5.68615Z"></path></svg>
</a>
<a class="menu__link">
<a class="menu__link" [href]="menu.github" target="_blank">
GitHub
<svg class="menu__link-icon" width="22" height="22" viewBox="0 0 25 24" fill="none"><title>GitHub Logo</title><path fill-rule="evenodd" clip-rule="evenodd" d="M12.3019 0C5.50526 0 0 5.50526 0 12.3019C0 17.7392 3.52669 22.3458 8.4127 23.977C9.0244 24.0902 9.25095 23.7126 9.25095 23.3804C9.25095 23.0858 9.2434 22.3156 9.23585 21.2885C5.81488 22.0286 5.08991 19.6422 5.08991 19.6422C4.53108 18.2225 3.72304 17.8373 3.72304 17.8373C2.60537 17.0746 3.80611 17.0897 3.80611 17.0897C5.03705 17.1803 5.69405 18.3584 5.69405 18.3584C6.78906 20.2388 8.57129 19.6951 9.27361 19.3779C9.38688 18.585 9.70406 18.0412 10.0514 17.7316C7.32524 17.4295 4.45556 16.3723 4.45556 11.66C4.45556 10.3158 4.93132 9.22074 5.72426 8.35984C5.59588 8.04266 5.17298 6.79662 5.83754 5.10501C5.83754 5.10501 6.87213 4.77274 9.22074 6.36616C10.2025 6.0943 11.2522 5.95837 12.3019 5.95082C13.344 5.95837 14.4013 6.0943 15.383 6.36616C17.7316 4.77274 18.7662 5.10501 18.7662 5.10501C19.4383 6.79662 19.0154 8.05021 18.887 8.35984C19.6724 9.22074 20.1482 10.3158 20.1482 11.66C20.1482 16.3874 17.271 17.422 14.5297 17.7316C14.9677 18.1092 15.3679 18.8644 15.3679 20.0123C15.3679 21.6586 15.3528 22.9801 15.3528 23.3879C15.3528 23.7202 15.5718 24.0978 16.1986 23.977C21.0846 22.3458 24.6038 17.7392 24.6038 12.3094C24.6038 5.50526 19.0985 0 12.3019 0Z"></path></svg>
</a>
Expand Down
1 change: 1 addition & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
align-items: center;
opacity: 1;
cursor: pointer;
text-decoration: none;

&:hover {
opacity: 0.7;
Expand Down
1 change: 1 addition & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { environment } from 'src/environments/environment'
})
export class AppComponent implements OnInit {
submenu = environment.submenu
menu = environment.menu
canBeInstalled = false
isInstalled = false

Expand Down
2 changes: 2 additions & 0 deletions src/environments/docker-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export const DOCKER_ENV = {
ethstatsService: '%%DOCKER_ENV%%ETHSTATS_SERVICE%%',
blockscoutUrl: '%%DOCKER_ENV%%BLOCKSCOUT_URL%%',
graphqlBlockscoutUrl: '%%DOCKER_ENV%%GRAPHQL_BLOCKSCOUT_URL%%',
menuGithub: '%%DOCKER_ENV%%MENU_GITHUB%%',
menuBlog: '%%DOCKER_ENV%%MENU_BLOG%%',
submenuExplorer: '%%DOCKER_ENV%%SUBMENU_EXPLORER%%',
submenuBlockscout: '%%DOCKER_ENV%%SUBMENU_BLOCKSCOUT%%',
}
Expand Down
4 changes: 4 additions & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ export const environment = {
blockscout: DOCKER_ENV.submenuBlockscout || 'https://baklava-blockscout.celo-testnet.org/',
explorer: DOCKER_ENV.submenuExplorer || 'https://celo.org/validators/explore',
},
menu: {
github: DOCKER_ENV.menuGithub || 'https://github.com/celo-org',
blog: DOCKER_ENV.menuBlog || 'https://medium.com/CeloHQ',
},
}
4 changes: 4 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export const environment = {
blockscout: 'https://baklava-blockscout.celo-testnet.org/',
explorer: 'https://celo.org/validators/explore',
},
menu: {
github: 'https://github.com/celo-org',
blog: 'https://medium.com/CeloHQ',
},
}

/*
Expand Down

0 comments on commit 898779e

Please sign in to comment.