Skip to content

Instagram homepage clone - built with semantic HTML, CSS, JavaScript

Notifications You must be signed in to change notification settings

amir-the6th/Oldagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oldagram (Instagram Clone) solo project

  • This is my solution to a solo project in Scrimba.
  • This webpage is a simple clone of the Instagram interface, with some added functionalities such as:
    • Like posts
    • The number of likes for the posts gets updated on click and saved to the localStorage
    • Like button icon change on click
    • Animated gradient background
    • Disable the right-click save on images, just like Instagram

Table of contents

Overview

Links

  • Solution URL: Link
  • Live Site URL: Link

Demo

demo.mp4

Screenshot

screenshot

My process

Built with

  • HTML5 markup
  • Pure CSS
  • Vanilla JavaScript

What I learned

  • My main missions for this project were as follows:
    1. Efficiently populate posts from the posts array of objects without extra HTML code:
      • Defined a template structure in my HTML and used it in the JavaScript code to populate the posts
      • Dynamically generated selectors with unique ids based on the number of posts. e.g. this['likeBtn'+p.id] = document.querySelector('#like-btn-'+p.id);
    2. Store the number of likes for the posts so they won't reset on page refresh
      • Benefited from localStorage to set key values for the number of likes and the liked state
    3. Implement a UI similar to Instagram's, plus:
      • Animated gradient background
      • img { pointer-events: none; }: Disable the right-click save on images, , just like Instagram
  • I built this project from scratch and added more functionalities than what was asked.
  • Hope you like it! Feel free to suggest corrections to my code 🙌🏼

Author

Acknowledgments

I want to give a shout-out to the @Scrimba CEO and professor, Per Harald Borgen(@perborgen). I am currently pursuing The Frontend Developer Career Path at Scrimba.

About

Instagram homepage clone - built with semantic HTML, CSS, JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published