Skip to content

Commit

Permalink
Merge branch 'staging' into master-10-18-2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina authored Oct 18, 2023
2 parents 5d4dbc3 + 3c528d0 commit ca27045
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 @@ -98,6 +98,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)>
<global-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 @@ -489,4 +489,25 @@ label {
}

}

.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/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = {
},
logos: {
navbar: {
src: 'https://img.diverseeducation.com/files/base/diverse/all/image/static/diverse-education-logo.png?h=60&auto=format,compress&q=70',
src: 'https://img.diverseeducation.com/files/base/diverse/all/image/static/DE-40year-anniversary.png?h=60&auto=format,compress&q=70',
srcset: [
'https://img.diverseeducation.com/files/base/diverse/all/image/static/diverse-education-logo.png?h=60&auto=format,compress&q=70&dpr=2 2x',
'https://img.diverseeducation.com/files/base/diverse/all/image/static/DE-40year-anniversary.png?h=60&auto=format,compress&q=70&dpr=2 2x',
],
},
footer: {
Expand Down

0 comments on commit ca27045

Please sign in to comment.