Law Process
"How we work" in numbered steps along a vertical line with large serif numerals.
Así trabajamos contigo
Cuatro pasos, siempre por escrito y con fechas. Tú decides en cada uno.
- 01
Primera consulta
Escuchamos tu caso y te decimos con franqueza qué opciones tienes y cuánto costaría cada una.
- 02
Estrategia y presupuesto
Te proponemos un plan por escrito con plazos, honorarios y riesgos. Sin sorpresas.
- 03
Seguimiento en tu portal
Ves cada novedad, documento y fecha en tu área privada, y hablas con tu abogado por mensajería segura.
- 04
Resolución
Negociamos cuando conviene y litigamos cuando hace falta. Te explicamos el resultado y los siguientes pasos.
Usage
Copy and paste this code into your Astro page:
---
import { LawProcess } from 'astro-component-kit/sections';
---
<LawProcess steps={lawProcess} /> ---
import { LawProcess } from 'astro-component-kit/sections';
---
<LawProcess steps={lawProcess} /> Examples in context
Real code from the kit: how this piece is used inside templates, sections and other components.
LawHomePage.astro <LawProcess steps={data.process} /> <LawProcess steps={data.process} /> Used in
Manual Installation
If you are not using the npm package, create a new file and paste the following code: src/components/sections/LawProcess.astro:
---
/**
* LawProcess — "How we work" in numbered steps along a vertical line with large serif numerals.
*
* @param {Array<{title: string, text: string}>} steps - Process steps.
* @param {string} title - Section heading.
* @param {string} subtitle - Supporting text.
* @param {string} headingLevel - 'h1' | 'h2'. Default 'h2'.
* @param {string} class - Extra class for the root.
*
* Accessibility: an ordered list (<ol>) so the sequence is announced; numerals are decorative
* (aria-hidden) because list numbering already conveys the order.
*/
import type { HTMLAttributes } from 'astro/types';
import '../templates/law-firm/law-theme.css';
import { lawProcess } from '../templates/law-firm/data';
interface OwnProps {
steps?: Array<{ title: string; text: string }>;
title?: string;
subtitle?: string;
headingLevel?: 'h1' | 'h2';
}
type Props = OwnProps & Omit<HTMLAttributes<'section'>, keyof OwnProps | 'class'> & { class?: string };
const {
steps = lawProcess,
title = 'Así trabajamos contigo',
subtitle = 'Cuatro pasos, siempre por escrito y con fechas. Tú decides en cada uno.',
headingLevel = 'h2',
class: classAttr,
...rest
} = Astro.props;
const Heading = headingLevel;
const uid = `lpr-${Math.random().toString(36).slice(2, 8)}`;
---
<section class:list={['law-ui', 'law-process', classAttr]} aria-labelledby={`${uid}-title`} {...rest}>
<div class="law-process__inner">
<header class="law-process__head">
<Heading id={`${uid}-title`} class="law-process__title">{title}</Heading>
{subtitle && <p class="law-process__subtitle">{subtitle}</p>}
</header>
<ol class="law-process__list">
{steps.map((s, i) => (
<li class="law-step">
<span class="law-step__num" aria-hidden="true">{String(i + 1).padStart(2, '0')}</span>
<div class="law-step__body">
<h3 class="law-step__title">{s.title}</h3>
<p class="law-step__text">{s.text}</p>
</div>
</li>
))}
</ol>
</div>
</section>
<style>
.law-process {
padding: var(--sp-12, 3rem) var(--sp-4, 1rem);
background: var(--lw-bg);
color: var(--lw-text);
font-family: var(--lw-font-body);
}
.law-process__inner {
display: grid;
gap: var(--sp-8, 2rem);
max-width: 1180px;
margin: 0 auto;
}
.law-process__title {
margin: 0;
font-family: var(--lw-font-display);
font-weight: 600;
font-size: clamp(2.2rem, 5vw, 3.6rem);
line-height: 1;
}
.law-process__subtitle {
max-width: 420px;
margin: var(--sp-3, 0.75rem) 0 0;
color: var(--lw-text-2);
line-height: 1.6;
}
.law-process__list {
position: relative;
display: grid;
gap: var(--sp-6, 1.5rem);
margin: 0;
padding: 0;
list-style: none;
}
.law-process__list::before {
content: '';
position: absolute;
top: 8px;
bottom: 8px;
left: 30px;
width: 1px;
background: linear-gradient(180deg, var(--lw-brand), transparent);
}
.law-step {
position: relative;
display: grid;
grid-template-columns: 62px 1fr;
gap: var(--sp-4, 1rem);
}
.law-step__num {
position: relative;
z-index: 1;
display: grid;
place-items: center;
width: 62px;
height: 62px;
border: 1px solid var(--lw-border-strong);
border-radius: 50%;
background: var(--lw-bg);
color: var(--lw-brand);
font-family: var(--lw-font-display);
font-size: 1.6rem;
font-weight: 600;
}
.law-step__title {
margin: 6px 0 var(--sp-1, 0.25rem);
font-family: var(--lw-font-display);
font-size: 1.7rem;
font-weight: 600;
}
.law-step__text {
max-width: 520px;
margin: 0;
color: var(--lw-text-2);
line-height: 1.6;
}
@media (min-width: 960px) {
.law-process__inner {
grid-template-columns: 0.8fr 1.2fr;
gap: var(--sp-12, 3rem);
align-items: start;
}
}
</style> ---
/**
* LawProcess — "How we work" in numbered steps along a vertical line with large serif numerals.
*
* @param {Array<{title: string, text: string}>} steps - Process steps.
* @param {string} title - Section heading.
* @param {string} subtitle - Supporting text.
* @param {string} headingLevel - 'h1' | 'h2'. Default 'h2'.
* @param {string} class - Extra class for the root.
*
* Accessibility: an ordered list (<ol>) so the sequence is announced; numerals are decorative
* (aria-hidden) because list numbering already conveys the order.
*/
import type { HTMLAttributes } from 'astro/types';
import '../templates/law-firm/law-theme.css';
import { lawProcess } from '../templates/law-firm/data';
interface OwnProps {
steps?: Array<{ title: string; text: string }>;
title?: string;
subtitle?: string;
headingLevel?: 'h1' | 'h2';
}
type Props = OwnProps & Omit<HTMLAttributes<'section'>, keyof OwnProps | 'class'> & { class?: string };
const {
steps = lawProcess,
title = 'Así trabajamos contigo',
subtitle = 'Cuatro pasos, siempre por escrito y con fechas. Tú decides en cada uno.',
headingLevel = 'h2',
class: classAttr,
...rest
} = Astro.props;
const Heading = headingLevel;
const uid = `lpr-${Math.random().toString(36).slice(2, 8)}`;
---
<section class:list={['law-ui', 'law-process', classAttr]} aria-labelledby={`${uid}-title`} {...rest}>
<div class="law-process__inner">
<header class="law-process__head">
<Heading id={`${uid}-title`} class="law-process__title">{title}</Heading>
{subtitle && <p class="law-process__subtitle">{subtitle}</p>}
</header>
<ol class="law-process__list">
{steps.map((s, i) => (
<li class="law-step">
<span class="law-step__num" aria-hidden="true">{String(i + 1).padStart(2, '0')}</span>
<div class="law-step__body">
<h3 class="law-step__title">{s.title}</h3>
<p class="law-step__text">{s.text}</p>
</div>
</li>
))}
</ol>
</div>
</section>
<style>
.law-process {
padding: var(--sp-12, 3rem) var(--sp-4, 1rem);
background: var(--lw-bg);
color: var(--lw-text);
font-family: var(--lw-font-body);
}
.law-process__inner {
display: grid;
gap: var(--sp-8, 2rem);
max-width: 1180px;
margin: 0 auto;
}
.law-process__title {
margin: 0;
font-family: var(--lw-font-display);
font-weight: 600;
font-size: clamp(2.2rem, 5vw, 3.6rem);
line-height: 1;
}
.law-process__subtitle {
max-width: 420px;
margin: var(--sp-3, 0.75rem) 0 0;
color: var(--lw-text-2);
line-height: 1.6;
}
.law-process__list {
position: relative;
display: grid;
gap: var(--sp-6, 1.5rem);
margin: 0;
padding: 0;
list-style: none;
}
.law-process__list::before {
content: '';
position: absolute;
top: 8px;
bottom: 8px;
left: 30px;
width: 1px;
background: linear-gradient(180deg, var(--lw-brand), transparent);
}
.law-step {
position: relative;
display: grid;
grid-template-columns: 62px 1fr;
gap: var(--sp-4, 1rem);
}
.law-step__num {
position: relative;
z-index: 1;
display: grid;
place-items: center;
width: 62px;
height: 62px;
border: 1px solid var(--lw-border-strong);
border-radius: 50%;
background: var(--lw-bg);
color: var(--lw-brand);
font-family: var(--lw-font-display);
font-size: 1.6rem;
font-weight: 600;
}
.law-step__title {
margin: 6px 0 var(--sp-1, 0.25rem);
font-family: var(--lw-font-display);
font-size: 1.7rem;
font-weight: 600;
}
.law-step__text {
max-width: 520px;
margin: 0;
color: var(--lw-text-2);
line-height: 1.6;
}
@media (min-width: 960px) {
.law-process__inner {
grid-template-columns: 0.8fr 1.2fr;
gap: var(--sp-12, 3rem);
align-items: start;
}
}
</style>
This section was crafted as a core block for the following template. You can preview the full interactive multi-page experience or explore all related components.
Fuero · Law Firm & Client Portal
Law firm site with practice areas, team, fee models and consultation booking, plus a client portal with cases and timelines, documents with e-signature, secure messages, appointments and invoices.
More Sections to Explore
Discover other full-width landing blocks and production-ready sections from our library.
Law Hero
Law firm hero with a serif headline, free-consultation and areas CTAs, direct phone line, key figures and a "case file" card that shows how clients follow their case.
Law Practice Areas
Practice areas as accessible tabs: pick an area and read its summary, typical matters and a consultation link. Opens the area from ?area=.
Law Team
Lawyers team with initials portraits, role, years of practice, languages and bio, with an optional filter by practice area.
Law Results
Track record: a row of result figures and client testimonials with the matter type and outcome as a chip.