Skip to content

Commit 2bc2820

Browse files
committed
Add: Talks section
1 parent 0c3457d commit 2bc2820

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

components/Talks.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React from "react";
2+
3+
const Talks = ({ url, company, image, title, description }) => {
4+
return (
5+
<a
6+
href={url}
7+
className="flex flex-col md:flex-row space-x-0 md:space-x-4"
8+
target="__blank"
9+
>
10+
<img src={image} className="rounded-md w-72 mb-4 md:mb-0" />
11+
<div className="flex flex-col justify-between">
12+
<div>
13+
<h4 className="font-bold text-base md:text-xl tracking-tight text-black dark:text-white">
14+
{title}
15+
</h4>
16+
<p className="text-gray-500 dark:text-gray-600 text-sm">
17+
{description}
18+
</p>
19+
</div>
20+
<p className="text-gray-500 dark:text-gray-600 text-sm">{company}</p>
21+
</div>
22+
</a>
23+
);
24+
};
25+
26+
export default Talks;

pages/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { useIsFontReady } from "@/lib/useIsFontReady";
1313
import { LinkPreview } from "@/components/LinkPreview";
1414
import { StaticLinkPreview } from "@/components/StaticLinkPreview";
1515
import { useTheme } from "next-themes";
16+
import Talks from "@/components/Talks";
1617

1718
export default function Home() {
1819
const [colors, setColors] = useState([]);
@@ -229,6 +230,18 @@ export default function Home() {
229230
href="#"
230231
icon="more"
231232
/>
233+
<h3 className="font-bold text-2xl md:text-4xl tracking-tight mb-4 mt-8 text-black dark:text-white">
234+
Tech Talks
235+
</h3>
236+
<Talks
237+
title={`Crafting the perfect portfolio website for developers`}
238+
description={` Talked about how to effectively utilise a portfolio website to
239+
put yourself in the best position to win.`}
240+
company={`roc8.careers`}
241+
image={`/talks/roc8.png`}
242+
url={`https://www.youtube.com/watch?v=yKVCl1jFkQQ`}
243+
/>
244+
232245
<Timeline />
233246
<Contact />
234247
</div>

public/talks/roc8.png

189 KB
Loading

0 commit comments

Comments
 (0)