Skip to content

Commit

Permalink
feat: add promo for faster image loading
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Mar 14, 2024
1 parent ee8d73a commit 7493fa4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions components/pages/posts/PromotedContent.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import {default as random_weighted_choice} from 'random-weighted-choice'
import { default as random_weighted_choice } from 'random-weighted-choice'
const premiumPromotions = [
const premiumPromotions = [
// Premium
{
media: '/img/promo/premium/Additional Boorus.jpg',
Expand Down Expand Up @@ -59,14 +59,20 @@ const premiumPromotions = [
mediaType: 'image',
link: '/premium?utm_source=internal&utm_medium=promo-support-us'
},
// TODO: Improve media
// {
// media: '/img/promo/premium/Tag Collections.jpg',
// mediaWidth: 1280,
// mediaHeight: 1280,
// mediaType: 'image',
// link: '/premium?utm_source=internal&utm_medium=promo-tag-collections'
// }
{
media: '/img/promo/premium/Tag Collections.jpg',
mediaWidth: 1280,
mediaHeight: 1280,
mediaType: 'image',
link: '/premium?utm_source=internal&utm_medium=promo-tag-collections'
},
{
media: '/img/promo/premium/Faster Image Loading.jpg',
mediaWidth: 1280,
mediaHeight: 1280,
mediaType: 'image',
link: '/premium?utm_source=internal&utm_medium=promo-faster-image-loading'
}
]
const otherPromotions = [
Expand Down Expand Up @@ -95,7 +101,7 @@ const premiumPromotions = [
mediaHeight: 1200,
mediaType: 'image',
link: 'https://candy.ai?via=rule-3496'
},
}
// dreamgf.ai
// {
// media: '/img/promo/referrals/DreamGF-300x600-2.gif',
Expand Down
Binary file added public/img/promo/premium/Faster Image Loading.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/promo/premium/Tag Collections.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7493fa4

Please sign in to comment.