Portal de demos
This commit is contained in:
45
index.php
Normal file
45
index.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
$base_url = '/provm/demos';
|
||||
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [dirname(__DIR__)]));
|
||||
$demos = [];
|
||||
foreach ($files as $file) {
|
||||
if (!$file->isDir() or $file->isDot() or $file->getBasename() == 'public') {
|
||||
continue;
|
||||
}
|
||||
$demos []= $file->getBasename();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
<title>Demos - ProVM</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/semantic.min.css" />
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/brand-icons.woff" />
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/brand-icons.woff2" />
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/icons.woff" />
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/icons.woff2" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="ui container">
|
||||
<nav class="ui menu">
|
||||
<a class="item" href="#">
|
||||
<img src="/provm/portal/public/assets/images/logo.png" />
|
||||
</a>
|
||||
</nav>
|
||||
</header>
|
||||
<section class="ui container">
|
||||
<div class="ui basic segment">
|
||||
<h1 class="header">
|
||||
Demos
|
||||
</h1>
|
||||
<div class="ui celled list">
|
||||
<?php foreach ($demos as $demo): ?>
|
||||
<a class="item" href="<?= implode('/', [$base_url, $demo]); ?>"><?= $demo; ?></a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/semantic.min.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user