惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
I
InfoQ
B
Blog RSS Feed
D
Docker
GbyAI
GbyAI
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
F
Fortinet All Blogs
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
M
MIT News - Artificial intelligence
C
Check Point Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
博客园 - Franky
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Last Week in AI
Last Week in AI
L
LangChain Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building an AI tool landing page with Next.js 14 — chat m...
Dev Maya · 2026-05-07 · via DEV Community

Dev Maya

Building an AI tool landing page with Next.js 14

Every AI tool launching right now needs a landing page. Most of them look identical — dark mode, purple gradients, floating blobs. I wanted to build something different.

This is what I learned building Forge, an AI tool landing page template in Next.js 14.

🔗 Live demo: https://forge-ai-template.vercel.app/

Design decisions

I deliberately went against the grain:

  • Light mode with clean whites and indigo accents (#4f46e5)
  • Space Grotesk — geometric but warm, not cold like Inter
  • Grid background in the hero with CSS mask-image (no canvas, no JS)
  • Chat interface as the hero mockup instead of a generic screenshot

The goal was to feel like a well-funded AI startup, not another side project.


The hero grid background

One of my favorite CSS tricks in this project:

.grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    black,
    transparent 70%
  );
  opacity: 0.4;
}

Enter fullscreen mode Exit fullscreen mode

The mask-image fades the grid out toward the bottom — no JavaScript, no SVG, no library. Just CSS.


The AI chat mockup

The entire chat window is pure HTML/CSS. No canvas, no external library:

.window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.05),
    0 20px 60px rgba(0,0,0,0.08);
}

Enter fullscreen mode Exit fullscreen mode

The "thinking" animation on the AI response uses staggered delays:

@keyframes thinking {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

.thinkDot:nth-child(2) { animation-delay: 0.2s; }
.thinkDot:nth-child(3) { animation-delay: 0.4s; }

Enter fullscreen mode Exit fullscreen mode

Three dots, staggered delays, zero JavaScript. Clean.


The FAQ accordion

This is the only component that needs 'use client' in the entire project. Everything else is server components.

'use client'
import { useState } from 'react'

export default function FAQ() {
  const [open, setOpen] = useState<number | null>(0)

  return (
    <div>
      {siteConfig.faq.map((item, i) => (
        <div key={i}>
          <button onClick={() => setOpen(open === i ? null : i)}>
            {item.question}
          </button>
          {open === i && <div>{item.answer}</div>}
        </div>
      ))}
    </div>
  )
}

Enter fullscreen mode Exit fullscreen mode

Simple, accessible, no animation library needed.


Single config file pattern

Everything the buyer needs to edit lives in src/lib/config.ts:

export const siteConfig = {
  name: 'YourAI',
  tagline: 'The AI that actually understands your code',
  steps: [
    { number: '01', title: 'Connect your repo', description: '...' },
    { number: '02', title: 'Ask in plain English', description: '...' },
    { number: '03', title: 'Ship production code', description: '...' },
  ],
  features: [...],
  pricing: [...],
  faq: [...],
}

Enter fullscreen mode Exit fullscreen mode

Brand name, steps, features, pricing, FAQ — all in one place. Change the file, the whole site updates. No hunting through components.


Architecture overview

src/
├── app/
│   ├── globals.css      # CSS variables & base styles
│   ├── layout.tsx       # Root layout + metadata
│   └── page.tsx         # Assembles all sections
├── components/
│   ├── sections/        # Navbar, Hero, Features, Pricing, FAQ...
│   └── ui/              # ChatMockup
└── lib/
    └── config.ts        # ← Edit this to customize everything

Enter fullscreen mode Exit fullscreen mode

The only 'use client' boundary is FAQ.tsx. Every other section is a server component — better performance, simpler mental model.


Sections included

  • Sticky navbar with blur on scroll
  • Hero with animated chat mockup + grid background
  • Social proof bar (stats)
  • How it works (3 steps with dashed connector)
  • Features grid (dark background section)
  • Pricing table (3 tiers, featured plan)
  • FAQ accordion (interactive)
  • CTA banner
  • Footer

Lessons learned

Keep 'use client' boundaries minimal. The FAQ is the only interactive element that truly needs client-side state. Everything else benefits from being a server component.

CSS variables pay for themselves. Having all colors in :root meant changing the entire indigo palette took 2 lines.

The config file is the product. Buyers don't care about the components — they care about how fast they can make it theirs. A single file with clear comments is worth more than any design decision.


🔗 Live demo: https://forge-ai-template.vercel.app
🛒 Available on Gumroad: https://devmaya.gumroad.com/l/njzbkz

If you have questions about any implementation detail, drop them in the comments — happy to go deeper.