Skip to content

Mintaa911/sentinel

Repository files navigation

Sentinel Standards

A modern Next.js website for Sentinel Standards, a company specializing in glycomics and proteomics research.

Technology Stack

This project is built with:

Getting Started

First, install the dependencies:

npm install
# or
yarn install
# or
pnpm install

Environment Variables

Create 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-01

Then, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Project Structure

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

Sanity CMS Integration

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

Blog Features

  • 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

Available Scripts

  • npm run dev - Start development server with Turbopack
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

Learn More

To learn more about the technologies used in this project:

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages