Skip to content

Commit 74096f0

Browse files
committed
Update doorbell CTAs
1 parent 1b6ea3a commit 74096f0

1 file changed

Lines changed: 38 additions & 14 deletions

File tree

app/doorbell/page.tsx

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,24 @@ export default function Doorbell() {
120120
<ParagraphSection>
121121
<Paragraph>Ring the doorbell to enter the event.</Paragraph>
122122
</ParagraphSection>
123-
<ButtonSection>
123+
{nearestEvent && (
124+
<ButtonSection>
125+
<Button
126+
href={nearestEvent.url}
127+
variant="primary"
128+
size="default"
129+
target="_blank"
130+
rel="noopener noreferrer"
131+
>
132+
Get Your Ticket
133+
</Button>
134+
</ButtonSection>
135+
)}
136+
<DoorbellSection>
137+
<DoorbellMessage>
138+
Is no one available at the door to check you in? Ring the doorbell and someone will
139+
with you soon to check you in.
140+
</DoorbellMessage>
124141
{isRinging ? (
125142
<AnimatedButtonContent
126143
animate={{
@@ -136,22 +153,11 @@ export default function Doorbell() {
136153
🛎️
137154
</AnimatedButtonContent>
138155
) : (
139-
<Button size="default" onClick={handleDoorbellClick}>
156+
<Button size="default" variant="tertiary" onClick={handleDoorbellClick}>
140157
Ring Doorbell
141158
</Button>
142159
)}
143-
{nearestEvent && (
144-
<Button
145-
href={nearestEvent.url}
146-
variant="tertiary"
147-
size="default"
148-
target="_blank"
149-
rel="noopener noreferrer"
150-
>
151-
Get Your Ticket
152-
</Button>
153-
)}
154-
</ButtonSection>
160+
</DoorbellSection>
155161
{ringCount >= 3 && (
156162
<CallSection>
157163
<CallMessage>No one answered?</CallMessage>
@@ -241,6 +247,24 @@ const ButtonSection = styled.section`
241247
gap: 1rem;
242248
`
243249

250+
const DoorbellSection = styled.section`
251+
display: flex;
252+
flex-direction: column;
253+
align-items: center;
254+
justify-content: center;
255+
gap: 1rem;
256+
padding: 0 3rem;
257+
margin-top: 1rem;
258+
`
259+
260+
const DoorbellMessage = styled.p`
261+
font-size: 1rem;
262+
text-align: center;
263+
max-width: 420px;
264+
margin: 0;
265+
color: rgba(255, 255, 255, 0.7);
266+
`
267+
244268
const AnimatedButtonContent = styled(motion.span)`
245269
display: inline-block;
246270
font-size: 2rem;

0 commit comments

Comments
 (0)