Skip to content

Commit

Permalink
feat(images): add util fn to generate unsplash url
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzzertech committed Jun 14, 2019
1 parent c635f20 commit c9350a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/image.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const getUnsplashUrl = (tags: string) =>
`https://source.unsplash.com/1920x1080/?nature,${encodeURIComponent(
tags.split(' ').join(',')
)}`;

0 comments on commit c9350a1

Please sign in to comment.