From 98a155b87dce95b3ae89d0bb93d473144052f776 Mon Sep 17 00:00:00 2001 From: Samuel Ping Date: Fri, 29 Dec 2023 18:14:57 -0500 Subject: [PATCH] Squashed commit of the following: commit 459031c8f7dfb4541112904aa26d13cb3802f1d7 Author: Samuel Ping Date: Fri Dec 29 18:13:45 2023 -0500 Some cleanup commit 2cfe444d04ced212fbd6cc0da8354c92d7cce708 Author: Samuel Ping Date: Fri Dec 29 04:15:34 2023 -0500 Add hamburger menu commit 9f0149259772aa64c8751f3a3b1412821fe871ab Author: Samuel Ping Date: Thu Dec 28 23:29:30 2023 -0500 Add about me page commit 1b47aaef03c748b77338ea72ae1b943d2fa1669e Author: Samuel Ping Date: Thu Dec 28 23:00:35 2023 -0500 Add 404 commit 687dcb582e4fbd29c6077b7ee7aa350eb810382e Author: Samuel Ping Date: Thu Dec 28 22:37:42 2023 -0500 Implement icon buttons commit 5a273430643b3daf2d595332a7e155cf593908e3 Author: Samuel Ping Date: Thu Dec 28 17:57:21 2023 -0500 Update ui commit 6235b7f0447a2979f2a1e6e9ee93a0756ac2cce5 Author: Samuel Ping Date: Thu Dec 28 12:42:38 2023 -0500 Cleanup dates formatting commit 56e83df6ea9134b0b9b16177ac2b88299777caea Author: Samuel Ping Date: Thu Dec 28 04:29:42 2023 -0500 Add project cards to home page and date formatting commit b69ba1f3b03bac7d19f2fef5f67a364733f5ff99 Author: Samuel Ping Date: Thu Dec 28 03:14:02 2023 -0500 Get mdx and projects page working commit 9cf362bde909974eaf419478da8140aa7f046393 Author: Samuel Ping Date: Thu Dec 28 00:30:09 2023 -0500 Remove work; Add project carousel commit 11e489ddc330074d3bf927f16a9688f990185cf9 Author: Samuel Ping Date: Wed Dec 27 21:14:56 2023 -0500 Update footer commit 7c727ba0deb1637e9a0dec31e0c88ac7e11cae7f Author: Samuel Ping Date: Wed Dec 27 03:22:46 2023 -0500 Finish footer commit 34c45d8e13a1145977071974c2e8fa82aa10931d Author: Samuel Ping Date: Wed Dec 27 02:20:38 2023 -0500 Standardize file naming conventions commit ff7309690e01cf8c6a674b24ef9f53d9725bc2b9 Author: Samuel Ping Date: Wed Dec 27 02:05:52 2023 -0500 Add project cards commit 40992194e141df4e69650af7c971bfca1d23434c Author: Samuel Ping Date: Wed Dec 27 01:30:56 2023 -0500 Touchups; Back in stable state commit 035bdc3a24db2d45c490778a7c28e10a057d0232 Author: Samuel Ping Date: Wed Dec 27 01:03:18 2023 -0500 Migrate to Next 14 commit aa24c77124f69957d5ec7e9bb198bbdb33b96aaa Author: Samuel Ping Date: Wed Dec 27 00:02:34 2023 -0500 Add work buttons commit 89bc724846e0c0f141c4120b00a564a12a937829 Author: Samuel Ping Date: Tue Dec 26 20:08:46 2023 -0500 Home page progress: Finish mvp for about section, start work section commit 0681aabc275187d28a138c4e7510ad56cb50ec79 Author: Samuel Ping Date: Mon Dec 25 14:53:57 2023 -0500 update packages commit f031deec74ea43ab65a8bfd9043274dd4984657c Author: Samuel Ping Date: Mon Dec 25 14:45:27 2023 -0500 Update pic; remove resume --- README.md | 3 + app/about/page.js | 17 + app/error.js | 7 + app/layout.js | 26 + app/not-found.js | 5 + app/page.js | 56 + app/projects/[slug]/page.js | 65 + app/projects/page.js | 26 + {src => app}/styles/globals.css | 0 components/Chip.js | 13 + components/Footer.js | 53 + .../HamburgerButton.js | 4 +- {src/components => components}/Logo.js | 6 +- components/Navbar.js | 67 + components/NavbarButton.js | 34 + components/ProjectCard.js | 44 + components/SP.js | 22 + components/iconButton.js | 18 + components/icons.js | 132 + components/leftArrowButton.js | 22 + components/mdx/components.js | 44 + components/notFound.js | 25 + components/projectCardCarousel.js | 23 + components/rightArrowButton.js | 22 + .../config => config}/NavbarButtons.config.js | 17 +- content/about.mdx | 9 + .../projects/chat_stat.mdx | 14 +- .../projects/covid-tracker.mdx | 17 +- .../projects/food-mood.mdx | 18 +- content/projects/matchat.mdx | 10 + .../projects/personal-website.mdx | 18 +- content/projects/plantfam.mdx | 10 + content/projects/shrimpify.mdx | 12 + content/projects/street-cred.mdx | 12 + .../projects/wild-walk.mdx | 14 +- .../projects/yelp-review-scraper.mdx | 12 +- jsconfig.json | 9 +- next.config.js | 10 +- package-lock.json | 10179 ++++++++++------ package.json | 27 +- public/assets/amazon-logo.png | Bin 61670 -> 0 bytes public/assets/c1-logo.png | Bin 21082 -> 0 bytes public/assets/cap-logo.jpg | Bin 6556 -> 0 bytes public/assets/code-ninjas_logo.jpg | Bin 50540 -> 0 bytes public/assets/mongodb-logo.png | Bin 22078 -> 0 bytes public/assets/oss-logo.png | Bin 5431 -> 0 bytes public/assets/sam-2.jpg | Bin 300525 -> 0 bytes public/assets/sam.jpg | Bin 594181 -> 168849 bytes public/assets/samuel-ping_resume.pdf | Bin 204085 -> 0 bytes src/components/Avatar.js | 19 - src/components/CardVariants/BaseCardModal.js | 55 - .../InvolvementCard/InvolvementCard.js | 54 - .../InvolvementCard/InvolvementCardPopup.js | 37 - .../CardVariants/ProjectCard/ProjectCard.js | 56 - .../ProjectCard/ProjectCardPopup.js | 46 - src/components/CardVariants/README.md | 5 - .../CardVariants/WorkCard/WorkCard.js | 54 - .../CardVariants/WorkCard/WorkCardPopup.js | 35 - src/components/ContactBar.js | 21 - src/components/ContactBarButton.js | 44 - src/components/CurvedText.js | 24 - src/components/Footer.js | 10 - .../IconButtonVariants/DownloadIconButton.js | 19 - .../ExternalWebsiteIconButton.js | 20 - .../IconButtonVariants/GithubIconButton.js | 20 - src/components/Navbar.js | 70 - src/components/NavbarButton.js | 34 - src/components/PageHeader.js | 7 - src/components/PdfViewer.js | 24 - src/components/SP.js | 73 - src/components/SiteLayout.js | 102 - src/components/Tooltip.js | 28 - src/config/ContactBarButtons.config.js | 41 - src/content/about.json | 3 - src/content/home.json | 18 - .../college-avenue-players-actor.md | 20 - .../involvement/hackru-project-lead.md | 18 - ...b-tennis-travel-team-travel-team-member.md | 16 - .../involvement/scarlet-council-member.md | 17 - .../involvement/usacs-tech-director.md | 25 - src/content/projects/matchat.md | 10 - src/content/projects/plantfam.md | 10 - src/content/projects/shrimpify.md | 12 - src/content/projects/street-cred.md | 17 - src/content/work/amazon.md | 12 - src/content/work/capital-one.md | 12 - src/content/work/code-ninjas.md | 12 - src/content/work/mongodb.md | 18 - .../work/rutgers-open-systems-solutions.md | 23 - src/pages/_app.js | 30 - src/pages/_document.js | 22 - src/pages/about.js | 34 - src/pages/index.js | 50 - src/pages/involvement.js | 54 - src/pages/projects.js | 50 - src/pages/resume.js | 44 - src/pages/work.js | 50 - src/utils/BlurHashToBase64.js | 22 - src/utils/CardSorter.js | 65 - src/utils/MarkdownProcessor.js | 16 - src/utils/RGBStringToDataURL.js | 47 - tailwind.config.js | 43 +- utils/dateUtils.js | 100 + utils/mdxUtils.js | 74 + 104 files changed, 7670 insertions(+), 5294 deletions(-) create mode 100644 app/about/page.js create mode 100644 app/error.js create mode 100644 app/layout.js create mode 100644 app/not-found.js create mode 100644 app/page.js create mode 100644 app/projects/[slug]/page.js create mode 100644 app/projects/page.js rename {src => app}/styles/globals.css (100%) create mode 100644 components/Chip.js create mode 100644 components/Footer.js rename {src/components => components}/HamburgerButton.js (95%) rename {src/components => components}/Logo.js (77%) create mode 100644 components/Navbar.js create mode 100644 components/NavbarButton.js create mode 100644 components/ProjectCard.js create mode 100644 components/SP.js create mode 100644 components/iconButton.js create mode 100644 components/icons.js create mode 100644 components/leftArrowButton.js create mode 100644 components/mdx/components.js create mode 100644 components/notFound.js create mode 100644 components/projectCardCarousel.js create mode 100644 components/rightArrowButton.js rename {src/config => config}/NavbarButtons.config.js (55%) create mode 100644 content/about.mdx rename src/content/projects/chat_stat.md => content/projects/chat_stat.mdx (71%) rename src/content/projects/covid-tracker.md => content/projects/covid-tracker.mdx (56%) rename src/content/projects/food-mood.md => content/projects/food-mood.mdx (80%) create mode 100644 content/projects/matchat.mdx rename src/content/projects/personal-website.md => content/projects/personal-website.mdx (78%) create mode 100644 content/projects/plantfam.mdx create mode 100644 content/projects/shrimpify.mdx create mode 100644 content/projects/street-cred.mdx rename src/content/projects/wild-walk.md => content/projects/wild-walk.mdx (66%) rename src/content/projects/yelp-review-scraper.md => content/projects/yelp-review-scraper.mdx (52%) delete mode 100755 public/assets/amazon-logo.png delete mode 100644 public/assets/c1-logo.png delete mode 100644 public/assets/cap-logo.jpg delete mode 100644 public/assets/code-ninjas_logo.jpg delete mode 100755 public/assets/mongodb-logo.png delete mode 100644 public/assets/oss-logo.png delete mode 100644 public/assets/sam-2.jpg delete mode 100755 public/assets/samuel-ping_resume.pdf delete mode 100644 src/components/Avatar.js delete mode 100644 src/components/CardVariants/BaseCardModal.js delete mode 100644 src/components/CardVariants/InvolvementCard/InvolvementCard.js delete mode 100644 src/components/CardVariants/InvolvementCard/InvolvementCardPopup.js delete mode 100644 src/components/CardVariants/ProjectCard/ProjectCard.js delete mode 100644 src/components/CardVariants/ProjectCard/ProjectCardPopup.js delete mode 100644 src/components/CardVariants/README.md delete mode 100644 src/components/CardVariants/WorkCard/WorkCard.js delete mode 100644 src/components/CardVariants/WorkCard/WorkCardPopup.js delete mode 100644 src/components/ContactBar.js delete mode 100644 src/components/ContactBarButton.js delete mode 100644 src/components/CurvedText.js delete mode 100644 src/components/Footer.js delete mode 100644 src/components/IconButtonVariants/DownloadIconButton.js delete mode 100644 src/components/IconButtonVariants/ExternalWebsiteIconButton.js delete mode 100644 src/components/IconButtonVariants/GithubIconButton.js delete mode 100644 src/components/Navbar.js delete mode 100644 src/components/NavbarButton.js delete mode 100644 src/components/PageHeader.js delete mode 100644 src/components/PdfViewer.js delete mode 100644 src/components/SP.js delete mode 100644 src/components/SiteLayout.js delete mode 100644 src/components/Tooltip.js delete mode 100644 src/config/ContactBarButtons.config.js delete mode 100644 src/content/about.json delete mode 100644 src/content/home.json delete mode 100644 src/content/involvement/college-avenue-players-actor.md delete mode 100644 src/content/involvement/hackru-project-lead.md delete mode 100644 src/content/involvement/rutgers-club-tennis-travel-team-travel-team-member.md delete mode 100644 src/content/involvement/scarlet-council-member.md delete mode 100644 src/content/involvement/usacs-tech-director.md delete mode 100644 src/content/projects/matchat.md delete mode 100644 src/content/projects/plantfam.md delete mode 100644 src/content/projects/shrimpify.md delete mode 100644 src/content/projects/street-cred.md delete mode 100644 src/content/work/amazon.md delete mode 100644 src/content/work/capital-one.md delete mode 100644 src/content/work/code-ninjas.md delete mode 100644 src/content/work/mongodb.md delete mode 100644 src/content/work/rutgers-open-systems-solutions.md delete mode 100644 src/pages/_app.js delete mode 100644 src/pages/_document.js delete mode 100644 src/pages/about.js delete mode 100644 src/pages/index.js delete mode 100644 src/pages/involvement.js delete mode 100644 src/pages/projects.js delete mode 100644 src/pages/resume.js delete mode 100644 src/pages/work.js delete mode 100644 src/utils/BlurHashToBase64.js delete mode 100644 src/utils/CardSorter.js delete mode 100644 src/utils/MarkdownProcessor.js delete mode 100644 src/utils/RGBStringToDataURL.js create mode 100644 utils/dateUtils.js create mode 100644 utils/mdxUtils.js diff --git a/README.md b/README.md index 727d481..c546a66 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ This is my personal website's repository! Hopefully you're here because you like I built my website using Next.js and Tailwind CSS. +## Getting Started +Run `npm i` to install packages. Then `npm run dev` to run the site locally in dev mode. + ### Past Stuff #### Netlify CMS diff --git a/app/about/page.js b/app/about/page.js new file mode 100644 index 0000000..35ac7d6 --- /dev/null +++ b/app/about/page.js @@ -0,0 +1,17 @@ +import { getMDXComponent } from 'mdx-bundler/client'; + +import { Components as MDXComponents } from '@components/mdx/components'; + +import { GetAboutMDX } from '@utils/mdxUtils'; + +export default async function Page() { + const { code } = await GetAboutMDX('about'); + const Component = getMDXComponent(code); + + return ( +
+ About me + +
+ ); +} diff --git a/app/error.js b/app/error.js new file mode 100644 index 0000000..3687869 --- /dev/null +++ b/app/error.js @@ -0,0 +1,7 @@ +'use client'; + +import NotFound from '@components/notFound'; + +export default function Error() { + return ; +} diff --git a/app/layout.js b/app/layout.js new file mode 100644 index 0000000..5974bd9 --- /dev/null +++ b/app/layout.js @@ -0,0 +1,26 @@ +import Navbar from '@components/navbar'; +import Footer from '@components/footer'; + +import NavbarButtons from '@config/navbarButtons.config'; + +import './styles/globals.css'; + +export const metadata = { + title: { + default: 'Samuel Ping', + template: '%s | Sam Ping', + }, + description: 'Welcome to Next.js', +}; + +export default function RootLayout({ children }) { + return ( + + + +
{children}
+