Skip to content

Commit 6a4f1be

Browse files
Feat/add announcement to articles page (#277)
* feat: add announcement section to articles page
1 parent fc0bdae commit 6a4f1be

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pages/articles/index.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { trpc } from "../../utils/trpc";
88
import { useInView } from "react-intersection-observer";
99
import { useRouter } from "next/router";
1010
import Link from "next/link";
11+
import Image from "next/image";
12+
import writingChallenge from "../../public/images/announcements/writingChallenge.png";
1113

1214
// Needs to be added to DB but testing with hardcoding
1315
const tagsToShow = [
@@ -175,6 +177,18 @@ const ArticlesPage = () => {
175177
</section>
176178
</div>
177179
<section className="col-span-4 lg:block hidden">
180+
<div className="cursor-pointer my-4">
181+
<Image
182+
className="w-full"
183+
src={writingChallenge}
184+
alt={"Writing Challenge Banner"}
185+
onClick={() =>
186+
router.push(
187+
"/articles/join-our-6-week-writing-challenge-quohtgqb"
188+
)
189+
}
190+
/>
191+
</div>
178192
<h3 className="text-2xl leading-6 font-semibold tracking-wide mb-4 mt-4">
179193
Recommended topics
180194
</h3>
15.4 KB
Loading

0 commit comments

Comments
 (0)