Skip to content

Commit

Permalink
Remove the ad section
Browse files Browse the repository at this point in the history
We need to remove the ad section located underneath the post section
because the image appears broken.

I've noticed that the image source is from Dropbox, so it's likely that
we've lost access to that content or the image has been removed.

I need to confirm whether this removal is temporary or permanent.
  • Loading branch information
Ilyeo committed Jun 20, 2024
1 parent 4526f12 commit 3e7585a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
20 changes: 0 additions & 20 deletions app/assets/stylesheets/_components.sass
Original file line number Diff line number Diff line change
Expand Up @@ -333,26 +333,6 @@ form
padding: 1em 0 .1em 3vw
font-size: .9em

.magma_container
position: relative
margin: 1rem auto
padding: 0 1rem
// This max width should change when we haver art for different screen sizes
max-width: 728px
img
width: 100%
object-fit: contain
+mobile
.regular_image
display: none
.mobile_image
display: block
+tablet
.regular_image
display: block
.mobile_image
display: none

.more-info
margin: 3vw auto
text-align: center
Expand Down
7 changes: 0 additions & 7 deletions app/views/posts/_post.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,3 @@
%span.post__like-label likes

= content_for :post_nav

- if post.id.to_i.odd? || action_name == 'show'
- if ad = Ad.random
.magma_container
= link_to(image_tag(ad.image_url, class: 'regular_image', alt: '', width: '728', height: '90'), clicks_path(id: ad), aria: { label: 'Github code review on demand for you' }, method: :post)
- if ad.mobile_image_url.present?
= link_to(image_tag(ad.mobile_image_url, class: 'mobile_image', alt: ''), clicks_path(id: ad), aria: { label: 'Github code review on demand for you' }, method: :post)

0 comments on commit 3e7585a

Please sign in to comment.