From fd808a1bd45dcebc51ebafab3b7fbf4bd9993671 Mon Sep 17 00:00:00 2001 From: JayNightmare <34739807+JayNightmare@users.noreply.github.com> Date: Thu, 7 Nov 2024 01:02:08 +0000 Subject: [PATCH] Initial commit Created from https://vercel.com/new --- .env.example | 2 + .gitignore | 38 + .vscode/settings.json | 4 + LICENSE | 21 + README.md | 33 + app/components/analytics.tsx | 15 + app/components/card.tsx | 43 + app/components/mdx.tsx | 178 + app/components/nav.tsx | 55 + app/components/particles.tsx | 234 ++ app/contact/page.tsx | 63 + app/layout.tsx | 76 + app/page.tsx | 51 + app/projects/[slug]/header.tsx | 126 + app/projects/[slug]/mdx.css | 32 + app/projects/[slug]/page.tsx | 48 + app/projects/[slug]/view.tsx | 17 + app/projects/article.tsx | 40 + app/projects/layout.tsx | 9 + app/projects/page.tsx | 138 + content/projects/access.mdx | 76 + content/projects/chronark.com.mdx | 14 + content/projects/envshare.mdx | 116 + content/projects/highstorm.mdx | 26 + content/projects/planetfall.mdx | 15 + content/projects/qstash.mdx | 36 + .../projects/terraform-provider-vercel.mdx | 46 + content/projects/unkey.mdx | 13 + content/projects/upstash-auth-analytics.mdx | 8 + content/projects/upstash-cli.mdx | 115 + content/projects/upstash-core-analytics.mdx | 100 + content/projects/upstash-edge-flags.mdx | 29 + content/projects/upstash-kafka.mdx | 178 + content/projects/upstash-qstash-sdk.mdx | 21 + .../projects/upstash-ratelimit-analytics.mdx | 10 + content/projects/upstash-ratelimit.mdx | 49 + content/projects/upstash-react-ui.mdx | 12 + content/projects/upstash-redis.mdx | 45 + content/projects/upstash-web-analytics.mdx | 8 + content/projects/zod-bird.mdx | 172 + contentlayer.config.js | 102 + global.css | 10 + mdx-components.tsx | 17 + next.config.mjs | 11 + package.json | 55 + pages/api/incr.ts | 47 + pnpm-lock.yaml | 3685 +++++++++++++++++ postcss.config.js | 8 + public/favicon.png | Bin 0 -> 23988 bytes public/fonts/CalSans-SemiBold.ttf | Bin 0 -> 148964 bytes public/og.png | Bin 0 -> 144724 bytes public/planetfall.png | Bin 0 -> 660729 bytes rome.json | 12 + tailwind.config.js | 111 + tsconfig.json | 31 + types/mdx.d.ts | 5 + util/mouse.ts | 27 + 57 files changed, 6433 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 LICENSE create mode 100644 README.md create mode 100644 app/components/analytics.tsx create mode 100644 app/components/card.tsx create mode 100644 app/components/mdx.tsx create mode 100644 app/components/nav.tsx create mode 100644 app/components/particles.tsx create mode 100644 app/contact/page.tsx create mode 100644 app/layout.tsx create mode 100644 app/page.tsx create mode 100644 app/projects/[slug]/header.tsx create mode 100644 app/projects/[slug]/mdx.css create mode 100644 app/projects/[slug]/page.tsx create mode 100644 app/projects/[slug]/view.tsx create mode 100644 app/projects/article.tsx create mode 100644 app/projects/layout.tsx create mode 100644 app/projects/page.tsx create mode 100644 content/projects/access.mdx create mode 100644 content/projects/chronark.com.mdx create mode 100644 content/projects/envshare.mdx create mode 100644 content/projects/highstorm.mdx create mode 100644 content/projects/planetfall.mdx create mode 100644 content/projects/qstash.mdx create mode 100644 content/projects/terraform-provider-vercel.mdx create mode 100644 content/projects/unkey.mdx create mode 100644 content/projects/upstash-auth-analytics.mdx create mode 100644 content/projects/upstash-cli.mdx create mode 100644 content/projects/upstash-core-analytics.mdx create mode 100644 content/projects/upstash-edge-flags.mdx create mode 100644 content/projects/upstash-kafka.mdx create mode 100644 content/projects/upstash-qstash-sdk.mdx create mode 100644 content/projects/upstash-ratelimit-analytics.mdx create mode 100644 content/projects/upstash-ratelimit.mdx create mode 100644 content/projects/upstash-react-ui.mdx create mode 100644 content/projects/upstash-redis.mdx create mode 100644 content/projects/upstash-web-analytics.mdx create mode 100644 content/projects/zod-bird.mdx create mode 100644 contentlayer.config.js create mode 100644 global.css create mode 100644 mdx-components.tsx create mode 100644 next.config.mjs create mode 100644 package.json create mode 100644 pages/api/incr.ts create mode 100644 pnpm-lock.yaml create mode 100644 postcss.config.js create mode 100644 public/favicon.png create mode 100644 public/fonts/CalSans-SemiBold.ttf create mode 100644 public/og.png create mode 100644 public/planetfall.png create mode 100644 rome.json create mode 100644 tailwind.config.js create mode 100644 tsconfig.json create mode 100644 types/mdx.d.ts create mode 100644 util/mouse.ts diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..2dfe98d --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +UPSTASH_REDIS_REST_URL= +UPSTASH_REDIS_REST_TOKEN= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..946fa74 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +.contentlayer \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0e16096 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true +} \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e4712ee --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Andreas Thomas + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..67d854f --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +
+

chronark.com

+ +My personal website, built with [Next.js](https://nextjs.org/), [Tailwind CSS](https://tailwindcss.com/), [Upstash](https://upstash.com?ref=chronark.com), [Contentlayer](https://www.contentlayer.dev/) and deployed to [Vercel](https://vercel.com/). + +
+ +
+ + +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/upstash/clone?demo-title=Next.js%20Portfolio%20with%20Pageview%20Counter&demo-description=Portfolio%20site%20with%20pageview%20counter%2C%20built%20with%20Next.js%2013%20App%20Router%2C%20Contentlayer%2C%20and%20Upstash%20Redis.&demo-url=https%3A%2F%2Fchronark.com%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F1DA8n5a6WaP9p1FXf9LmUY%2Fc6264fa2732355787bf657df92dda8a1%2FCleanShot_2023-04-17_at_14.17.37.png&project-name=Next.js%20Portfolio%20with%20Pageview%20Counter&repository-name=nextjs-portfolio-pageview-counter&repository-url=https%3A%2F%2Fgithub.com%2Fchronark%2Fchronark.com&from=templates&integration-ids=oac_V3R1GIpkoJorr6fqyiwdhl17) + +## Running Locally + + +```sh-session +git clone https://github.com/chronark/chronark.com.git +cd chronark.com +``` + + +Create a `.env` file similar to [`.env.example`](https://github.com/chronark/chronark.com/blob/main/.env.example). + +Then install dependencies and run the development server: +```sh-session +pnpm install +pnpm dev +``` + + +## Cloning / Forking + +Please remove all of my personal information (projects, images, etc.) before deploying your own version of this site. diff --git a/app/components/analytics.tsx b/app/components/analytics.tsx new file mode 100644 index 0000000..aa7fa98 --- /dev/null +++ b/app/components/analytics.tsx @@ -0,0 +1,15 @@ +"use client"; + +export function Analytics() { + const token = process.env.NEXT_PUBLIC_BEAM_TOKEN; + if (!token) { + return null; + } + return ( +