40 | );
41 | };
42 |
43 | export default DetailPage;
44 |
--------------------------------------------------------------------------------
/public/next.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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.js`. 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 |
--------------------------------------------------------------------------------
/fakeDB.json:
--------------------------------------------------------------------------------
1 | {
2 | "posts": [
3 | {
4 | "id": 1,
5 | "title": "Exploring all the Universe",
6 | "description": "Embark on a cosmic journey through space, discovering celestial wonders and unraveling the mysteries of distant galaxies. Join us as we delve into the vastness of the cosmos.",
7 | "likesCount": 1500
8 | },
9 | {
10 | "id": 2,
11 | "title": "The Art of Photography",
12 | "description": "Capture moments frozen in time with the artistry of photography. Learn the techniques, perspectives, and nuances that make every snapshot a unique masterpiece.",
13 | "likesCount": 1100
14 | },
15 | {
16 | "id": 3,
17 | "title": "Healthy Eating Habits",
18 | "description": "Discover the keys to maintaining a balanced diet and nourishing your body with wholesome foods. Explore recipes, nutrition tips, and sustainable eating habits.",
19 | "likesCount": 980
20 | },
21 | {
22 | "id": 4,
23 | "title": "Mastering Productivity",
24 | "description": "Unlock your full potential and boost productivity with effective strategies, time management techniques, and tools to achieve your goals efficiently.",
25 | "likesCount": 1450
26 | },
27 | {
28 | "id": 5,
29 | "title": "DIY Home Improvement",
30 | "description": "Transform your living space with creative do-it-yourself home improvement projects. Get inspired and learn practical tips for renovations and decor.",
31 | "likesCount": 670
32 | },
33 | {
34 | "id": 6,
35 | "title": "Mindfulness Meditation",
36 | "description": "Embrace tranquility and inner peace through mindfulness meditation practices. Experience the benefits of mindfulness for mental well-being and relaxation.",
37 | "likesCount": 1150
38 | }
39 | ]
40 | }
41 |
--------------------------------------------------------------------------------