Skip to content

Commit

Permalink
Merge branch 'staging' into adjustContainerWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
B77Mills authored Dec 4, 2023
2 parents 8a3884b + 798b9f9 commit b567c7d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/global/components/document.marko
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $ const omedaConfig = site.get('omeda');
<global-site-header-2 has-user=hasUser reg-enabled=isEnabled />
<global-site-menu has-user=hasUser reg-enabled=isEnabled />
</marko-web-identity-x-context>

<if(contentMeterState && !contentMeterState.isLoggedIn)>
<theme-content-meter-block
views=contentMeterState.views
Expand Down
36 changes: 36 additions & 0 deletions packages/global/config/user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
items: [
{
href: '/user/login',
label: 'Sign In',
when: 'logged-out',
modifiers: ['user'],
},
{
href: '/user/logout',
label: 'Sign Out',
when: 'logged-in',
modifiers: ['user'],
},
],
tools: [
{
href: '/user/login',
label: 'Sign In',
when: 'logged-out',
modifiers: ['user'],
},
{
href: '/user/profile',
label: 'Modify profile',
when: 'logged-in',
modifiers: ['user'],
},
{
href: '/user/logout',
label: 'Sign Out',
when: 'logged-in',
modifiers: ['user'],
},
],
};
21 changes: 21 additions & 0 deletions packages/global/scss/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -508,4 +508,25 @@ label {
margin-left: 0;
}
}

.site-navbar {
$self: &;
&__items--user {
font-size: 13px;
margin-top: initial;
display: flex;
flex-direction: row;
align-items: center;
text-transform: initial;
a,
a:hover,
a:active,
a:visited {
color: $theme-site-navbar-primary-link-color;
}
@media (max-width: map-get($theme-site-header-breakpoints, hide-secondary)) {
display: none;
}
}
}
/*! critical:end */
4 changes: 2 additions & 2 deletions sites/diverseeducation.com/config/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const resources = [
// { href: '/reports-data', label: 'Reports & Data' },
// { href: '/from-the-magazine', label: 'From the Magazine' },
{ href: 'https://www.ccnewsnow.com', label: 'Community Colleges', target: '_blank' },
{ href: 'https://www.divhealth.net', label: 'Health', target: '_blank' },
{ href: '/health', label: 'Health' },
{ href: 'https://diversejobs.net', label: 'Jobs', target: '_blank' },
{ href: 'https://www.diversemilitary.net', label: 'Military', target: '_blank' },
{ href: '/military', label: 'Military' },
{ href: 'https://keepitreal.diverseeducation.com/', label: 'Keep it Real', target: '_blank' },
{ href: 'https://shop.diverseeducation.com/', label: 'Shop', target: '_blank' },
];
Expand Down

0 comments on commit b567c7d

Please sign in to comment.