Skip to content

Commit c0d4d51

Browse files
authored
Add social media mentions (#650)
1 parent 925e4ab commit c0d4d51

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

docs/src/components/SectionHeader.astro

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ interface Props {
33
title: string;
44
subtitle?: string;
55
text?: string;
6+
smallTitle?: boolean;
67
}
78
8-
const { title, subtitle, text } = Astro.props;
9+
const { title, subtitle, text, smallTitle } = Astro.props;
910
---
1011

1112
<style>
@@ -32,6 +33,10 @@ const { title, subtitle, text } = Astro.props;
3233
color: var(--text-color);
3334
}
3435

36+
.title--small {
37+
font-size: 1.75rem;
38+
}
39+
3540
p {
3641
margin: 2rem 0 0;
3742

@@ -45,7 +50,12 @@ const { title, subtitle, text } = Astro.props;
4550

4651
<header class="grid">
4752
<div>
48-
<h3 class:list={["title", { "title--dim": !!subtitle }]}>
53+
<h3
54+
class:list={[
55+
"title",
56+
{ "title--dim": !!subtitle, "title--small": smallTitle },
57+
]}
58+
>
4959
{title}
5060
</h3>
5161
{subtitle ? <h4 class:list={["title"]}>{subtitle}</h4> : null}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
import SectionHeader from "./SectionHeader.astro";
3+
---
4+
5+
<style>
6+
.mentions {
7+
margin-top: 3rem;
8+
}
9+
</style>
10+
11+
<section>
12+
<SectionHeader
13+
title="Join Thousands Of Productive Developers"
14+
subtitle="See what others say about RocketSim on Social media"
15+
smallTitle
16+
/>
17+
<div class="grid mentions">
18+
<div
19+
class="senja-embed"
20+
data-id="7b8ef1aa-201a-401a-a9d3-99fdf5325311"
21+
data-lazyload="false"
22+
>
23+
</div>
24+
<script is:inline src="https://static.senja.io/dist/platform.js"></script>
25+
</div>
26+
</section>

docs/src/pages/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Reviews from "../components/Reviews.astro";
99
import Features from "../components/Features.astro";
1010
import StatusBar from "../components/StatusBar.astro";
1111
import TeamInsights from "../components/TeamInsights.astro";
12+
import SocialMediaMentions from "../components/SocialMediaMentions.astro";
1213
1314
import logoImage from "../assets/rocketsim-logo.svg";
1415
---
@@ -50,5 +51,6 @@ import logoImage from "../assets/rocketsim-logo.svg";
5051
<Features />
5152
<TeamInsights />
5253
<StatusBar />
54+
<SocialMediaMentions />
5355
</main>
5456
</BaseLayout>

0 commit comments

Comments
 (0)