Custom Template

You can create your own templates to match your application's design:

Create Template File

# Create template in
resources/views/vendor/curtain/templates/custom.blade.php

Register Template

// config/curtain.php
'templates' => [
    'custom' => [
        'name' => 'Custom Template',
        'view' => 'vendor.curtain.templates.custom',
    ],
],

Template Structures

@extends('curtain::templates.base')

@section('title')
    Custom Maintenance Title
@endsection

@section('content')
    <div class="your-custom-classes">
        {{-- Your custom content --}}
        @include('curtain::components.countdown')
        @include('curtain::components.status')
    </div>
@endsection

Available Sections

Available Components

Available Variables

Usage

Each template can be:

  • Extended with custom styles

  • Modified with different layouts

  • Enhanced with additional components

  • Customized with brand colors

  • Adapted for specific needs

Remember to:

  • Keep the essential components (countdown, status)

  • Maintain responsive design

  • Follow accessibility guidelines

  • Test across different devices

Last updated