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
@section('body-class') // Body container styles
@section('container-class') // Main container styles
@section('content-class') // Content wrapper styles
@section('title-class') // Title styles
@section('message-class') // Message styles
@section('countdown-class') // Countdown container styles
Available Components
@include('curtain::components.countdown') // Countdown timer
@include('curtain::components.status') // Status indicator
Available Variables
{{ $timer }} // Countdown end time
{{ $message }} // Custom message
{{ $refresh }} // Auto-refresh flag
Usage
php artisan curtain:up --template=custom
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