myersdg / rubyTarker

2 stars 3 forks source link

ColourLovers has CORS problems #7

Closed Qlaub closed 2 years ago

Qlaub commented 2 years ago

ColourLovers Doesn't Work Due to CORS

Potential Fix

Google images could be used to generate a random grayscale background image from the top 100 results. Keyword search background image, large size, white or black colors.

Alternative

Randomly cycle through 20 hardcoded grayscale hero images (or just have one hero), and use an icon API as the second API

Qlaub commented 2 years ago

Unsplash API can be used to generate hero image. client_id needs an API key with every query (example below).

https://api.unsplash.com/search/photos/?client_id=twHOIsQ9Yvbs3xzZqvod32i4hlZVRGHDt8kmNmVQP-E&query=background&color=black_and_white&orientation=landscape