Skip to content

A simple vanilla JS app using the Pixabay API to display images of flowers in an instagram like layout

Notifications You must be signed in to change notification settings

asands94/flowergram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview

flowergram

Deployed Project

Project Description

A simple vanilla JavaScript app using the Pixabay API to display images of flowers in an instagram-like layout. Users may also search for any image (i.e. dog, boat) and results will return images of flowers that best match the query (i.e. a dog in a field of flowers).

API and Data Sample

I used the Pixabay API which hosts images from a variety of categories. Pixabay

{
"total": 4692,
"totalHits": 500,
"hits": [
    {
        "id": 195893,
        "pageURL": "https://pixabay.com/en/blossom-bloom-flower-195893/",
        "type": "photo",
        "tags": "blossom, bloom, flower",
        "previewURL": "https://cdn.pixabay.com/photo/2013/10/15/09/12/flower-195893_150.jpg"
        "previewWidth": 150,
        "previewHeight": 84,
        "webformatURL": "https://pixabay.com/get/35bbf209e13e39d2_640.jpg",
        "webformatWidth": 640,
        "webformatHeight": 360,
        "largeImageURL": "https://pixabay.com/get/ed6a99fd0a76647_1280.jpg",
        "fullHDURL": "https://pixabay.com/get/ed6a9369fd0a76647_1920.jpg",
        "imageURL": "https://pixabay.com/get/ed6a9364a9fd0a76647.jpg",
        "imageWidth": 4000,
        "imageHeight": 2250,
        "imageSize": 4731420,
        "views": 7671,
        "downloads": 6439,
        "likes": 5,
        "comments": 2,
        "user_id": 48777,
        "user": "Josch13",
        "userImageURL": "https://cdn.pixabay.com/user/2013/11/05/02-10-23-764_250x250.jpg",
    },
    {
        "id": 73424,
        ...
    },
    ...
]
}

Wireframes

The idea was to do style similar to Instagram.

Change Log

About

A simple vanilla JS app using the Pixabay API to display images of flowers in an instagram like layout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published