Desktop | Mobile |
---|---|
This challenge is to build out this art gallery website and get it looking as close to the design as possible.
Users should be able to:
View the optimal layout for each page depending on their device's screen size
See hover states for all interactive elements throughout the site
- Semantic HTML5 markup
- Mobile-first workflow
- Tailwind CSS - A utility-first CSS framework
- LeafletJS - An open-source JavaScript library for interactive maps
- Leaflet.TileLayer.Grayscale - The LeafletJS plugin for displaying maps in grayscale
Utilized Leaflet, a JavaScript library, to enable dynamic interaction with the map.
Integrated the Leaflet.TileLayer.Grayscale plugin to transform the map into a grayscale representation.
index.html:
<!-- Include Leaflet.Grayscale JS -->
<script src="./src/leaflet-grayscale.js"></script>
script.js:
// Add the grayscale layer
L.tileLayer.grayscale('https://tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
Implemented a unique map marker with a blinking animation using Leaflet's custom icon feature.
var myIcon = L.icon({
iconUrl: './assets/icons/icon-location.svg',
...
className: 'blinking'
});
var marker = L.marker([41.479736, -71.311124], {icon: myIcon}).addTo(map);
GitHub - VeraEnders