From 073a437b86c09a71513b96c2cdd918bf94244980 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Sat, 3 Aug 2024 14:48:14 -0700
Subject: Don't display schedule background image on mobile

---
 client/src/components/Schedule.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'client/src/components/Schedule.tsx')

diff --git a/client/src/components/Schedule.tsx b/client/src/components/Schedule.tsx
index 554674b..a0938a8 100644
--- a/client/src/components/Schedule.tsx
+++ b/client/src/components/Schedule.tsx
@@ -1,9 +1,10 @@
 import React from 'react';
-import { Paper, Typography, useTheme } from '@mui/material';
+import { Paper, Typography, useMediaQuery, useTheme } from '@mui/material';
 import divineShepherd from '/divine-shepherd.jpg';
 
 function Schedule() {
   const theme = useTheme();
+  const isMobile = useMediaQuery('(max-width: 768px)');
   return (
     <div
       style={{
@@ -11,7 +12,7 @@ function Schedule() {
         display: 'flex',
         justifyContent: 'center',
         alignItems: 'center',
-        backgroundImage: `url(${divineShepherd})`,
+        backgroundImage: `url(${isMobile ? 'none' : divineShepherd})`,
         backgroundSize: 'cover',
       }}
     >
@@ -19,12 +20,13 @@ function Schedule() {
         style={{
           display: 'flex',
           justifyContent: 'center',
-          width: '95%',
+          width: '90%',
         }}
       >
         <Paper
           elevation={3}
           sx={{
+            borderRadius: '16px',
             width: 512,
             px: 2,
           }}
@@ -40,7 +42,7 @@ function Schedule() {
           <hr style={{ width: '100%' }} />
           <div style={{ display: 'flex', alignItems: 'center' }}>
             <div style={{ width: '35%' }}>
-              <p>3:00 PM</p>
+              <p>2:00 PM</p>
             </div>
             <div style={{ width: '65%' }}>
               <Typography variant="h6">Ceremony</Typography>
-- 
cgit v1.2.3

