Skip to content

Commit 2a40229

Browse files
committed
adds talk links
1 parent 61f33fe commit 2a40229

File tree

3 files changed

+54
-121
lines changed

3 files changed

+54
-121
lines changed

website/docs/api/index.md

Lines changed: 0 additions & 121 deletions
This file was deleted.

website/src/components/Talks.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import React, { useEffect } from "react";
2+
import { Section, Container, Center, H2 } from "../components/common";
3+
import styled from "styled-components";
4+
5+
const Heading = styled.h2`
6+
margin-top: 20px;
7+
margin-bottom: 40px;
8+
`;
9+
10+
const Spacing = styled.div`
11+
padding: 40px;
12+
`;
13+
14+
export const Talks = () => {
15+
useEffect(() => {
16+
const script = document.createElement("script");
17+
script.src = "//cdn.changelog.com/embed.js";
18+
script.async = true;
19+
document.body.appendChild(script);
20+
}, []);
21+
return (
22+
<Section id="quick-start">
23+
<Container>
24+
<Center>
25+
<Heading>Talks</Heading>
26+
<ul>
27+
<li>
28+
<div>
29+
<p>
30+
<a href="https://changelog.com/jsparty/96">
31+
JS Party 96: Performant Node desktop apps with NodeGui
32+
</a>{" "}
33+
– Listen on Changelog.com
34+
</p>
35+
<audio
36+
data-theme="night"
37+
data-src="https://changelog.com/jsparty/96/embed"
38+
src="https://cdn.changelog.com/uploads/jsparty/96/js-party-96.mp3"
39+
preload="none"
40+
class="changelog-episode"
41+
controls
42+
></audio>
43+
</div>
44+
</li>
45+
</ul>
46+
<Spacing />
47+
</Center>
48+
</Container>
49+
</Section>
50+
);
51+
};

website/src/pages/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { Hero } from "../components/Hero";
66
import { Features } from "../components/Features";
77
import { CreateNativeApps } from "../components/CreateNativeApps";
88
import { CodeExample } from "../components/CodeExample";
9+
import { Talks } from "../components/Talks";
10+
911
import "./styles.module.css";
1012

1113
function Home() {
@@ -22,6 +24,7 @@ function Home() {
2224
<CreateNativeApps />
2325
<CodeExample />
2426
<Try />
27+
<Talks />
2528
</main>
2629
</Layout>
2730
);

0 commit comments

Comments
 (0)