From 3df20a20a2ea4e9755b5c3b4bd073e3a02f2fa55 Mon Sep 17 00:00:00 2001 From: Rustam Date: Sun, 4 Feb 2024 14:44:37 +0300 Subject: [PATCH] refactor: change icons --- frontend/src/templates/pages/ui/index.njk | 20 +++++++++----------- frontend/src/templates/ui/icon.njk | 16 ++++++++-------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/frontend/src/templates/pages/ui/index.njk b/frontend/src/templates/pages/ui/index.njk index ea26fe1..629230a 100644 --- a/frontend/src/templates/pages/ui/index.njk +++ b/frontend/src/templates/pages/ui/index.njk @@ -56,19 +56,17 @@ UI

Icons

- {{ icon(type='donate')}} - {{ icon(type='phone')}} - {{ icon(type='pin')}} - {{ icon(type='email')}} + {{ icon(type='donate', color='accent', size='small')}} + {{ icon(type='phone', color='accent', size='medium')}} + {{ icon(type='pin', color='accent', size='medium')}} + {{ icon(type='email', color='accent', size='medium')}}
- {{ icon(type='donate', color='white')}} - - {{ icon(type='email', color='semi-white')}} - - {{ icon(type='email', color='accent')}} - {{ icon(type='email', color='inverse')}} - {{ icon(type='email', color='secondary-inverse')}} + {{ icon(type='donate', color='inverse', size='small')}} + {{ icon(type='phone', color='secondary-inverse', size='medium')}} + {{ icon(type='pin', color='secondary-inverse', size='medium')}} + {{ icon(type='email', color='secondary-inverse', size='medium')}} +
diff --git a/frontend/src/templates/ui/icon.njk b/frontend/src/templates/ui/icon.njk index 3d772ea..c1cb96b 100644 --- a/frontend/src/templates/ui/icon.njk +++ b/frontend/src/templates/ui/icon.njk @@ -1,8 +1,8 @@ -{% macro icon(type, color='') -%} +{% macro icon(type, color='', size) -%} - - - {% if type == 'donate' %} + + + {% if type == 'donate' %} @@ -20,17 +20,17 @@ {% if type == 'pin' %} - + - + {% endif %} {% if type == 'email' %} - + @@ -38,7 +38,7 @@ - + {% endif %}