├── app ├── globals.css ├── create │ └── page.tsx ├── (auth) │ ├── api │ │ └── auth │ │ │ └── [...nextauth] │ │ │ └── route.ts │ └── access │ │ └── page.tsx ├── api │ ├── edgestore │ │ └── [...edgestore] │ │ │ └── route.ts │ └── [post] │ │ └── [id] │ │ └── route.ts ├── posts │ └── page.tsx ├── page.tsx ├── actions │ ├── getCurrentUser.ts │ └── blogActions.ts ├── layout.tsx ├── userposts │ └── page.tsx ├── about │ └── page.tsx ├── blog │ └── [id] │ │ └── page.tsx └── contact │ └── page.tsx ├── public └── assets │ ├── about.jpg │ ├── post1.jpg │ ├── post2.jpg │ ├── post3.jpg │ ├── post4.jpg │ ├── post5.jpg │ ├── post6.jpg │ ├── post7.jpg │ ├── post8.jpg │ ├── post9.jpg │ ├── third.jpg │ ├── access.jpg │ ├── contact.jpg │ ├── second.jpg │ └── signature.png ├── postcss.config.js ├── types ├── userTypes.ts └── postTypes.ts ├── components ├── ui │ ├── Overlay.tsx │ ├── Tag.tsx │ ├── Map.tsx │ ├── Route.tsx │ ├── Input.tsx │ ├── Button.tsx │ ├── Form.tsx │ └── SingleImageDropZone.tsx └── shared │ ├── BlogCard.tsx │ ├── LatestPost.tsx │ ├── Footer.tsx │ ├── TopPost.tsx │ ├── DeletePosts.tsx │ ├── Posts.tsx │ ├── Hero.tsx │ ├── CreateForm.tsx │ ├── MobileMenu.tsx │ └── Navbar.tsx ├── next.config.js ├── utils └── formatDate.ts ├── lib ├── prismadb.ts └── edgestore.ts ├── constants ├── index.ts └── blogData.ts ├── context └── AuthContext.tsx ├── hooks └── useMenuActive.tsx ├── .env ├── tailwind.config.ts ├── .gitignore ├── tsconfig.json ├── package.json ├── README.md └── prisma └── schema.prisma /app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /public/assets/about.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/about.jpg -------------------------------------------------------------------------------- /public/assets/post1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post1.jpg -------------------------------------------------------------------------------- /public/assets/post2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post2.jpg -------------------------------------------------------------------------------- /public/assets/post3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post3.jpg -------------------------------------------------------------------------------- /public/assets/post4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post4.jpg -------------------------------------------------------------------------------- /public/assets/post5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post5.jpg -------------------------------------------------------------------------------- /public/assets/post6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post6.jpg -------------------------------------------------------------------------------- /public/assets/post7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post7.jpg -------------------------------------------------------------------------------- /public/assets/post8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post8.jpg -------------------------------------------------------------------------------- /public/assets/post9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/post9.jpg -------------------------------------------------------------------------------- /public/assets/third.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/third.jpg -------------------------------------------------------------------------------- /public/assets/access.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/access.jpg -------------------------------------------------------------------------------- /public/assets/contact.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/contact.jpg -------------------------------------------------------------------------------- /public/assets/second.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/second.jpg -------------------------------------------------------------------------------- /public/assets/signature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevAntonioRogers/exploreX/HEAD/public/assets/signature.png -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /types/userTypes.ts: -------------------------------------------------------------------------------- 1 | export type userTypes = { 2 | id: string; 3 | name: string | null; 4 | email: string | null; 5 | emailVerified: Date | string | null; 6 | image: string | null; 7 | } | null -------------------------------------------------------------------------------- /components/ui/Overlay.tsx: -------------------------------------------------------------------------------- 1 | const Overlay = () => { 2 | return ( 3 |
4 | ); 5 | }; 6 | 7 | export default Overlay; 8 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | images: { 4 | domains: ["images.unsplash.com", "lh3.googleusercontent.com", "files.edgestore.dev"] 5 | } 6 | } 7 | 8 | module.exports = nextConfig 9 | -------------------------------------------------------------------------------- /app/create/page.tsx: -------------------------------------------------------------------------------- 1 | import getCurrentUser from "../actions/getCurrentUser"; 2 | import CreateForm from "@/components/shared/CreateForm"; 3 | const page = async () => { 4 | const user = await getCurrentUser(); 5 | return43 | Are you sure you want to delete this post? 44 |
45 |22 | Lorem ipsum, dolor sit amet consectetur 23 | adipisicing elit. Consequuntur odio excepturi 24 | dignissimos unde esse incidunt! Suscipit, unde 25 | voluptatem delectus soluta vero sequi quidem ipsum 26 | aliquam magni eos id temporibus iusto! Lorem ipsum 27 | dolor sit amet consectetur, adipisicing elit. Enim 28 | voluptatem dicta Lorem ipsum, dolor sit amet 29 | consectetur adipisicing elit. Consequuntur odio 30 | excepturi dignissimos unde esse incidunt! 31 | Suscipit, unde voluptatem delectus soluta vero 32 | sequi quidem ipsum aliquam magni eos id temporibus 33 | iusto! Lorem ipsum dolor sit amet consectetur, 34 | adipisicing elit. Enim voluptatem dicta nemo modi, 35 | minus animi sunt rem iure sequi voluptas eaque 36 | corporis laudantium ipsa ad, aliquam incidunt 37 | commodi odit! Error! Lorem, ipsum dolor sit amet 38 | consectetur adipisicing elit. Sapiente, ipsa, sint 39 | est quasi et eos qui laborum laudantium quibusdam 40 | eaque magni cum illum, at fugit non officia 41 | commodi minus maiores? 42 |
43 | 44 |{post.desc}
63 | 64 |