Skip to content

Instantly share code, notes, and snippets.

@eniiku
Last active March 20, 2023 10:27
Show Gist options
  • Save eniiku/65a95533de1f005eee35d5eb91f3e141 to your computer and use it in GitHub Desktop.
Save eniiku/65a95533de1f005eee35d5eb91f3e141 to your computer and use it in GitHub Desktop.
Compilation of images and their related information for the December coding 360 challenge

ASSETS FOR THE DECEMBER #CODING360CHALLENGE

This guide is intended to assist both newbies and seasoned veterans.

Notes: The JSON files in this GitHub gist were primarily grouped depending on the locations (where they can be utilized). The only exception is the marketplace.json file, where you can find the featured products that can be used on the home page

HOW TO USE

  • Select the JSON file you wish to use. In my case, I chose the carousel.json .
  • In the file section's top-right corner, select the "Raw" button. This will take you to another website that displays the raw URL of the JSON file.
  • Copy this page's URL.
  • Fetch from within your editor and use as you like.

Here's how i would go about fetching said URL

// assign the url to a variable
const URL = https://gist.githubusercontent.com/eniiku/65a95533de1f005eee35d5eb91f3e141/raw/439bc2dd8693b490539eae236918f4a53dd17457/carousel.json

//fetch contents of the url
fetch(URL)
	.then(response => response.json())
	.then((auctionData) => console.log(auctionData));

Of course, this is just one way to go about it.
Let me know how you'd approach this by leaving a comment below with your preferred method, and there you have it! Have fun coding!

{
"products": [
{
"id": "ap1",
"url": "https://images.unsplash.com/photo-1667558541580-6364170cba40?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDJ8fHx8fHwyfHwxNjY3NjcxMjkw&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "ap2",
"url": "https://images.unsplash.com/photo-1667521452940-0a127d88e345?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDEyN3x8fHx8fDJ8fDE2Njc2NzE3MzU&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "ap3",
"url": "https://images.unsplash.com/photo-1667561420668-3441555cabc9?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDEzOXx8fHx8fDJ8fDE2Njc2NzE3MzU&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
}
],
"bids": [
{
"id": "ab1",
"name": "out of the box",
"creator": "dan murray",
"date": {
"day": 12,
"month": 8,
"year": 22
},
"bid": {
"current": {
"eth": 0.987
},
"highest": {
"eth": 0.57
}
},
"url": "https://images.unsplash.com/photo-1622737133809-d95047b9e673?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDE1fHxhcnR8ZW58MHx8fHwxNjY3NTIyODQ5&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "ab1",
"name": "falling apart",
"creator": "jacob banks",
"date": {
"day": 12,
"month": 8,
"year": 22
},
"bid": {
"curent": {
"eth": 0.99
},
"highest": {
"eth": 0.34
},
"url": "https://images.unsplash.com/photo-1438012940875-4bf705025a8a?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDQxfHxhcnR8ZW58MHx8fHwxNjY3NTM1MzI1&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
}
}
]
}
[
{
"id": "d1",
"title": "eyo: eko for show",
"creator": "aliya minat",
"date": {
"day": 21,
"month": "november",
"time": "11am",
"timezone": "WAT"
}
},
{
"id": "d2",
"title": "ginger suburbs",
"creator": "tina benson",
"date": {
"day": 21,
"month": "november",
"time": "11am",
"timezone": "WAT"
}
},
{
"id": "d3",
"title": "sink",
"creator": "aliya minat",
"date": {
"day": 21,
"month": "november",
"time": "11am",
"timezone": "WAT"
}
},
{
"id": "d4",
"title": "warped '99",
"creator": "aliya minat",
"date": {
"day": 21,
"month": "november",
"time": "11am",
"timezone": "WAT"
}
}
]
{
"featured_products": [
{
"id": "ftp1",
"url": "https://images.unsplash.com/photo-1545109281-be4a17120061?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDQxfHxlZ3lwdCUyMGFydHxlbnwwfHx8fDE2NjU5NjI1MDI&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "ftp2",
"url": "https://images.unsplash.com/photo-1662994314594-e8e78872b0bf?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDkwfHxlZ3lwdCUyMGFydHxlbnwwfHx8fDE2NjU5NjI1MTU&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "ftp3",
"url": "https://images.unsplash.com/photo-1654198777457-55649a273251?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDMxMXx8ZWd5cHQlMjBhcnR8ZW58MHx8fHwxNjY1OTYyNjI2&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
}
],
"products": [
{
"id": "p1",
"name": "philomena '22",
"creator": "clearamane",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 35.50,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1667338444771-c5112047b2a6?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTY2NzY0Nzg1MQ&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p2",
"name": "boolean egyptian",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1545109281-be4a17120061?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDQxfHxlZ3lwdCUyMGFydHxlbnwwfHx8fDE2NjU5NjI1MDI&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p3",
"name": "blanc",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1473286835901-04adb1afab03?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDc4fHx2aW50YWdlfGVufDB8fHx8MTY2NTc5NDA3OA&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p4",
"name": "ellipsia",
"creator": "clearamane",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 36.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1542038784456-1ea8e935640e?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDR8fHBob3RvZ3JhcGh5fGVufDB8fHx8MTY2NTczOTQ5Ng&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p5",
"name": "the lawmakers",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1579618218290-24a26f63a738?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDIyfHx2aW50YWdlfGVufDB8fHx8MTY2NTc0NTA1NA&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p6",
"name": "veil",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1665708385751-0e2e5a72e06e?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDg1fHx8fHx8Mnx8MTY2NTc5MjM3MA&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p7",
"name": "alternating",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1501472312651-726afe119ff1?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDI2fHxhcnR8ZW58MHx8fHwxNjY1Nzg0NjU0&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p8",
"name": "rosemary '22",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1580974582391-a6649c82a85f?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8c2VhcmNofDE2MXx8dmludGFnZXxlbnwwfHx8fDE2NjU3OTQxMDA&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p9",
"name": "beverly",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1501786223405-6d024d7c3b8d?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8cmFuZG9tfHx8fHx8fHx8MTY2NTc5NDQ0OQ&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p10",
"name": "sassy",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 3.20
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1665873806985-9b487caa672e?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTY2NTk1NDA0MA&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p11",
"name": "escape",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.03
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1665873845039-addf16e6e180?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDk0fHx8fHx8Mnx8MTY2NjAwMjkwMw&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p12",
"name": "unknown",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.49
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1666905683871-ee824bfb3d29?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTY2Njk1ODQxNA&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p13",
"name": "wrapped '99",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1667337395744-7d6d829438e0?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDEyOHx8fHx8fDJ8fDE2Njc1NzU5MzU&ixlib=rb-4.0.3&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
},
{
"id": "p14",
"name": "ellipsia",
"creator": "ali dawa",
"origin": "made in italy",
"views": "1.7k views",
"price": {
"usd": 3.90,
"eth": 0.09
},
"size": {
"ft": 200
},
"url": "https://images.unsplash.com/photo-1665808044552-102b98dbdda6?crop=entropy&cs=tinysrgb&fm=jpg&ixid=Mnw3MjAxN3wwfDF8YWxsfDgwfHx8fHx8Mnx8MTY2NTk1NDAzMA&ixlib=rb-1.2.1&q=80&q=85&fmt=jpg&crop=entropy&cs=tinysrgb&w=450"
}
]
}
@olaniyi38
Copy link

Thank you for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment