Skip to content

Commit 98e0787

Browse files
committed
Move static MDX content to TSX with config settings
Wanted to pick up hotel booking code and link and book by date, as we change those apparently every year. And also wanted to pick up the contact email from settings. Resolves: #163, #155, #158, #160, #161, #159
1 parent 97acdf9 commit 98e0787

File tree

2 files changed

+125
-31
lines changed

2 files changed

+125
-31
lines changed

apps/acus/content/HotelContent.mdx

-27
This file was deleted.

apps/acus/views/Hotel.tsx

+125-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,130 @@
1-
import { MdxPage } from 'ui'
1+
import { Card } from '@mui/material'
2+
import { Theme } from '@mui/material/styles'
3+
import { ConfigDate, MDY } from 'amber/components'
4+
import { useConfiguration } from 'amber/utils'
5+
import { makeStyles } from 'tss-react/mui'
6+
import { CardBody, Page } from 'ui'
27

3-
import * as content from '../content/HotelContent.mdx'
8+
const useStyles = makeStyles()((_theme: Theme) => ({
9+
card: {
10+
marginTop: 20,
11+
marginBottom: 20,
12+
},
13+
cardBody: {
14+
paddingTop: 0,
15+
},
16+
address: {
17+
paddingLeft: 20,
18+
},
19+
}))
420

5-
const { default: HotelContent, ...frontMatter } = content
21+
const Hotel = () => {
22+
const { classes } = useStyles()
23+
const configuration = useConfiguration()
24+
return (
25+
<Page title='Embassy Suites Detroit-Livonia/Novi'>
26+
<Card className={classes.card} elevation={3}>
27+
<CardBody className={classes.cardBody}>
28+
<h3>Deadline dates this year</h3>
29+
<p>
30+
If you are trying to book your hotel room after{' '}
31+
<strong>
32+
<ConfigDate name='hotelBookingLastdate' format={MDY} />
33+
</strong>
34+
, please contact the organizers by e-mail at{' '}
35+
<a href={configuration.contactEmail}>{configuration.contactEmail}</a> before doing so.
36+
</p>
637

7-
const Hotel = () => <MdxPage frontMatter={frontMatter} component={<HotelContent />} />
38+
<h3>tl;dr</h3>
39+
<p>
40+
The <em>Ambercon booking code</em> is <strong>{configuration.hotelBookingCode}</strong>.<br />
41+
The <em>Ambercon Direct Booking Link</em> is{' '}
42+
<strong>
43+
<a href={configuration.hotelBookingUrl}>{configuration.hotelBookingUrl}</a>
44+
</strong>
45+
</p>
46+
47+
<h3>Details</h3>
48+
<p>We will once again be at the Embassy Suites Livonia.</p>
49+
<p>
50+
You can see a general layout of what the rooms are like on the Embassy Suites web page (for the moment, the
51+
hotel has a few pictures online that you can look at). Each room has a coffee machine (and they are very
52+
generous when you ask housekeeping for extra coffee/tea/sugar/etc.), a microwave, and a small fridge, along
53+
with a sink in the kitchenette area. In the living room there is a table with four chairs, a couch that
54+
converts to a pull-out bed, a lounge chair, a coffee table, end table and TV. There are hair dryers and a
55+
second TV in the bedroom, and those neat alarm clocks that will let you set two alarm times. Each room has
56+
voice mail, and high speed internet access is available for a fee.
57+
</p>
58+
59+
<p>
60+
This particular Embassy Suites is nice in that it has a beautiful open atrium, with waterfalls, streams, and
61+
plants. There's also an indoor pool and an exercise room. With your room you also get a complimentary
62+
cooked-to-order breakfast (real food, not just bagels and donuts) and two free drinks each evening at the
63+
manager's reception.
64+
</p>
65+
66+
<p>
67+
There is a restaurant in the hotel, and Embassy Suites is within short walking distance of one or two
68+
mid-priced restaurants. There is no fast food within short walking distance, however, so if you want cheap
69+
or quick food, we encourage you to bring food you can make in your room. If you have a car (or know someone
70+
who does) there is a Meijer's about one mile away, with a grocery in it, and lots of restaurants nearby.
71+
There will be a map of local establishments in the welcome area.
72+
</p>
73+
74+
<h3>Booking and Convention Pricing</h3>
75+
<p>
76+
You can book online, either through the <a href='https://www.hilton.com'>Hilton main website</a>, the{' '}
77+
<a href='https://www.hilton.com/en/hotels/dttlies-embassy-suites-detroit-livonia-novi/'>
78+
Embassy Suites Livonia page
79+
</a>
80+
, or this{' '}
81+
<strong>
82+
<a href={configuration.hotelBookingUrl}>Direct Booking Link</a>
83+
</strong>
84+
, or make your reservations by app, phone, etcetera, if you prefer. If you book after{' '}
85+
{configuration.hotelBookingLastdate.setZone(configuration.baseTimeZone).toFormat('string')} please contact
86+
us by e-mail to <a href={configuration.contactEmail}>{configuration.contactEmail}</a>.
87+
</p>
88+
89+
<p>
90+
If you book in another way, please use the <em>Ambercon Booking Code</em>. This will get you convention
91+
pricing and count your reservations against the convention reserved block of rooms that we need to fill. If
92+
you get other pricing that is cheaper, a) let us know so we can discuss this with the hotel and fix it, and
93+
b) do mention the Ambercon convention so we can still count your hotel room reservation.
94+
<br />
95+
The <em>Ambercon booking code</em> is <strong>{configuration.hotelBookingCode}</strong>).
96+
</p>
97+
98+
<h3>Directions</h3>
99+
<p>
100+
<strong>Address:</strong>
101+
<br />
102+
19525 Victor Parkway, Livonia, MI 48152
103+
<br />
104+
Phone: (734) 462-6000, (800) EMBASSY
105+
<br />
106+
Fax: (734) 462-5873
107+
<br />
108+
</p>
109+
110+
<p>
111+
Detroit Metro Airport is approximately 20 minutes south of the hotel. Here is a link to{' '}
112+
<a href='https://www.google.com/maps?q=19525+Victor+Parkway,+Livonia,+Michigan,+48152,+USA'>
113+
Google Maps for Directions
114+
</a>
115+
</p>
116+
117+
<h3>Inquiries, Feedback, etcetera</h3>
118+
<p>
119+
Please send all hotel inquiries by e-mail to{' '}
120+
<a href={configuration.contactEmail}>{configuration.contactEmail}</a>.
121+
</p>
122+
123+
<p>Thanks!</p>
124+
</CardBody>
125+
</Card>
126+
</Page>
127+
)
128+
}
8129

9130
export default Hotel

0 commit comments

Comments
 (0)