Skip to content

Commit

Permalink
Decorate the menu with more tooltips (#448 #447)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed May 3, 2022
1 parent 16ee433 commit 305b09a
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions frontend/src/menu/menu-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
>
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<a
class="navbar-item tooltip is-tooltip-bottom"
href="/"
data-tooltip="{{#i18n 'tooltip.menu-banner'}}Go to the landing page{{/i18n}}"
>
<img src="{{static 'image/read-it-logo-med-colour-no-letters.png'}}" alt="Read-It">
</a>
<a
Expand Down Expand Up @@ -37,7 +41,7 @@
<span>{{#i18n 'button.search'}}Search{{/i18n}}</span>
</span>
</a>
<div class="navbar-item has-dropdown is-hoverable" data-tooltip="{{#i18n 'tooltip.explore-menu'}}Get a random selection of reading experiences and annotations{{/i18n}}">
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
<span class="icon-text">
<span class="icon is-small has-text-primary">
Expand All @@ -47,10 +51,20 @@
</span>
</a>
<div class="navbar-dropdown">
<a href="/explore/sources" class="navbar-item" id="source-list">
<a
href="/explore/sources"
class="navbar-item tooltip is-tooltip-right"
id="source-list"
data-tooltip="{{#i18n 'tooltip.explore-sources'}}Discover a random selection of sources{{/i18n}}"
>
{{#i18n 'button.sources'}}Sources{{/i18n}}
</a>
<a href="/explore/items" class="navbar-item" id="item-list">
<a
href="/explore/items"
class="navbar-item tooltip is-tooltip-right"
id="item-list"
data-tooltip="{{#i18n 'tooltip.explore-items'}}Discover a random selection of annotated items{{/i18n}}"
>
{{#i18n 'button.items'}}Items{{/i18n}}
</a>
</div>
Expand Down Expand Up @@ -86,10 +100,18 @@
<a class="navbar-item" href="/landing">
{{#i18n 'button.landing-page'}}Personal landing page{{/i18n}}
</a>
<a class="navbar-item" href="/explore/sources/mine">
<a
class="navbar-item tooltip is-tooltip-left"
href="/explore/sources/mine"
data-tooltip="{{#i18n 'tooltip.my--menu'}}View the sources that you uploaded{{/i18n}}"
>
{{#i18n 'button.my-sources'}}My sources{{/i18n}}
</a>
<a class="navbar-item" href="/explore/items/mine">
<a
class="navbar-item tooltip is-tooltip-left"
href="/explore/items/mine"
data-tooltip="{{#i18n 'tooltip.my--menu'}}View the items that you annotated{{/i18n}}"
>
{{#i18n 'button.my-items'}}My items{{/i18n}}
</a>
<hr class="navbar-divider">
Expand Down

0 comments on commit 305b09a

Please sign in to comment.