Skip to content

Responsive one-page Art Gallery website with an interactive map powered by Leaflet, styled using Tailwind CSS

Notifications You must be signed in to change notification settings

VeraEnders/art-gallery-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Art Gallery website

Responsive one-page Art Gallery website with an interactive map powered by Leaflet, styled using Tailwind CSS
Desktop Mobile
Art Gallery website desktop preview Art Gallery website mobile preview
This is a solution to the Art gallery website challenge on FrontendMentor.

About the project

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

Built with

  • 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

Features

Dynamic Map Interaction

Utilized Leaflet, a JavaScript library, to enable dynamic interaction with the map.

Grayscale Layer Integration

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);

Custom Marker with Animation

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);
Map preview

Author

GitHub - VeraEnders

About

Responsive one-page Art Gallery website with an interactive map powered by Leaflet, styled using Tailwind CSS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published