File tree Expand file tree Collapse file tree 8 files changed +43
-6
lines changed
marketing-navigation/components Expand file tree Collapse file tree 8 files changed +43
-6
lines changed Original file line number Diff line number Diff line change 11@import ' lib/styles/mixins.scss' ;
22
3- .authWrap {
3+ .userAreaWrap {
44 display : flex ;
55 align-items : center ;
66 gap : 36px ;
Original file line number Diff line number Diff line change 1717
1818 </script >
1919
20- < div class ={ styles . authWrap }>
21- { #if isReady }
20+ { #if isReady }
21+ < div class ={ styles . userAreaWrap }>
2222 {#if ! user }
2323 <div class ={styles .btnsWrap }>
2424 <Button label ="Log in" onClick ={onSignIn } />
3131 onSignOut ={onSignOut }
3232 />
3333 {/if }
34- { /if }
35- </ div >
34+ </ div >
35+ { /if }
3636
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { NavMenuItem } from "lib/functions/nav-menu-item.model";
22
33export interface NavItemConfig {
44 about : NavMenuItem
5+ aboutUs : NavMenuItem
56 announcements : NavMenuItem
67 articles : NavMenuItem
78 benefits : NavMenuItem
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ export const navItemsConfigDev: NavItemConfig = {
1010 }
1111 ] ,
1212 } ,
13+ aboutUs : {
14+ label : "About Us" ,
15+ description : "" ,
16+ url : "https://uninav.topcoder.com/about-us"
17+ } ,
1318 announcements : {
1419 label : 'Announcements' ,
1520 description : 'Important announcements to the Topcoder community.' ,
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ export const navItemsConfigProd: NavItemConfig = {
1010 }
1111 ] ,
1212 } ,
13+ aboutUs : {
14+ label : "About Us" ,
15+ description : "" ,
16+ url : "https://uninav.topcoder.com/about-us"
17+ } ,
1318 announcements : {
1419 label : 'Announcements' ,
1520 description : 'Important announcements to the Topcoder community.' ,
Original file line number Diff line number Diff line change 1+ .separator {
2+ display : block ;
3+ padding : 0 32px 0 48px ;
4+ margin : -18px 0 ;
5+ & :before {
6+ content : " " ;
7+ display : block ;
8+ width : 1px ;
9+ background : #767676 ;
10+ height : 100% ;
11+ }
12+
13+ & :last-child {
14+ display : none ;
15+ }
16+ }
Original file line number Diff line number Diff line change 44 import LinksMenu from ' ../../components/LinksMenu.svelte' ;
55 import TopNavbar from ' lib/components/TopNavbar.svelte' ;
66 import MobileNavigation from ' lib/mobile-navigation/MobileNavigation.svelte' ;
7+ import { navItems } from ' lib/config/nav-menu/nav-items.config' ;
8+ import styles from ' ./NavigationBar.module.scss' ;
9+
710
811 export let style: ' primary' | ' secondary' | ' tertiary' ;
912 export let menuItems: NavMenuItem[] = [];
4144 </LinksMenu >
4245 {/if }
4346
44- <slot name =" auth" slot =" right" ></slot >
47+ <svelte:fragment slot =" right" >
48+ {#if ! isMobile }
49+ <LinksMenu menuItems ={[navItems .aboutUs ]} style =" primary" />
50+ <div class ={styles .separator }/>
51+ {/if }
52+ <slot name =" auth" ></slot >
53+ </svelte:fragment >
4554</TopNavbar >
Original file line number Diff line number Diff line change 11import type { NavMenuItem } from "lib/functions/nav-menu-item.model" ;
22export interface NavItemConfig {
33 about : NavMenuItem ;
4+ aboutUs : NavMenuItem ;
45 announcements : NavMenuItem ;
56 articles : NavMenuItem ;
67 benefits : NavMenuItem ;
You can’t perform that action at this time.
0 commit comments