소스 검색

Try without blur

Manav Rathi 1 년 전
부모
커밋
7c0cc15a73
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      web/apps/cast/src/components/Slide.tsx

+ 4 - 5
web/apps/cast/src/components/Slide.tsx

@@ -13,8 +13,8 @@ interface SlideViewProps {
  */
  */
 export const SlideView: React.FC<SlideViewProps> = ({ url }) => {
 export const SlideView: React.FC<SlideViewProps> = ({ url }) => {
     return (
     return (
-        <Container>
-            <img src={url} alt="" />
+        <Container style={{ backgroundImage: `url(${url})` }}>
+            <img src={url} decoding="sync" alt="" />
         </Container>
         </Container>
     );
     );
 };
 };
@@ -23,13 +23,12 @@ const Container = styled("div")`
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
 
 
-    /*
     background-size: cover;
     background-size: cover;
     background-position: center;
     background-position: center;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-blend-mode: multiply;
     background-blend-mode: multiply;
     background-color: rgba(0, 0, 0, 0.5);
     background-color: rgba(0, 0, 0, 0.5);
-    */
+    opacity: 0.2;
 
 
     /* Smooth out the transition a bit.
     /* Smooth out the transition a bit.
      *
      *
@@ -50,7 +49,7 @@ const Container = styled("div")`
     img {
     img {
         width: 100%;
         width: 100%;
         height: 100%;
         height: 100%;
-        backdrop-filter: blur(10px);
+        /* backdrop-filter: blur(10px); */
         object-fit: contain;
         object-fit: contain;
     }
     }
 `;
 `;