Skip to content

Commit

Permalink
Merge pull request #55 from magma-labs/chore/remove-the-ad-section-fr…
Browse files Browse the repository at this point in the history
…om-the-post-view

Remove the ad section
  • Loading branch information
Ilyeo authored Jun 20, 2024
2 parents 78ead81 + 3e7585a commit 464b81e
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 464b81e

Please sign in to comment.