Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions components/EmbedCodeBlock/EmbedCodeBlock.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,34 @@
border-radius: 999px;
background: $blue;
color: $white;
font-size: 0.72rem;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: 0.05em;
line-height: 1;
margin-right: 0.45rem;
margin-right: 0.2rem;
padding: 0.22rem 0.56rem;
text-transform: uppercase;
vertical-align: middle;
margin-bottom: 0.2rem;
padding: 0.5rem 0.7rem 0.45rem 0.75rem;
font-style: normal;
}

.stepDescription {
font-size: 1.2rem;
line-height: 1.5;
margin-bottom: 1rem;
font-weight: 400;
font-style: italic;
}
.strong {
font-weight: 700;
}

.subtext {
font-size: 1.2rem;
line-height: 1.5;
font-weight: 400;
font-style: italic;
color: $blue-text;
}
19 changes: 11 additions & 8 deletions components/EmbedCodeBlock/EmbedCodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,24 @@ import Script from "next/script";

return (
<Box>
<p>
<strong className={embedStyles.stepBadge}>Step 1</strong> Copy and paste
the following code ONCE on any page that will have Populist embeds. If
you've already added this script tag to the page, you can skip this
step.
<p className={embedStyles.stepDescription}>
<strong className={embedStyles.stepBadge}>1</strong> Copy and paste the
following code <span className={embedStyles.strong}>once</span> on any
page that will have Populist embeds.{" "}
<span className={embedStyles.subtext}>
If you've already added this script tag to the page, you can skip this
step.
</span>
</p>
<CodeBlock
language={language}
setLanguage={setLanguage}
snippets={stepOneSnippets}
/>

<p>
<strong className={embedStyles.stepBadge}>Step 2</strong> Copy and paste
the following code where you want this specific embed to show up on the
<p className={embedStyles.stepDescription}>
<strong className={embedStyles.stepBadge}>2</strong> Copy and paste the
following code where you want this specific embed to show up on the
page.
</p>
<CodeBlock
Expand Down