From 3e7585ad8daa1f69b302bc92f9a8c94551e6cd9d Mon Sep 17 00:00:00 2001 From: Ilyeo Date: Tue, 18 Jun 2024 14:13:22 -0600 Subject: [PATCH] Remove the ad section 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. --- app/assets/stylesheets/_components.sass | 20 -------------------- app/views/posts/_post.html.haml | 7 ------- 2 files changed, 27 deletions(-) diff --git a/app/assets/stylesheets/_components.sass b/app/assets/stylesheets/_components.sass index 26b9711..1e38653 100644 --- a/app/assets/stylesheets/_components.sass +++ b/app/assets/stylesheets/_components.sass @@ -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 diff --git a/app/views/posts/_post.html.haml b/app/views/posts/_post.html.haml index 20a8053..747d22a 100644 --- a/app/views/posts/_post.html.haml +++ b/app/views/posts/_post.html.haml @@ -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)