Skip to content

Commit

Permalink
Feat/add announcement to articles page (codu-code#277)
Browse files Browse the repository at this point in the history
* feat: add announcement section to articles page
  • Loading branch information
JohnAllenTech authored May 10, 2023
1 parent 43c3610 commit cc561b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pages/articles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { trpc } from "../../utils/trpc";
import { useInView } from "react-intersection-observer";
import { useRouter } from "next/router";
import Link from "next/link";
import Image from "next/image";
import writingChallenge from "../../public/images/announcements/writingChallenge.png";

// Needs to be added to DB but testing with hardcoding
const tagsToShow = [
Expand Down Expand Up @@ -175,6 +177,18 @@ const ArticlesPage = () => {
</section>
</div>
<section className="col-span-4 lg:block hidden">
<div className="cursor-pointer my-4">
<Image
className="w-full"
src={writingChallenge}
alt={"Writing Challenge Banner"}
onClick={() =>
router.push(
"/articles/join-our-6-week-writing-challenge-quohtgqb"
)
}
/>
</div>
<h3 className="text-2xl leading-6 font-semibold tracking-wide mb-4 mt-4">
Recommended topics
</h3>
Expand Down
Binary file added public/images/announcements/writingChallenge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cc561b7

Please sign in to comment.