├── .eslintrc.json ├── .gitignore ├── LICENSE ├── README.md ├── components.json ├── next.config.mjs ├── package-lock.json ├── package.json ├── postcss.config.mjs ├── public ├── og-image.png └── upstash-logo.png ├── src ├── app │ ├── (root) │ │ ├── _components │ │ │ ├── Benefits.tsx │ │ │ ├── ChallengeCards.tsx │ │ │ ├── FeatureCards.tsx │ │ │ └── Testimonials.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── learn-upstash │ │ ├── [slug] │ │ │ └── page.tsx │ │ └── page.tsx │ ├── not-found.tsx │ ├── redis-basics │ │ └── page.tsx │ └── redis-data-structures │ │ ├── [slug] │ │ └── page.tsx │ │ └── page.tsx ├── components │ ├── ChallengeSection.tsx │ ├── CommandsTab.tsx │ ├── Congrats.tsx │ ├── Footer.tsx │ ├── Header.tsx │ ├── LearningSection.tsx │ ├── OverviewTab.tsx │ ├── ProgressBar.tsx │ ├── RedisCli.tsx │ ├── UpstashRedisLearningPlatform.tsx │ ├── UseCaseTab.tsx │ ├── decorators │ │ ├── RotatedText.tsx │ │ └── UnderlinedText.tsx │ ├── providers │ │ └── ThemeProvider.tsx │ └── ui │ │ ├── accordion.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── dialog.tsx │ │ ├── progress.tsx │ │ ├── resizable.tsx │ │ ├── scroll-area.tsx │ │ ├── slider.tsx │ │ ├── tabs.tsx │ │ ├── toast.tsx │ │ ├── toaster.tsx │ │ └── use-toast.ts ├── lib │ └── utils.ts └── utils │ ├── constants.ts │ └── problems.ts ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals", 3 | "rules": { 4 | "react/no-unescaped-entities": "off" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | 9 | # testing 10 | /coverage 11 | 12 | # next.js 13 | /.next/ 14 | /out/ 15 | 16 | # production 17 | /build 18 | 19 | # misc 20 | .DS_Store 21 | *.pem 22 | 23 | # debug 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Burak 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). 2 | 3 | ## Getting Started 4 | 5 | First, run the development server: 6 | 7 | ```bash 8 | npm run dev 9 | # or 10 | yarn dev 11 | # or 12 | pnpm dev 13 | # or 14 | bun dev 15 | ``` 16 | 17 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 18 | 19 | You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. 20 | 21 | This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. 22 | 23 | ## Learn More 24 | 25 | To learn more about Next.js, take a look at the following resources: 26 | 27 | - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 28 | - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 29 | 30 | You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! 31 | 32 | ## Deploy on Vercel 33 | 34 | The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 35 | 36 | Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. 37 | -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "new-york", 4 | "rsc": true, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "tailwind.config.ts", 8 | "css": "src/app/globals.css", 9 | "baseColor": "zinc", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils" 16 | } 17 | } -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "upstash-playground", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@auth/mongodb-adapter": "^3.4.1", 13 | "@codemirror/lang-javascript": "^6.2.2", 14 | "@radix-ui/react-accordion": "^1.2.0", 15 | "@radix-ui/react-dialog": "^1.1.1", 16 | "@radix-ui/react-icons": "^1.3.0", 17 | "@radix-ui/react-progress": "^1.1.0", 18 | "@radix-ui/react-scroll-area": "^1.1.0", 19 | "@radix-ui/react-slider": "^1.2.0", 20 | "@radix-ui/react-slot": "^1.1.0", 21 | "@radix-ui/react-tabs": "^1.1.0", 22 | "@radix-ui/react-toast": "^1.2.1", 23 | "@tanstack/react-query": "^5.51.15", 24 | "@uiw/codemirror-theme-dracula": "^4.23.0", 25 | "@uiw/react-codemirror": "^4.23.0", 26 | "class-variance-authority": "^0.7.0", 27 | "clsx": "^2.1.1", 28 | "framer-motion": "^11.3.8", 29 | "lucide-react": "^0.412.0", 30 | "mongodb": "^6.8.0", 31 | "mongoose": "^8.5.1", 32 | "next": "14.2.5", 33 | "next-auth": "^4.24.7", 34 | "next-themes": "^0.3.0", 35 | "react": "^18", 36 | "react-confetti": "^6.1.0", 37 | "react-dom": "^18", 38 | "react-markdown": "^9.0.1", 39 | "react-resizable-panels": "^2.0.22", 40 | "react-syntax-highlighter": "^15.5.0", 41 | "tailwind-merge": "^2.4.0", 42 | "tailwindcss-animate": "^1.0.7" 43 | }, 44 | "devDependencies": { 45 | "@types/node": "^20", 46 | "@types/react": "^18", 47 | "@types/react-dom": "^18", 48 | "@types/react-syntax-highlighter": "^15.5.13", 49 | "eslint": "^8", 50 | "eslint-config-next": "14.2.5", 51 | "postcss": "^8", 52 | "tailwindcss": "^3.4.1", 53 | "typescript": "^5" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /public/og-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burakorkmez/redis-rush/99a734cade26173a49b7235300c791ed092b21e1/public/og-image.png -------------------------------------------------------------------------------- /public/upstash-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burakorkmez/redis-rush/99a734cade26173a49b7235300c791ed092b21e1/public/upstash-logo.png -------------------------------------------------------------------------------- /src/app/(root)/_components/Benefits.tsx: -------------------------------------------------------------------------------- 1 | import { benefits } from "@/utils/constants"; 2 | import { motion } from "framer-motion"; 3 | 4 | const Benefits = () => { 5 | return ( 6 | <> 7 | 13 |

14 | Why Choose{" "} 15 | 16 | Rush? 17 | {" "} 18 |

19 |
20 | {benefits.map((benefit, index) => ( 21 |
22 |
23 |
24 | 25 |
26 |
27 |
28 |

{benefit.title}

29 |

{benefit.description}

30 |
31 |
32 | ))} 33 |
34 |
35 |