website/public/index.php

33 lines
No EOL
1 KiB
PHP

<?php
use const VVWebsite\MEDIA_DIR;
require_once VV::root("src/Consts.php");
?>
<style><?= VV::css("public/assets/css/pages/index.css") ?></style>
<section id="intro" class="split">
<div>
<h1>Vegvisir</h1>
<h2>is a PHP and JavaScript web framework with</h2>
<h1>native soft-navigation and asset injection</h1>
<h2>that also gives you</h2>
<h1>automatic soft-navigation from an MPA-like file structure</h1>
</div>
<div class="compass">
<?= VV::embed(MEDIA_DIR . "compass-points.svg") ?>
<?= VV::embed(MEDIA_DIR . "compass-points.svg") ?>
<?= VV::embed(MEDIA_DIR . "compass.svg") ?>
</div>
</section>
<section id="assets" class="split">
<div>
<h1>Asset injection</h1>
<p>Vegvisir allows you to bundle your page JavaScript and CSS directly into a soft-navigated page using native PHP templating and the VV PHP class.</p>
</div>
<div>
<?= VV::include("elements/HTMLCodeDemoElement?id=index_assets") ?>
</div>
</section>
<?= VV::include("snippets/footer") ?>
<script><?= VV::js("public/assets/js/pages/index.js") ?></script>