Initial commit

This commit is contained in:
svoboda
2024-12-15 23:42:32 +07:00
commit f7a3198e64
28 changed files with 1744 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
@charset "UTF-8";
* {
text-decoration: none;
outline: none;
border: none;
/* font-family: , system-ui, sans-serif; */
font-family: "dejavu";
transition: 0.1s ease-out;
}
body {
margin: 0;
min-height: 100vh;
padding: 0;
display: flex;
flex-direction: column;
background-color: var(--background, #fafafa);
}
aside {
}
header {
}
main {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
transition: 0s;
}
footer {
}
.unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

View File

@@ -0,0 +1,49 @@
<?php
declare(strict_types=1);
namespace svoboda\works;
// Framework for PHP
use mirzaev\minimal\core,
mirzaev\minimal\route;
// Enabling debugging
/* ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1); */
// Initializing path to the public directory
define('PUBLIC', __DIR__);
// Initializing path to the project root directory
define('ROOT', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);
// Initializing path to the directory of views
define('VIEWS', realpath('..' . DIRECTORY_SEPARATOR . 'views'));
// Initializing path to the directory of storage
define('STORAGE', realpath('..' . DIRECTORY_SEPARATOR . 'storage'));
// Initializing path to the directory of settings
define('SETTINGS', realpath('..' . DIRECTORY_SEPARATOR . 'settings'));
// Initializing path to the directory of the storage
define('STORAGE', realpath('..' . DIRECTORY_SEPARATOR . 'storage'));
// Initializing default theme for the views templater
define('THEME', 'default');
// Initializing dependencies
require ROOT . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
// Initializing core
$core = new core(namespace: __NAMESPACE__);
// Initializing routes
$router->router
->write('/', new route('index', 'index'), 'GET')
;
// Handling request
$core->start();