gordon-cs / appbuilder-pwa

MIT License
0 stars 0 forks source link

Drawer: Images > Navigation Drawer - 2pts #25

Closed jakedcolbert closed 1 year ago

jakedcolbert commented 2 years ago
chrisvire commented 2 years ago

Q: How should we deal with different resolutions of devices?

Scripture App Builder will have navigation drawer images in multiple resolutions:

Image

jakedcolbert commented 2 years ago

Research on <img> tag handling multi resolutions

chrisvire commented 2 years ago

Take a look:

https://www.w3schools.com/Css/css_rwd_images.asp

https://www.w3schools.com/html/html_responsive.asp

General article about responsive icons

chrisvire commented 2 years ago

Navigation Drawer images will be in:

images/nav_drawer.png images/nav_drawer@2x.png

You can try something like this:

            <picture>
                <source src="images/nav_drawer.png" srcset="images/nav_drawer@2x.png 2x" />
                <img src="images/nav_drawer.png" alt="Drawer Header" style="width:auto;" />
            </picture>