Skip to content

Commit

Permalink
Made images on landing page optional
Browse files Browse the repository at this point in the history
  • Loading branch information
DietBepis1 committed Dec 20, 2024
1 parent 2e7d319 commit 3b613c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/db/seeds/development/02-seed-campaigns-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.exports = {
}
]),
assets: JSON.stringify({
campaign_logo: 'https://ggjalliance.org/wp-content/uploads/2019/09/Equality-Labs.png',
campaign_logo: 'https://i.imgur.com/0I80XGh.png',
campaign_background: 'https://media.assettype.com/freepressjournal/2024-09-04/i722yxsy/lg_NR15OldQueensGate0889_edit.jpg?rect=0%2C0%2C3900%2C2194&w=1200&auto=format%2Ccompress&ogImage=true',
'campaign-img-1': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ-yngrxizvU5kAZ3CP9-iQnn1OD14eXkpeXUYo96KOL6sg19Icwoes_JYlm_a61pzAcRE&usqp=CAU',
'campaign-img-2': 'https://images-prod.gothamist.com/images/GettyImages-1481222828.width-1000.jpg',
Expand Down
11 changes: 7 additions & 4 deletions src/components/CampaignBlurb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@
<div class="d-flex flex-column align-center blurb">
<div>
<img
v-if="assets['campaign-img-1']"
:src="assets['campaign-img-1']"
alt="supplemental image one"
class="mx-2 my-4 supplemental-img"
class="mx-2 my-2 supplemental-img"
/>
<img
v-if="assets['campaign-img-2']"
:src="assets['campaign-img-2']"
alt="supplemental image two"
class="mx-2 my-4 supplemental-img"
class="mx-2 my-2 supplemental-img"
/>
<img
v-if="assets['campaign-img-3']"
:src="assets['campaign-img-3']"
alt="supplemental image three"
class="mx-2 my-4 supplemental-img"
class="mx-2 my-2 supplemental-img"
/>
</div>
<div class="px-6 text-content">
<div class="px-6 py-2 text-content">
<p class="flavor-text" v-html="flavorText"></p>
</div>
<img
Expand Down

0 comments on commit 3b613c2

Please sign in to comment.