Implement simple blog with Next.js#297
Open
Madmax-xhyyy wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implemented a Fullstack Blog Application using Next.js (App Router), TypeScript, and Tailwind CSS. The project is initialized inside the fullstack/my-app directory. To elevate the user experience, I expanded the core requirements by designing a dedicated Welcome Landing Page that navigates users into the primary Blog Posts Feed and individual article views.
Approach & Technical Choices
Architecture & Flow: Built with Next.js (App Router) within the fullstack/my-app path, creating a multi-page user journey:
fullstack/my-app/app/page.tsx (Welcome Page): Acts as a clean, engaging landing page that introduces the blog with a strong Call-to-Action (CTA) button leading to the main feed.
fullstack/my-app/app/posts/page.tsx (Posts List): Displays a responsive grid or list of all blog posts with their titles, dates, and excerpts.
fullstack/my-app/app/posts/[id]/page.tsx (Single Post View): A dynamic route that fetches and renders the full post details, complete with a back navigation button.
Type Safety: Written fully in TypeScript, defining clear models for Post objects to ensure reliable data handling across components and API routes.
API Layer (fullstack/my-app/app/api/posts): Implemented Next.js Route Handlers to mock backend behavior. It successfully serves the entire array of posts or filters down to a specific post when requested.
Styling: Styled a minimalist, modern UI using Tailwind CSS. Leveraged clean typography, fluid layout structures, subtle hover interactions on post cards, and complete mobile-to-desktop responsiveness.
Checklist Completed
Set up the Next.js workspace with TypeScript and Tailwind CSS inside the fullstack/my-app directory.
Designed a dedicated Welcome Landing Page as the application entry point.
Created the Blog Feed page listing post previews.
Implemented Dynamic Route Pages for reading individual articles.
Created underlying API Routes to serve collection and ID-specific data.
Tested locally via npm run dev to verify clean transitions and working endpoints.
Screenshots
Looking forward to your feedback! Please let me know if there's anything you'd like me to tweak or improve.