-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
314f1f8
commit d0d8d63
Showing
16 changed files
with
549 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ module.exports = { | |
context: { | ||
colors: [ | ||
"blue-100", | ||
"blue-300", | ||
"blue-600", | ||
"blue-700", | ||
"green-100", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Navigation |
101 changes: 101 additions & 0 deletions
101
src/_includes/components/navigation/navigation.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
module.exports = { | ||
title: "Navigation", | ||
context: { | ||
items: [ | ||
{ | ||
title: "Insights" | ||
}, | ||
{ | ||
title: "Practices" | ||
}, | ||
{ | ||
title: "Techniques" | ||
}, | ||
{ | ||
title: "Activities" | ||
} | ||
] | ||
}, | ||
variants: [ | ||
{ | ||
title: "Current Page - Insights", | ||
context: { | ||
items: [ | ||
{ | ||
title: "Insights", | ||
current: true | ||
}, | ||
{ | ||
title: "Practices" | ||
}, | ||
{ | ||
title: "Techniques" | ||
}, | ||
{ | ||
title: "Activities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
title: "Current Page - Practices", | ||
context: { | ||
items: [ | ||
{ | ||
title: "Insights" | ||
}, | ||
{ | ||
title: "Practices", | ||
current: true | ||
}, | ||
{ | ||
title: "Techniques" | ||
}, | ||
{ | ||
title: "Activities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
title: "Current Page - Techniques", | ||
context: { | ||
items: [ | ||
{ | ||
title: "Insights" | ||
}, | ||
{ | ||
title: "Practices" | ||
}, | ||
{ | ||
title: "Techniques", | ||
current: true | ||
}, | ||
{ | ||
title: "Activities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
title: "Current Page - Activities", | ||
context: { | ||
items: [ | ||
{ | ||
title: "Insights" | ||
}, | ||
{ | ||
title: "Practices" | ||
}, | ||
{ | ||
title: "Techniques" | ||
}, | ||
{ | ||
title: "Activities", | ||
current: true | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<nav aria-labelledby="navigation" x-data="{open: false}"> | ||
<a rel="home" href="/"> | ||
{% include "../../../static/svg/idrc.svg" %} | ||
<span>Inclusive Design Guide</span> | ||
</a> | ||
<button aria-expanded="false" x-bind:aria-expanded="open" @click="open = !open">{% include "../../../static/svg/close.svg" %}{% include "../../../static/svg/menu.svg" %}<span class="label">menu</span></button> | ||
<div class="inner flow"> | ||
<h2 id="navigation">Menu</h2> | ||
<ul role="list"> | ||
{% for item in params.items %} | ||
<li> | ||
<a class="--{{ item.title | slugify }}" href="#{{ item.title | slugify }}"{% if item.current %} aria-current="page"{% endif %}>{{ item.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
a { | ||
color: var(--fl-linkColor, var(--link-color)); | ||
font-weight: 800; | ||
text-decoration: underline; | ||
} | ||
|
||
|
Oops, something went wrong.