diff --git a/sites/diverseeducation.com/server/styles/components/awards.scss b/sites/diverseeducation.com/server/styles/components/awards.scss index ad923e25..145a60c9 100644 --- a/sites/diverseeducation.com/server/styles/components/awards.scss +++ b/sites/diverseeducation.com/server/styles/components/awards.scss @@ -22,6 +22,60 @@ } } +.site-navbar__items--other-years-dropdown { + top: 35px; + display: none; + flex-direction: column; + z-index: 160000; + background: #fff; + border: solid 1px $gray-200; + width: 200px; + padding: map-get($spacers, 2); + box-shadow: $theme-box-shadow-lg; + li { + margin-bottom: 0.25rem; + } +} + +.site-navbar__items--other-years-dropdown-open { + display: flex; +} + +.btn--other-years-dropdown { + @include skin-button($style: "secondary"); + padding: 0 12px 0 10px; + min-width: 40px; + height: 40px; + font-size: 1rem; + color: $white; + border-radius: 4px; + outline-color: none; + box-shadow: none; + border: 1px solid $white; + background-color: $secondary; + &:hover, + &:focus { + color: $white; + border: 1px solid $white; + background-color: $secondary; + border: 1px solid $white; + svg { + fill: $white;; + } + } + :first-child { + margin-right: 2px; + } + svg { + display: inline-block; + width: 12px; + height: 1.25rem; + fill: $white !important; + vertical-align: sub; + } +} + + @import "./awards/mppw"; @import "./awards/arthur-ashe"; @import "./awards/emerging-scholars"; diff --git a/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko b/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko index e0085afb..246bc36c 100644 --- a/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko +++ b/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko @@ -50,18 +50,20 @@ $ const mpprecommendationsSrc = currentYearData ? currentYearData.mpprecommendat
-
-

- Other Years -

- - - - ${year} -   - - -
+ + $ const otherYearsItems = Object.keys(config).reverse().map((year) => ({ href: `/awards-honors/mppwcc/${year}`, label: year })); +
diff --git a/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko b/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko index 3ed67bee..f0c1a8dc 100644 --- a/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko +++ b/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko @@ -80,21 +80,23 @@ $ const nationalPerspective = currentYearData ? currentYearData.nationalPerspect
-
-

- Other Years -

- - - - ${year} -   - - -
+ + $ const otherYearsItems = Object.keys(config).reverse().map((year) => ({ href: `/awards-honors/mppwcc/${year}`, label: year })); +
- + <@section modifiers=["card-deck"]> $ const tableOneLabels = Object.values(getAsObject(currentYearData, "tableLabels.tableOne")); @@ -132,12 +134,12 @@ $ const nationalPerspective = currentYearData ? currentYearData.nationalPerspect

HONORABLE MENTION

- Institution + Institution ${label} - + diff --git a/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko b/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko index e7557932..77999188 100644 --- a/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko +++ b/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko @@ -54,13 +54,6 @@ $ const queryParams = {
-
-
-

- Other Years -

-
-
$ const year = 2024; //current/active year $ const children = getAsArray(node, "children.edges").map(({ node }) => node).filter(({ name })=> parseInt(name) <= year); - - <@nodes|{ nodes }| nodes=children modifiers=["flush-x"]> -
- - ${node.name}  - -
- -
+ + $ const otherYearsItems = children.map((childNode) => ({ href: `/${childNode.alias}`, label: childNode.name })); +