summaryrefslogtreecommitdiff
path: root/client/src/components/Schedule.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-11-01 14:10:11 -0700
committerMichael Hunteman <michael@huntm.net>2024-11-01 14:10:11 -0700
commitfab698d676d43a46b0fd5df592915ca12111dbcb (patch)
tree0106ff4ac6583f0761b43474939fd2db0fbf0f76 /client/src/components/Schedule.tsx
parent59d6e1c7470b8f544dc128825ea5ff55ac34b992 (diff)
Blurry load
Diffstat (limited to 'client/src/components/Schedule.tsx')
-rw-r--r--client/src/components/Schedule.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/client/src/components/Schedule.tsx b/client/src/components/Schedule.tsx
index 64140e4..dfe4a30 100644
--- a/client/src/components/Schedule.tsx
+++ b/client/src/components/Schedule.tsx
@@ -6,10 +6,10 @@ import {
useMediaQuery,
useTheme,
} from '@mui/material';
-import divineShepherd from '/divine-shepherd.jpg';
import InsertInvitationIcon from '@mui/icons-material/InsertInvitation';
import { useAppDispatch } from '../hooks';
import { showDialog } from '../slices/uiSlice';
+import { BlurryLoadDiv } from './BlurryLoadDiv';
function Schedule() {
const dispatch = useAppDispatch();
@@ -21,15 +21,18 @@ function Schedule() {
};
return (
- <div
+ <BlurryLoadDiv
style={{
height: '100%',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
- backgroundImage: `url(${isMobile ? 'none' : divineShepherd})`,
+ backgroundImage: `url(${
+ isMobile ? 'none' : '/small/divine-shepherd.webp'
+ })`,
backgroundSize: 'cover',
}}
+ data-large="/full/divine-shepherd.jpg"
>
<Paper
elevation={3}
@@ -101,7 +104,7 @@ function Schedule() {
</div>
</div>
</Paper>
- </div>
+ </BlurryLoadDiv>
);
}