-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/nishchay17/portfolio
- Loading branch information
Showing
24 changed files
with
1,032 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Script from "next/script"; | ||
|
||
import * as gtag from "../lib/gtag"; | ||
|
||
function Analytics() { | ||
return ( | ||
<> | ||
<Script | ||
strategy="afterInteractive" | ||
src={`https://www.googletagmanager.com/gtag/js?id=${gtag.GA_TRACKING_ID}`} | ||
/> | ||
<Script | ||
id="gtag-init" | ||
strategy="afterInteractive" | ||
dangerouslySetInnerHTML={{ | ||
__html: ` | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', '${gtag.GA_TRACKING_ID}', { | ||
page_path: window.location.pathname, | ||
}); | ||
`, | ||
}} | ||
/> | ||
</> | ||
); | ||
} | ||
export default Analytics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import "../styles/globals.css"; | ||
import type { Metadata } from "next"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import { Providers } from "./provider"; | ||
import Analytics from "./Analytics"; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
template: "%s | Nishchay", | ||
default: "Nishchay", | ||
}, | ||
description: "Portfolio made with Next JS | Nishchay17", | ||
icons: ["/svg/logo.svg"], | ||
}; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en" suppressHydrationWarning> | ||
<body className={inter.className}> | ||
<Analytics /> | ||
<Providers>{children}</Providers> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React, { ReactElement } from "react"; | ||
import type { Metadata } from "next"; | ||
|
||
import ProjectLayout from "../../../components/ProjectPage/ProjectLayout"; | ||
import Layout from "../../../components/Layout"; | ||
import { projects } from "../../../config/project"; | ||
import { Project } from "../../../interface/Project"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Project", | ||
}; | ||
|
||
function Project({ params: { id } }: { params: { id: string } }): ReactElement { | ||
let project: Project = { | ||
id: 99, | ||
name: "No project found", | ||
description: "No project with this Id found", | ||
tag: "", | ||
}; | ||
if (id) { | ||
const currentProject = projects.find((project) => project.id == +id); | ||
if (!!currentProject) { | ||
project = currentProject; | ||
} | ||
} | ||
|
||
return ( | ||
<Layout>{!project ? <></> : <ProjectLayout project={project} />}</Layout> | ||
); | ||
} | ||
|
||
export default Project; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use client"; | ||
|
||
import { ChakraProvider } from "@chakra-ui/react"; | ||
import { AnimatePresence } from "framer-motion"; | ||
|
||
import { theme } from "../lib/theme"; | ||
|
||
export function Providers({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<ChakraProvider theme={theme}> | ||
<AnimatePresence>{children}</AnimatePresence> | ||
</ChakraProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export const experience = [ | ||
{ | ||
company: "Homelane", | ||
title: "Software Engineer Intern", | ||
date: "Jan 2022 - Present", | ||
points: [ | ||
"Worked on developing dashboard using React js and SCSS", | ||
"Migrated vanilla javascript code to React js code", | ||
"Fixed existing bugs and added functionalities in dashboards", | ||
"Converted design to pixel-perfect components", | ||
], | ||
}, | ||
{ | ||
company: "The Internet Folks", | ||
title: "Software Engineer Intern", | ||
date: "Dec 2020 - June 2021", | ||
points: [ | ||
"Used Next js (react js) with server-side rendering", | ||
"Used Redux (Redux toolkit) for state management", | ||
"Converted UI design to reusable, scalable react components", | ||
"Implemented Debouncing to reduce API calls", | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d7c7767
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
portfolio – ./
portfolio-nishchay17.vercel.app
nishchay17.vercel.app
portfolio-git-main-nishchay17.vercel.app