diff options
author | Michael Hunteman <michael@huntm.net> | 2024-11-01 14:10:11 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-11-01 14:10:11 -0700 |
commit | fab698d676d43a46b0fd5df592915ca12111dbcb (patch) | |
tree | 0106ff4ac6583f0761b43474939fd2db0fbf0f76 /client/src/components/Schedule.tsx | |
parent | 59d6e1c7470b8f544dc128825ea5ff55ac34b992 (diff) |
Blurry load
Diffstat (limited to 'client/src/components/Schedule.tsx')
-rw-r--r-- | client/src/components/Schedule.tsx | 11 |
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> ); } |