├── .gitignore ├── README.md ├── app ├── api │ ├── auth │ │ └── [...nextauth] │ │ │ └── route.js │ ├── prompt │ │ ├── [id] │ │ │ └── route.js │ │ ├── new │ │ │ └── route.js │ │ └── route.js │ └── users │ │ └── [id] │ │ └── posts │ │ └── route.js ├── create-prompt │ └── page.jsx ├── layout.jsx ├── page.jsx ├── profile │ ├── [id] │ │ └── page.jsx │ ├── loading.jsx │ └── page.jsx └── update-prompt │ └── page.jsx ├── components ├── Feed.jsx ├── Form.jsx ├── Nav.jsx ├── Profile.jsx ├── PromptCard.jsx └── Provider.jsx ├── jsconfig.json ├── models ├── prompt.js └── user.js ├── next.config.js ├── package.json ├── postcss.config.js ├── public └── assets │ ├── icons │ ├── copy.svg │ ├── link.svg │ ├── loader.svg │ ├── menu.svg │ └── tick.svg │ └── images │ ├── grid.svg │ ├── logo-text.svg │ └── logo.svg ├── styles └── globals.css ├── tailwind.config.js └── utils └── database.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/README.md -------------------------------------------------------------------------------- /app/api/auth/[...nextauth]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/api/auth/[...nextauth]/route.js -------------------------------------------------------------------------------- /app/api/prompt/[id]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/api/prompt/[id]/route.js -------------------------------------------------------------------------------- /app/api/prompt/new/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/api/prompt/new/route.js -------------------------------------------------------------------------------- /app/api/prompt/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/api/prompt/route.js -------------------------------------------------------------------------------- /app/api/users/[id]/posts/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/api/users/[id]/posts/route.js -------------------------------------------------------------------------------- /app/create-prompt/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/create-prompt/page.jsx -------------------------------------------------------------------------------- /app/layout.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/layout.jsx -------------------------------------------------------------------------------- /app/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/page.jsx -------------------------------------------------------------------------------- /app/profile/[id]/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/profile/[id]/page.jsx -------------------------------------------------------------------------------- /app/profile/loading.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/profile/loading.jsx -------------------------------------------------------------------------------- /app/profile/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/profile/page.jsx -------------------------------------------------------------------------------- /app/update-prompt/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/app/update-prompt/page.jsx -------------------------------------------------------------------------------- /components/Feed.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/components/Feed.jsx -------------------------------------------------------------------------------- /components/Form.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/components/Form.jsx -------------------------------------------------------------------------------- /components/Nav.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/components/Nav.jsx -------------------------------------------------------------------------------- /components/Profile.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/components/Profile.jsx -------------------------------------------------------------------------------- /components/PromptCard.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/components/PromptCard.jsx -------------------------------------------------------------------------------- /components/Provider.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/components/Provider.jsx -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/jsconfig.json -------------------------------------------------------------------------------- /models/prompt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/models/prompt.js -------------------------------------------------------------------------------- /models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/models/user.js -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/assets/icons/copy.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/icons/copy.svg -------------------------------------------------------------------------------- /public/assets/icons/link.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/icons/link.svg -------------------------------------------------------------------------------- /public/assets/icons/loader.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/icons/loader.svg -------------------------------------------------------------------------------- /public/assets/icons/menu.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/icons/menu.svg -------------------------------------------------------------------------------- /public/assets/icons/tick.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/icons/tick.svg -------------------------------------------------------------------------------- /public/assets/images/grid.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/images/grid.svg -------------------------------------------------------------------------------- /public/assets/images/logo-text.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/images/logo-text.svg -------------------------------------------------------------------------------- /public/assets/images/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/public/assets/images/logo.svg -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /utils/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianhajdin/project_next_14_ai_prompt_sharing/HEAD/utils/database.js --------------------------------------------------------------------------------