Преглед изворни кода

responsive producthunt embed width

Aykut Saraç пре 3 година
родитељ
комит
711d25da85
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/components/Producthunt/index.tsx

+ 6 - 0
src/components/Producthunt/index.tsx

@@ -5,11 +5,17 @@ const StyledProducthunt = styled.a`
   position: fixed;
   bottom: 12px;
   right: 12px;
+  
 `;
 
 const StyledImage = styled.img`
   width: 250px;
   height: 54px;
+
+  @media only screen and (max-width: 768px) {
+    width: 200px;
+    height: auto;
+  }
 `;
 
 export const Producthunt = () => {