diff options
author | Huy Nguyen <huyb.1991@gmail.com> | 2020-07-02 10:03:40 +0300 |
---|---|---|
committer | Huy Nguyen <huyb.1991@gmail.com> | 2020-07-02 10:03:40 +0300 |
commit | 91ffa8a55c1d6eda2ec333d0035dc47c03ee2445 (patch) | |
tree | cbb6dae27e5011ccf9435f1d8045eab83ee7f1be | |
parent | 6a8f21ba55fc790d7cadd0f866ce60a3a2ff58f9 (diff) |
Add icon to header
-rw-r--r-- | layouts/partials/header.html | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index dee2d8a..8b2e762 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,11 +23,9 @@ </ul> </nav> - <button - [text]="darkMode ? 'Light Mode' : 'Dark Mode'" - on="tap:AMP.setState({darkMode: !darkMode})" - > - Dark Mode + <button on="tap:AMP.setState({darkMode: !darkMode})"> + <svg class="icon moon" fill="currentColor"><use xlink:href="#icon-moon" /></svg> + <svg class="icon sunny" fill="currentColor"><use xlink:href="#icon-sunny" /></svg> </button> {{ partial "social.html" . }} |