Coder Social home page Coder Social logo

codelikeagirl29 / photo-gallery-v5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 12.09 MB

Interactive photo gallery using JavaScript and CSS Grid Layout. Using JavaScript I wrote to search the captions.

Home Page: https://myjsphotogallery.netlify.app/

CSS 22.45% JavaScript 35.82% HTML 41.73%
baguettebox javascript mockup css html teamtreehouse css-grid

photo-gallery-v5's Introduction

Interactive Photo Gallery

A project demonstrating skills acquired from Team Treehouse on the Front End Web Development Techdegree track.

Live link can be found here

In this project, you will create an interactive photo gallery using JavaScript and CSS Grid Layout. Thumbnails and photos will be provided with descriptions. At the top of the page, you'll have a search area where photos will hide and show depending on user input. When the user clicks on a thumbnail, the photo will display in a lightbox. There should be "back" and "previous" arrows to cycle through photos.

Included:

  • gallery_mockup.png is an example of how the gallery page should look. = photo_lightbox.png is an example of what the lightbox should look like when active.
  • photo_captions.txt is the text you can use for the captions that should be displayed with each image in the lightbox mode.
  • An images folder contains the thumbnail images for the gallery page and larger images for the lightbox.
  • searchFilter.js is a plugin used to search and filter the thumbnail images based on the caption text.

Screenshot

screenshot

Instructions

  1. Build the web page layout using HTML and CSS, using the layout in the gallery_mockup.png file.
    • Create a gallery using the provided thumbnail images.
    • Create a search box field.
    • Use CSS Grid to layout the thumbnail gallery.
    • The design does not need to be exact, but the general spacing and arrangement of the elements should match the design of the mockups.
  2. Download and install the JavaScript lightbox plugin baguetteBox.js.
    • Structure your HTML to match the baguetteBox usage docs.
    • Create a folder named 'js'.
    • Move the baguetteBox.js file into the 'js' folder.
    • Create an app.js file in the 'js' folder.
    • Add baguetteBox.run('.gallery'); into your app.js file.
  3. Utilize the included JavaScript search plugin searchFilter.js
    • The search box at the top of the page should filter photos based on the captions.
    • The photos should filter in real-time as you type, and only display photos that match the search.
  4. Make sure to check your code is valid by running it through an HTML and CSS validator.
    • HTML Validator This will help you spot any errors that might be in your code.
    • CSS Validator
    • JSHint
    • There are a few exceptions that you don’t need to fix:
      • Don’t worry about any warnings, we just need you to check any errors that might be there.
      • If CSS validator flags use of calc, vendor prefixes or pseudo-elements/pseudo-classes these errors should be ignored.
      • If HTML validator flags use of pipe (‘|’) in Google font links/URLs this error can also be ignored.
  5. You should also check for issues with your JavaScript code using JSHint, linked in the Project Resources. JSHint may show you some warnings, so make sure to check through those for any potential problems. You do not need to fix every warning listed but reviewing them can be useful.
  6. Before you submit your project for review, make sure you can check off all of the items on the Student Project Submission Checklist. The checklist is designed to help you make sure you’ve met the grading requirements and that your project is complete and ready to be submitted!
  7. If you're having trouble with this project, make sure you take a look at this great study guide: Project 5 Study Guide

photo-gallery-v5's People

Contributors

codelikeagirl29 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.