A modern Next.js website for Sentinel Standards, a company specializing in glycomics and proteomics research.
This project is built with:
- Next.js 15 - React framework with App Router
- React 19 - UI library
- TypeScript - Type safety
- Tailwind CSS - Utility-first CSS framework
- Radix UI - Accessible UI components
- Lucide React - Beautiful icons
- Sanity CMS - Headless CMS for blog content management
- next-sanity - Sanity integration for Next.js
First, install the dependencies:
npm install
# or
yarn install
# or
pnpm installCreate a .env.local file in the root directory with your Sanity configuration:
NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id
NEXT_PUBLIC_SANITY_DATASET=production
NEXT_PUBLIC_SANITY_API_VERSION=2024-01-01Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
src/
├── app/ # Next.js App Router pages
│ ├── about/ # About pages
│ ├── blog/ # Blog pages
│ ├── contact/ # Contact page
│ └── products/ # Product pages
├── components/ # React components
│ ├── home/ # Home page components
│ ├── blog/ # Blog components
│ └── ui/ # Reusable UI components
└── lib/ # Utility functions
└── sanity/ # Sanity CMS integration
├── client.ts # Sanity client configuration
├── config.ts # Sanity environment variables
└── queries/ # GROQ queries for blog posts
└── post.ts # Post-specific queries
This project uses Sanity CMS for managing blog content. The integration includes:
- Content Management: Blog posts, authors, and categories managed through Sanity Studio
- GROQ Queries: Custom queries for fetching blog posts and related content
- Image Optimization: Automatic image URL generation and optimization
- Dynamic blog post pages with slug-based routing
- Author information and images
- Category filtering
- Rich text content with Portable Text
- Optimized images with Sanity's image URL builder
npm run dev- Start development server with Turbopacknpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
To learn more about the technologies used in this project:
- Next.js Documentation - learn about Next.js features and API
- Learn Next.js - an interactive Next.js tutorial
- Tailwind CSS Documentation - learn about Tailwind CSS
- Radix UI Documentation - learn about Radix UI components
- Sanity Documentation - learn about Sanity CMS
- GROQ Query Language - learn about GROQ queries