1 GitHub star = 1 new component.

Full templates

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.

Complete template for a law firm or professional services practice. 9 page types: home with a case-file hero, practice areas, process, results, fee models, team, articles and FAQ; interactive practice areas; team with area filter; free-consultation booking; plus client sign-in, a portal home (what needs your attention, appointments, invoices), a case explorer with timeline, a document vault with upload and e-signature, and secure messaging.

9 pages 10 components 10 sections 0 deps

Live preview

Pages

Every page is a real, interactive preview: links, forms and state work across pages.

Home

Hero, practice areas, process, results, fee models, team, articles and FAQ.

src/pages/index.astro

Practice areas

Interactive practice areas (?area= opens one), fee models and FAQ.

src/pages/areas.astro

Team

Lawyers with a filter by area, how we work and results.

src/pages/equipo.astro

Free consultation

Book area, day, time and format, then confirm; pre-selects the area from ?area=.

src/pages/consulta.astro

Client sign in

Split sign-in with scales illustration, testimonial and figures.

src/pages/acceso.astro

Portal home

Overview, what needs your attention, appointments and invoices.

src/pages/portal/index.astro

Cases

Cases with status filter, progress, next step and timeline.

src/pages/portal/expedientes.astro

Documents

Vault with search, filters, upload and e-signature.

src/pages/portal/documentos.astro

Messages

Secure chat with your lawyer and upcoming appointments.

src/pages/portal/mensajes.astro

What is included

  • Practice areas as accessible tabs that open from ?area= links
  • Consultation booking with day, time slot and format and a confirmation summary
  • Case explorer with status filter, progress, next step and a vertical timeline
  • Document vault with upload by click or drag & drop and e-signature action
  • Secure messaging log, .ics calendar download and invoice payment flow

Install & use

  1. Install the package

    bash
    npm install astro-component-kit
    npm install astro-component-kit
  2. Create one Astro page per template page

    src/pages/index.astro

    astro
    ---
    import { LawHomePage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawHomePage />
    --- import { LawHomePage } from 'astro-component-kit/templates/law-firm'; --- <LawHomePage />

    src/pages/areas.astro

    astro
    ---
    import { LawAreasPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawAreasPage />
    --- import { LawAreasPage } from 'astro-component-kit/templates/law-firm'; --- <LawAreasPage />

    src/pages/equipo.astro

    astro
    ---
    import { LawTeamPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawTeamPage />
    --- import { LawTeamPage } from 'astro-component-kit/templates/law-firm'; --- <LawTeamPage />

    src/pages/consulta.astro

    astro
    ---
    import { LawConsultPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawConsultPage action="/api/consulta" />
    --- import { LawConsultPage } from 'astro-component-kit/templates/law-firm'; --- <LawConsultPage action="/api/consulta" />

    src/pages/acceso.astro

    astro
    ---
    import { LawSignInPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawSignInPage />
    --- import { LawSignInPage } from 'astro-component-kit/templates/law-firm'; --- <LawSignInPage />

    src/pages/portal/index.astro

    astro
    ---
    import { LawDashboardPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawDashboardPage />
    --- import { LawDashboardPage } from 'astro-component-kit/templates/law-firm'; --- <LawDashboardPage />

    src/pages/portal/expedientes.astro

    astro
    ---
    import { LawCasesPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawCasesPage />
    --- import { LawCasesPage } from 'astro-component-kit/templates/law-firm'; --- <LawCasesPage />

    src/pages/portal/documentos.astro

    astro
    ---
    import { LawDocumentsPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawDocumentsPage />
    --- import { LawDocumentsPage } from 'astro-component-kit/templates/law-firm'; --- <LawDocumentsPage />

    src/pages/portal/mensajes.astro

    astro
    ---
    import { LawMessagesPage } from 'astro-component-kit/templates/law-firm';
    ---
    
    <LawMessagesPage />
    --- import { LawMessagesPage } from 'astro-component-kit/templates/law-firm'; --- <LawMessagesPage />
  3. Use your own catalogue, currency and routes

    Spread the demo store and replace what you need. Products accept a real image or one of 16 built-in illustrations.

    astro
    ---
    // Pass your own data and routes to every page (e.g. from your case-management system)
    import { LawHomePage, lawData, lawRoutes } from 'astro-component-kit/templates/law-firm';
    
    const data = {
      ...lawData,
      brand: { ...lawData.brand, name: 'Mora Abogados', phone: '+34 900 000 000' },
      cases: await fetch('https://api.example.com/cases').then((r) => r.json()),
    };
    
    const routes = { ...lawRoutes, areas: '/practice', consult: '/book' };
    ---
    
    <LawHomePage data={data} routes={routes} />
    --- // Pass your own data and routes to every page (e.g. from your case-management system) import { LawHomePage, lawData, lawRoutes } from 'astro-component-kit/templates/law-firm'; const data = { ...lawData, brand: { ...lawData.brand, name: 'Mora Abogados', phone: '+34 900 000 000' }, cases: await fetch('https://api.example.com/cases').then((r) => r.json()), }; const routes = { ...lawRoutes, areas: '/practice', consult: '/book' }; --- <LawHomePage data={data} routes={routes} />

New sections 10

Full-width blocks of this template, available in Sections. Open any of them to see it on its own page with code.

Section

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.

Section

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=.

Section

Law Team

Lawyers team with initials portraits, role, years of practice, languages and bio, with an optional filter by practice area.

Section

Law Process

"How we work" in numbered steps along a vertical line with large serif numerals.

Section

Law Results

Track record: a row of result figures and client testimonials with the matter type and outcome as a chip.

Section

Law Fees

Transparent fee models side by side (fixed fee, success fee, monthly retainer) with price, explanation and the matters each suits best.

Section

Law Consultation

Free consultation booking: choose area, one of the next business days, a time slot and format, then leave your details. Includes a confirmation summary.

Section

Law Insights

Legal articles as three cards with area, date, reading time, title and excerpt; the first one is featured.

Section

Law FAQ

Frequently asked questions as a native accordion with a contact line.

Section

Law Footer

Law firm footer with a consultation call-to-action band, link columns, contact and the bar-association and professional-secrecy legal block.

New e-commerce components 10

Built for this template and available on their own in the library.

Component

Law Case Summary

Portal home overview: active cases, next appointment, documents awaiting signature and pending balance, plus a "needs your attention" list with links to act.

Component

Law Case Explorer

Case browser: list with status filters and, for the selected case, lawyer, progress bar, highlighted next step and a vertical timeline of done and upcoming milestones.

Component

Law Document Vault

Client document vault with search, type and case filters, a table of files, electronic-signature action and an upload area that accepts click or drag & drop.

Component

Law Message Thread

Secure messaging with your lawyer: conversation log grouped by day with firm and client bubbles and a composer (Enter sends, Shift+Enter adds a line).

Component

Law Appointments

Upcoming appointments with date block, place or video link and lawyer, a month calendar with marked days and an add-to-calendar .ics download.

Component

Law Invoices

Fees and invoices: pending balance, list with concept, due date, amount and status, and a pay button that marks invoices as paid and updates the balance (demo).

Component

Law Portal Topbar

Client-portal top bar with today’s date, a secure-connection chip, theme toggle, notifications and user menu (native popovers).

Component

Law Portal Heading

Page heading for the client portal with kicker, description, back link and action buttons.

Component

Law Sign In

Split sign-in with a scales illustration, testimonial, figures, password show/hide and a demo quick-access link.

Reused library components

Existing components the template is assembled from.