---
title: Content Blocks for Astro
description: "Astro media-and-text sections for explanations, stories, and project details."
seo:
    title: "Astro Content blocks: examples and source"
sidebar:
    label: "Content"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
---

## Stacked media

Put the explanation before a full-width media area.

```astro
---
import Content1Block from "@/components/blocks/content/content-1.astro"
import Photo from "@/assets/images/winter-landscape-orion.png"
---

<Content1Block
  image={{ src: Photo, alt: "Winter landscape" }}
  title="Leave a useful record of each decision"
  description="Record the choice, the reason behind it, and the person who will check the result. A short note can prevent the same discussion next week."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
    "Share the weekly plan",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/content-1
```

## Split media

Keep a supporting image beside the explanation.

```astro
---
import Content2Block from "@/components/blocks/content/content-2.astro"
---

<Content2Block
  title="A planning session starts with good questions"
  description="Bring your open questions to the review. Sort them into decisions, tasks, and details that need more research."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/content-2
```

## Spread header

Arrange the heading and actions above the media.

```astro
---
import Content3Block from "@/components/blocks/content/content-3.astro"
---

<Content3Block
  title="From a rough note to a published story"
  description="The Morrow editors collect reader questions, prepare a draft, and check each source before the next issue."
  buttons={[
    {
      label: "Read the editorial guide",
      href: "https://example.com/morrow/editorial-guide",
    },
    {
      label: "Browse the reading room",
      href: "https://example.com/morrow/journal",
      variant: "secondary",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/content-3
```

## Wide media

Give the media more room than the supporting text.

```astro
---
import Content4Block from "@/components/blocks/content/content-4.astro"
---

<Content4Block
  title="Find a notebook that fits your routine"
  description="Compare page size, binding, and ruling. A pocket notebook can travel with you, while a larger folio leaves room for a weekly plan."
  features={[
    "Compare paper sizes",
    "Choose a cover finish",
    "Check the available ruling",
  ]}
  buttons={[
    {
      label: "Browse notebooks",
      href: "https://example.com/index-supply/catalog",
    },
    {
      label: "Read product details",
      href: "https://example.com/index-supply/details",
      variant: "secondary",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/content-4
```

## Product introduction

Place partner logos above a large heading and product image.

```astro
---
import Block from "@/components/blocks/content/content-nimbus-introduction.astro"
const content = {
  title: "A little more room for your day.",
  description:
    "Meet Loom, a fictional home assistant designed for everyday tasks.",
  image: {
    src: "/images/nimbus-sample.svg",
    alt: "Product sample",
  },
  logos: [
    {
      src: "/favicon.svg",
      alt: "Sample studio",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-nimbus-introduction
```

## Results and method

Pair a main result with metric cards and expandable method notes.

```astro
---
import Block from "@/components/blocks/content/content-nimbus-signals.astro"
const content = {
  eyebrow: "Sample results",
  title: "Show the results and their limits.",
  description:
    "These fictional values show how to present a small product trial.",
  headline: "90% active each week.",
  summary: "Example activity after the first month.",
  metrics: [
    {
      label: "Active homes",
      value: "90%",
      description: "Homes that used the product during the week.",
      source: "Fictional sample",
    },
    {
      label: "Setup time",
      value: "35 min",
      description: "Median time from unpacking to the first task.",
      source: "Fictional sample",
    },
    {
      label: "Trial homes",
      value: "120",
      description: "Homes included in this example.",
      source: "Fictional sample",
    },
  ],
  methodologyTitle: "How we count",
  methodologyDescription: "Explain the sample and the method.",
  methodology: [
    {
      question: "What is an active home?",
      answer: "A home that completed at least one task during the week.",
    },
    {
      question: "Are these real results?",
      answer: "No. These are sample values for this block preview.",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-nimbus-signals
```

## Content Portfolio About

An independent section from the Portfolio template. Supply its content through props.

```astro
---
import Block from "@/components/blocks/content/content-portfolio-about.astro"
import asset0 from "../../../../../packages/templates/sable/site/src/assets/sable/stylist-at-work.png"
import asset1 from "../../../../../packages/templates/sable/site/src/assets/sable/sculpted-bob.png"
import asset2 from "../../../../../packages/templates/sable/site/src/assets/sable/natural-curls.png"
import asset3 from "../../../../../packages/templates/sable/site/src/assets/sable/soft-balayage.png"
import asset4 from "../../../../../packages/templates/sable/site/src/assets/sable/textured-crop.png"
import asset5 from "../../../../../packages/templates/sable/site/src/assets/sable/silver-pixie.png"
import asset6 from "../../../../../packages/templates/sable/site/src/assets/sable/loose-waves.png"
const content = {
  title: "Rowan · Hair stylist",
  description:
    "A sample profile for an independent stylist. Soft shapes, natural movement, and practical care are at the centre of this fictional studio.",
  image: {
    src: asset0,
    alt: "A stylist finishing shoulder-length hair with a brush and dryer",
  },
  skills: ["Precision cuts", "Colour", "Curly hair", "Styling"],
  experience: [
    {
      role: "Independent stylist",
      company: "Example studio",
      period: "Now",
    },
    {
      role: "Stylist",
      company: "Example salon",
      period: "2021–2025",
    },
  ],
  projects: [
    {
      src: asset1,
      alt: "A chin-length dark bob with a soft fringe",
      name: "The sculpted bob",
      href: "#visit",
      label: "The sculpted bob",
    },
    {
      src: asset2,
      alt: "Shoulder-length natural curls in soft daylight",
      name: "Natural curls",
      href: "#visit",
      label: "Natural curls",
    },
    {
      src: asset3,
      alt: "Long brunette hair with subtle caramel colour",
      name: "Soft balayage",
      href: "#visit",
      label: "Soft balayage",
    },
    {
      src: asset4,
      alt: "A short coily crop with a soft taper",
      name: "The textured crop",
      href: "#visit",
      label: "The textured crop",
    },
    {
      src: asset5,
      alt: "A textured silver pixie cut",
      name: "Silver, softly shaped",
      href: "#visit",
      label: "Silver, softly shaped",
    },
    {
      src: asset6,
      alt: "Shoulder-length dark waves with a soft face frame",
      name: "Everyday waves",
      href: "#visit",
      label: "Everyday waves",
    },
  ],
  projectsId: "looks",
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-portfolio-about
```

## Split statement

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/content/content-split-statement/content-split-statement.astro"
import type { SplitStatementContent } from "@/components/blocks/content/content-split-statement/types"
const content = {
  value: "01",
  title: "One useful workflow is a better start than a hundred new tools.",
  description:
    "Start with the task your team repeats every day. Build it well. Then take the next step.",
} satisfies SplitStatementContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-split-statement
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/content/content-split-statement/types.ts"
    name="SplitStatementProps"
/>

## Story and statistics

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/content/content-story-stats/content-story-stats.astro"
import type { StoryStatsContent } from "@/components/blocks/content/content-story-stats/types"
const content = {
  label: "Our point of view",
  title: "A Studio Built Around the Next Useful Step",
  description:
    "We believe good automation starts small, makes sense to the people using it, and gets better with use.",
  milestones: [
    {
      label: "Observe",
      title: "Start at the shared desk.",
      description:
        "Watch how a real request moves through the business. The useful details are often in the small steps between tools.",
      image: {
        src: "/media/gnotch/workshop.webp",
        alt: "A small group working together with laptops",
      },
    },
    {
      label: "Connect",
      title: "Keep what already works.",
      description:
        "A familiar tool with a better connection can do more than another dashboard. We build around the systems your team knows.",
      image: {
        src: "/media/gnotch/desk-session.webp",
        alt: "Colleagues reviewing a task at a laptop",
      },
    },
    {
      label: "Explain",
      title: "Make the system readable.",
      description:
        "Your team should know what runs, when it runs, and what to do if it stops. Clear instructions are part of the product.",
      image: {
        src: "/media/gnotch/project-review.webp",
        alt: "A project discussion around an office table",
      },
    },
    {
      label: "Improve",
      title: "Leave room for the next step.",
      description:
        "Listen to the people who use the workflow. Fix the rough edges, measure the result, and add only what the work needs.",
      image: {
        src: "/media/gnotch/team-working.webp",
        alt: "Colleagues sharing ideas around a work table",
      },
    },
  ],
} satisfies StoryStatsContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-story-stats
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/content/content-story-stats/types.ts"
    name="StoryStatsProps"
/>

## Editorial about

Use this section for the about part of a studio site.

```astro
---
import Section from "@/components/blocks/content/content-agency.astro"
const section = {
  label: "A studio for studios",
  title:
    "You shape the places people live. We shape the way people find, understand, and remember your work.",
  description:
    "Foldline brings brand design, editorial thinking, and web development to architecture and interiors. Small team. Close conversations. Care in every detail.",
  wordmark: "foldline",
  stats: [
    {
      label: "Connected disciplines",
      value: "03",
    },
    {
      label: "Shared project team",
      value: "01",
    },
    {
      label: "Clear project stages",
      value: "04",
    },
  ],
}
---

<Section {...section} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-agency
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/shared/agency/types.ts"
    name="AgencyAboutProps"
/>

See [serif accent font setup](/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Editorial project milestones

Use this list for awards or project milestones. Foldline uses it to describe the work in each concept project.

```astro
---
import Section from "@/components/blocks/awards/awards-agency.astro"
const section = {
  label: "Inside the projects",
  title: "Small details,",
  accent: "lasting value",
  awards: [
    {
      organization: "Rook & Stone",
      title: "A clearer studio story",
      project: "Positioning & identity",
    },
    {
      organization: "Morrow Rooms",
      title: "A warmer first impression",
      project: "Art direction & content",
    },
    {
      organization: "Tern Objects",
      title: "A collection with room to grow",
      project: "Catalogue & website",
    },
    {
      organization: "Foldline",
      title: "One connected way of working",
      project: "Strategy, design & build",
    },
  ],
}
---

<Section {...section} />
```

```sh
bunx --bun shadcn@latest add @gnostic/awards-agency
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/shared/agency/types.ts"
    name="AgencyAwardsProps"
/>

See [serif accent font setup](/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Home services introduction

```astro
---
import Block from "@/components/blocks/content/content-remodify-introduction.astro"
const content = {
  brand: "Remodify",
  title: "Keep the place you love. Change the way it lives.",
  images: [
    {
      src: "https://images.unsplash.com/photo-1770756051811-1612ac8bedfa?auto=format&fit=max&w=1600&q=80",
      alt: "White home with dark windows and glass garage doors",
    },
    {
      src: "https://images.unsplash.com/photo-1696814543783-c0835c0be682?auto=format&fit=max&w=1600&q=80",
      alt: "Bright kitchen with white cabinets, wood flooring, and orange breakfast chairs",
    },
    {
      src: "https://images.unsplash.com/photo-1729173078273-3ee243b9273b?auto=format&fit=max&w=1600&q=80",
      alt: "Bathroom with a blue bathtub and a large window",
    },
    {
      src: "https://images.unsplash.com/photo-1726090401458-7abb00f7450c?auto=format&fit=max&w=1600&q=80",
      alt: "Living room with timber beams and a stone fireplace",
    },
    {
      src: "https://images.unsplash.com/photo-1771888703723-01d85da1dae1?auto=format&fit=max&w=1600&q=80",
      alt: "Open living space with neutral sofas and curved chairs",
    },
    {
      src: "https://images.unsplash.com/photo-1762146828422-50a8bd416d3c?auto=format&fit=max&w=1600&q=80",
      alt: "Architectural drawings spread across a work surface",
    },
  ],
  trustTitle: "Good spaces start with a good plan.",
  description:
    "We help Raleigh homeowners connect the details, from the first layout to the last cabinet handle.",
  benefits: [
    {
      title: "A clear scope",
      icon: "clipboard-check",
    },
    {
      title: "Care in every detail",
      icon: "hammer",
    },
    {
      title: "One point of contact",
      icon: "messages-square",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-remodify-introduction
```

## Home services confidence

```astro
---
import Block from "@/components/blocks/content/content-remodify-confidence.astro"
const content = {
  title: "Less Guesswork. More Home.",
  description:
    "Your remodel should fit your routines as well as your rooms. We listen first, explain the options, and agree on the work before it begins.",
  benefits: [
    "Room layouts shaped around your needs",
    "A written scope and itemized estimate",
    "Regular updates and a tidy work area",
  ],
  action: {
    label: "(919) 555-0142",
    href: "tel:+19195550142",
  },
  image: {
    src: "https://images.unsplash.com/photo-1769353086138-19ee65291a04?auto=format&fit=max&w=1600&q=80",
    alt: "Carpenter shaping a piece of wood in a workshop",
  },
  stats: [
    {
      value: "01",
      label: "Dedicated project contact",
    },
    {
      value: "04",
      label: "Clear steps from idea to finish",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-remodify-confidence
```

## Video demonstration

A local video with a poster, playback controls, and a caption.

```astro
---
import Block from "@/components/blocks/content/content-video-demo.astro"
import poster from "../../../../../packages/templates/nimbus/site/src/assets/nimbus-dishes.png"
import video from "../../../../../packages/templates/nimbus/site/src/assets/nimbus-robot-doing-dishes.mp4?url"
---

<Block
  eyebrow="In motion"
  title="One small job."
  description="A short concept demonstration with playback controls."
  src={video}
  poster={{ src: poster, alt: "Nimbus holding a plate at the sink" }}
  caption="Concept footage, not a performance test."
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/content-video-demo
```

## Split image and story

An imported image beside plain text and an optional action.

```astro
---
import Block from "@/components/blocks/content/content-split-story.astro"
import asset0 from "../../../../../packages/templates/sable/site/src/assets/sable/stylist-at-work.png"
const content = {
  eyebrow: "Our kind of salon",
  title: "Room to slow down.\nSpace to be you.",
  paragraphs: [
    "We like good conversations, honest advice, and hair that still feels right weeks after your appointment. Sable is built around those simple things.",
    "Bring a picture, a question, or no plan at all. We will listen first and work out the next step together.",
  ],
  image: {
    src: asset0,
    alt: "A stylist finishing shoulder-length hair with a brush and dryer",
  },
  action: {
    label: "Plan your first visit",
    href: "#visit",
  },
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-split-story
```

## Choose a content layout

Choose a content layout that fits the balance between your text and media. A short explanation can sit beside one image; a longer story may need several sections with separate headings.

## Pass content from Astro

Pass the chosen variant’s title, description, optional features, buttons, and image data. Keep the text structured rather than placing an entire page in one description string. Use slots where the block exposes them for richer markup.

## Responsive layout and images

Review the order when columns stack on small screens. Import local images for props typed as ImageMetadata and choose a crop suited to the displayed ratio. Check that text remains readable when the image is missing or delayed.

## Compose the next section

Use [Hero](/blocks/hero) for the opening statement, [Features](/blocks/features) for a set of benefits, and [CTA](/blocks/cta) for the next action.
