25 lines
659 B
PHP
25 lines
659 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use PHPNative\Framework\Application;
|
|
use PHPNative\Ui\Widget\Container;
|
|
use PHPNative\Ui\Window;
|
|
|
|
// Create application
|
|
$app = new Application();
|
|
$window = new Window('Simple Shadow Test', 400, 400);
|
|
|
|
// Main container with light background
|
|
$mainContainer = new Container('flex items-center justify-center bg-gray-200');
|
|
|
|
// Simple box with shadow - add bg-white so it's visible
|
|
$box = new Container('w-48 h-48 bg-white rounded-lg shadow-lg shadow-rose-500');
|
|
|
|
$mainContainer->addComponent($box);
|
|
|
|
// Set window content and run
|
|
$window->setRoot($mainContainer);
|
|
$app->addWindow($window);
|
|
$app->run();
|