Skip to content

Commit a84bbe4

Browse files
committed
add beta tag option to callouts.
1 parent 88b0572 commit a84bbe4

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/constants/homeCallouts.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@ const HOME_CALLOUTS = [
22
{
33
BADGE: 'marketing',
44
TITLE: 'Marketing Campaigns',
5+
TAG: '',
56
COPY: 'Use the SendGrid UI to add contacts, create segments, create and send campaigns, and view your stats.',
67
LINK: '/ui/sending-email/how-to-send-email-with-marketing-campaigns/',
78
},
89
{
910
BADGE: 'marketing',
1011
TITLE: 'Ads',
12+
TAG: 'Beta',
1113
COPY: 'Learn how to use SendGrid’s ad builder to build and launch an attractive display ad campaign quickly.',
1214
LINK: '/ads/getting-started-with-ads/',
1315
},
1416
{
1517
BADGE: 'development',
1618
TITLE: 'API',
19+
TAG: '',
1720
COPY: 'Use the SendGrid v3 REST API to build and send email.',
1821
LINK: '/for-developers/sending-email/api-getting-started/',
1922
},
2023
{
2124
BADGE: 'development',
2225
TITLE: 'SMTP',
26+
TAG: '',
2327
COPY: 'Use the SendGrid SMTP API to build and send email.',
2428
LINK: '/for-developers/sending-email/getting-started-smtp/',
2529
},

src/pages/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ class Index extends React.Component {
3535
<div className="home-callout__badge">
3636
{card.BADGE}
3737
</div>
38-
<h3 className="card__title is-size-h2 m-bottom-2">{card.TITLE}</h3>
38+
<h3 className="card__title is-size-h2 m-bottom-2">
39+
{card.TITLE}
40+
{(card.TAG.length > 0 ? (<span className="tag--beta">{card.TAG}</span>) : '')}
41+
</h3>
3942
<div className="is-p">{card.COPY}</div>
4043
<Link to={card.LINK} className="btn btn-primary center">Get Started</Link>
4144
</div>

src/pages/index.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ $card-gutter: 40px;
139139
@media (max-width: $width-small) {
140140
grid-template-columns: 1fr;
141141
}
142+
143+
.tag--beta {
144+
line-height: 1;
145+
margin-left: $scaledown-2;
146+
vertical-align: middle;
147+
}
142148
}
143149

144150
.col-home-callout {

0 commit comments

Comments
 (0)