summaryrefslogtreecommitdiff
path: root/client/src/components/Schedule.tsx
blob: 64140e4767f53b610406ff54ec60c9bcaeea7c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import React from 'react';
import {
  IconButton,
  Paper,
  Typography,
  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';

function Schedule() {
  const dispatch = useAppDispatch();
  const theme = useTheme();
  const isMobile = useMediaQuery('(max-width: 768px)');

  const handleOpen = () => {
    dispatch(showDialog());
  };

  return (
    <div
      style={{
        height: '100%',
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center',
        backgroundImage: `url(${isMobile ? 'none' : divineShepherd})`,
        backgroundSize: 'cover',
      }}
    >
      <Paper
        elevation={3}
        sx={{
          width: { xs: '90%', md: 512 },
          px: 2,
          borderRadius: 2,
        }}
      >
        <div style={{ display: 'flex', alignItems: 'center' }}>
          <div style={{ width: '35%' }}>
            <p>April 26, 2025</p>
          </div>
          <div
            style={{
              display: 'flex',
              justifyContent: 'space-around',
              width: '65%',
            }}
          >
            <Typography variant="h5" sx={{ lineHeight: 1.6 }}>
              Wedding Schedule
            </Typography>
            <IconButton
              color="inherit"
              onClick={handleOpen}
              aria-label="insert invitation"
            >
              <InsertInvitationIcon />
            </IconButton>
          </div>
        </div>
        <hr style={{ width: '100%' }} />
        <div style={{ display: 'flex', alignItems: 'center' }}>
          <div style={{ width: '35%' }}>
            <p>4:30 pm</p>
          </div>
          <div style={{ width: '65%' }}>
            <Typography variant="h6">Ceremony</Typography>
            <p>
              Divine Shepherd
              <br />
              <a
                href="https://maps.app.goo.gl/dGWvmjPiVjNGBVkZ9"
                style={{ color: theme.palette.primary.main }}
              >
                15005 Q St, Omaha, NE 68137
              </a>
            </p>
          </div>
        </div>
        <hr style={{ width: '100%' }} />
        <div style={{ display: 'flex', alignItems: 'center' }}>
          <div style={{ width: '35%' }}>
            <p>6:00 pm</p>
          </div>
          <div style={{ width: '65%' }}>
            <Typography variant="h6">Reception</Typography>
            <p>
              A Venue on the Ridge
              <br />
              <a
                href="https://maps.app.goo.gl/35RRqxzQdq6E4eSMA"
                style={{ color: theme.palette.primary.main }}
              >
                20033 Elkhorn Ridge Dr, Elkhorn, NE 68022
              </a>
            </p>
          </div>
        </div>
      </Paper>
    </div>
  );
}

export default Schedule;