This page provides a walkthrough on how to upload and add icons to task listings in the advocate-facing task page.
Adding icons to tasks utilises some snippets of code, don't worry however it's straightforward and knowledge of CSS is not required.
If you want to access the icons provided by Duel, you can jump straight to them.
Icon Requirements
We recommend the icons themselves being be at least 150px by 150px transparent PNGs for best visual performance.
Your team may already have pre existing icons that can be repurposed for Duel.
However, depending on task requirements you may need to create some additional.
Adding Custom Icons to Duel Tasks
- Navigate to Members > Group Profiles > Select appropriate group > Styles
- Scroll down and (if unchecked) select 'App pages custom styles'
- Click 'Find media' and upload your icons
- Once uploaded copy and paste the CSS below into the custom styles section
-
.bp-mobile-up .preview.-label-icon .preview__content {
padding-left: 51px;
background-image: url(https://pathtoimage.jpg);
background-repeat: no-repeat;
background-size: 38px;
background-position: left center;
}
.bp-mobile .preview.-label-icon .preview__h1 {
padding-left: 53px;
background-image: url(https://pathtoimage.jpg);
background-repeat: no-repeat;
background-size: 38px;
min-height: 38px;
} - Now head back to the file manager (click find media) and copy the URL of the icon you'd like to add, replace the https://pathtoimage.jpg in both sections of the code, keep the brackets in place
- Now give the icon a name so you can link it to a task. Replace the text icon with a unique label eg -facebook
- Once this is set up don't forget to save bottom right and head to your task listing. Find an appropriate task and open it up. Navigate to labels and this is where you add in the label specified previously eg facebook
- Once saved this icon will now be visible in the front end on the task listings page
Duel has some inbuilt icons that can be utilised however we recommend you use your own to match your portals branding.
Inbuilt Instagram & Facebook Icons
Replace the background image url() portion of the above code with var() instead
background-image: var(--brandingInstagramLogo);
background-image: var(--brandingFacebookLogo);
Duel Provided Icons
If you do not have the ability to create your own icons, you can take advantage of the icons provided by Duel. To learn how to use these icons, watch the short video below.
See Duel Task Icons linked here
Please note that you will need a Figma account in order to edit & export the icons. Setting up a Figma account is free, quick and easy.