Skip to content

Commit 42d7ec9

Browse files
committed
⚙️ Upgrate to Next.js 12 and React 17 + Add freeCodeCamp page
1 parent 65375f5 commit 42d7ec9

File tree

10 files changed

+800
-3851
lines changed

10 files changed

+800
-3851
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ yarn-debug.log*
2525
yarn-error.log*
2626

2727
# local env files
28+
.env
2829
.env.local
2930
.env.development.local
3031
.env.test.local

components/Footer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ export default function Footer() {
7474
Live Demos
7575
</a>
7676
</Link>
77+
<Link href="/freecodecamp">
78+
<a className="text-gray-500 hover:text-gray-600 transition">
79+
freeCodeCamp
80+
</a>
81+
</Link>
7782
</div>
7883
</div>
7984
<p className="flex flex-row text-gray-400">

package-lock.json

Lines changed: 722 additions & 3847 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"firebase-admin": "^9.5.0",
3131
"gray-matter": "^4.0.2",
3232
"mdx-prism": "^0.3.3",
33-
"next": "10.0.5",
33+
"next": "^12.0.7",
3434
"next-mdx-remote": "^2.1.3",
3535
"next-themes": "0.0.12",
3636
"qss": "^2.0.3",
37-
"react": "17.0.1",
38-
"react-dom": "17.0.1",
37+
"react": "^17.0.2",
38+
"react-dom": "^17.0.2",
3939
"react-rough-notation": "^1.0.1",
4040
"react-toastify": "^7.0.3",
4141
"react-tweet-embed": "^1.2.2",

pages/freecodecamp.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import React from "react";
2+
import Container from "@/components/Container";
3+
import Link from "next/link";
4+
import ProjectCard from "@/components/ProjectCard";
5+
import Contact from "@/components/Contact";
6+
7+
export default function FreeCodeCamp() {
8+
return (
9+
<Container
10+
title="Blogs at FreeCodeCamp – Manu Arora"
11+
description="I've been writing articles for freeCodeCamp - Check out my latest articles here."
12+
image="/avatar.jpg"
13+
>
14+
<div className="flex flex-col justify-center items-start max-w-2xl mx-auto mb-16">
15+
<h1 className="font-bold text-3xl md:text-5xl tracking-tight mb-4 text-black dark:text-white">
16+
Free Code Camp
17+
</h1>
18+
<h2 className="prose text-gray-600 dark:text-gray-400 mb-16">
19+
I’ve been writing articles for{" "}
20+
<a href="https://freecodecamp.com">freeCodeCamp</a> where I generally
21+
write about projects and technical learnings. Some of the articles
22+
that I wrote are down below.
23+
</h2>
24+
<div className="flex flex-col items-center sm:flex-row sm:space-x-8 w-full">
25+
<Project
26+
link="https://www.freecodecamp.org/news/how-to-build-a-portfolio-site-with-nextjs-tailwindcss/"
27+
title="Build a developers portfolio website with Next.js and TailwindCSS"
28+
image="freecodecamp/portfolio.png"
29+
date="September 21, 2021"
30+
/>
31+
<Project
32+
link="https://www.freecodecamp.org/news/how-to-build-a-working-contact-form-with-sendgrid-and-next-js/"
33+
title="Send emails with your contact form with SendGrid and Next.js"
34+
image="freecodecamp/sendgrid.png"
35+
date="October 21, 2021"
36+
/>
37+
</div>
38+
39+
<Contact />
40+
</div>
41+
</Container>
42+
);
43+
}
44+
45+
const Project = ({ link, image, title, date }) => {
46+
return (
47+
<a href={link} className=" w-3/4 sm:w-1/2 mb-10" target="__blank">
48+
<div className="flex-shrink-0 rounded-lg shadow-xl shadow-green-500/20 dark:shadow-blue-500/20 overflow-hidden min-h-[400px]">
49+
<div className="overflow-hidden">
50+
<img
51+
src={image}
52+
className="transition hover:scale-125 duration-[2000ms]"
53+
/>
54+
</div>
55+
<div className="flex flex-col justify-between mx-4 my-4 min-h-[200px]">
56+
<h2 className="font-bold text-lg mb-14">{title}</h2>
57+
<p className="text-sm font-light">{date}</p>
58+
</div>
59+
</div>
60+
</a>
61+
);
62+
};

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function Home() {
4747
<span className="text-blue-500">m</span>roads
4848
</span>{" "}
4949
as a{" "}
50-
<span className="dark:text-black font-bold">
50+
<span className="dark:text-white font-bold">
5151
Software Engineer.{" "}
5252
</span>
5353
You've discovered my piece on the internet.{" "}

public/freecodecamp/portfolio.png

649 KB
Loading

public/freecodecamp/sendgrid.png

221 KB
Loading

public/sitemap.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<loc>https://manuarora.in/dashboard</loc>
99
</url>
1010

11+
<url>
12+
<loc>https://manuarora.in/freecodecamp</loc>
13+
</url>
14+
1115
<url>
1216
<loc>https://manuarora.in</loc>
1317
</url>
@@ -20,6 +24,7 @@
2024
<loc>https://manuarora.in/resources</loc>
2125
</url>
2226

27+
2328
<url>
2429
<loc>https://manuarora.in/tweets</loc>
2530
</url>

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const colors = require("tailwindcss/colors");
44
module.exports = {
55
purge: ["./pages/**/*.js", "./components/**/*.js", "./layouts/**/*.js"],
66
darkMode: "class",
7+
mode: "jit",
78
theme: {
89
extend: {
910
colors: {

0 commit comments

Comments
 (0)