Skip to content

Commit 7baade3

Browse files
committed
Hard code text in newsletter CTAs
1 parent 3a74d4d commit 7baade3

3 files changed

Lines changed: 13 additions & 28 deletions

File tree

‎src/components/CallToAction/Newsletter/layouts/article.astro‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22
import GDPRConsent from '@components/Consent/Checkbox/index.astro'
33
import Confetti from '@components/Animations/Confetti/index.astro'
44
import Icon from '@components/Icon/index.astro'
5-
import type { NewsletterProps } from '@components/CallToAction/Newsletter/client/@types'
65
7-
export type Props = Omit<NewsletterProps, 'variant'>
8-
9-
const {
10-
title = 'Stay Updated',
11-
description = 'One deep dive per month on infrastructure topics, plus quick wins you can ship the same day.',
12-
placeholder = 'Enter your email address',
13-
buttonText = 'Subscribe',
14-
} = Astro.props
6+
const title = 'Stay Updated'
7+
const description = 'One deep dive per month on infrastructure topics, plus quick wins you can ship the same day.'
8+
const placeholder = 'Enter your email address'
9+
const buttonText = 'Subscribe'
1510
---
1611

17-
<section>
12+
<section class="mb-4 md:mb-6">
1813
<div class="bg-content border border-trim rounded-xl p-6 md:p-8 font-mono">
1914
<div class="flex items-center gap-2 mb-4 pb-4 border-b border-page-base/20">
2015
<div class="w-3 h-3 rounded-full bg-danger"></div>

‎src/components/CallToAction/Newsletter/layouts/home.astro‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@ import { Image } from 'astro:assets'
33
import GDPRConsent from '@components/Consent/Checkbox/index.astro'
44
import Confetti from '@components/Animations/Confetti/index.astro'
55
import Icon from '@components/Icon/index.astro'
6-
import type { NewsletterProps } from '@components/CallToAction/Newsletter/client/@types'
76
import newsletterSignupImage from '@assets/images/newsletter-signup.jpg'
87
9-
export type Props = Omit<NewsletterProps, 'variant'>
10-
11-
const {
12-
title = 'Stay Updated',
13-
description = 'A monthly dispatch on platform engineering, DevOps, SRE, and cloud infrastructure. Real problems, real solutions.',
14-
placeholder = 'Enter your email address',
15-
buttonText = 'Subscribe',
16-
} = Astro.props
8+
const title = 'Stay Updated'
9+
const description = 'A monthly dispatch on platform engineering, DevOps, SRE, and cloud infrastructure. Real problems, real solutions.'
10+
const placeholder = 'Enter your email address'
11+
const buttonText = 'Subscribe'
1712
---
1813

1914
<div class="container mx-auto md:px-4 sm:px-6 lg:px-8">

‎src/components/CallToAction/Newsletter/layouts/page.astro‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@
99
import GDPRConsent from '@components/Consent/Checkbox/index.astro'
1010
import Confetti from '@components/Animations/Confetti/index.astro'
1111
import Icon from '@components/Icon/index.astro'
12-
import type { NewsletterProps } from '@components/CallToAction/Newsletter/client/@types'
1312
14-
export type Props = Omit<NewsletterProps, 'variant'>
15-
16-
const {
17-
title = 'Stay Updated',
18-
description = 'Platform engineering insights delivered to your inbox once a month. No spam, no sales pitches.',
19-
placeholder = 'Enter your email address',
20-
buttonText = 'Subscribe',
21-
} = Astro.props
13+
const title = 'Stay Updated'
14+
const description = 'Platform engineering insights delivered to your inbox once a month. No spam, no sales pitches.'
15+
const placeholder = 'Enter your email address'
16+
const buttonText = 'Subscribe'
2217
---
2318

2419
<div class="w-full max-w-xl mx-auto">

0 commit comments

Comments
 (0)