# Custom Template

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

### Create Template File

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

### Register Template

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

### Template Structures

```php
@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

```php
@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

```php
@include('curtain::components.countdown') // Countdown timer
@include('curtain::components.status')    // Status indicator
```

### Available Variables

```php
{{ $timer }}    // Countdown end time
{{ $message }}  // Custom message
{{ $refresh }}  // Auto-refresh flag
```

### Usage

```bash
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
