Giter Club home page Giter Club logo

beaches_js_challenge's Introduction

Best Beaches in the World

Overview

This interactive webpage showcases the best beaches in the world. Users can browse through beautiful images, read descriptions, and view the location of each beach on an interactive map.

Features

  • Dynamic Image Slider: Beautiful images fetched from Unsplash API based on beach names.
  • Beach Descriptions: Detailed information about each beach.
  • Interactive Map: View the location of each beach using Google Maps API.
  • Responsive Design: Ensures a great user experience on both desktop and mobile devices.

Technologies Used

  • HTML: Structure of the webpage.
  • CSS: Styling and layout.
  • JavaScript: Dynamic content and interactivity.
  • Unsplash API: Fetching high-quality images.
  • Google Maps API: Displaying beach locations on a map.

Installation

  1. Clone the repository:

    git clone https://github.com/Monik2002/best-beaches.git
  2. Navigate to the project directory:

    cd best-beaches
  3. Open index.html in your preferred web browser.

Usage

  1. Browse Beaches: Scroll through the list of top beaches. Each beach is accompanied by a stunning image and a brief description.
  2. Image Slider: Use the navigation buttons to cycle through images of different beaches.
  3. View on Map: Click the "View on Map" button to see the location of the beach on an interactive map.

API Keys

You will need to replace the placeholder API keys in the index.html file with your own keys:

  • Unsplash API Key
  • Google Maps API Key

To get these keys:

  • Unsplash API: Sign up at Unsplash and create a new application to get your access key.
  • Google Maps API: Go to the Google Cloud Console, enable the Maps JavaScript API, and create credentials to obtain your API key.

Demo

js_beaches_recording.mp4

Replace the placeholders in the index.html file:

const accessKey = 'YOUR_UNSPLASH_ACCESS_KEY';

<script async defer 
src="https://maps.googleapis.com/maps/api/js?key=YOUR_GOOGLE_MAPS_API_KEY&callback=initMap"></script>

beaches_js_challenge's People

Contributors

monik2002 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.