website/public/features.php

55 lines
No EOL
2.2 KiB
PHP

<style><?= VV::css("public/assets/css/snippets/split") ?></style>
<style><?= VV::css("public/assets/css/pages/features") ?></style>
<section id="this-stays">
<?= VV::embed("public/assets/media/arrow.svg") ?>
<div>
<h1>This thing there,</h1>
<p>That header is present on every page, so it's loaded once and never again.</p>
</div>
<?= VV::embed("public/assets/media/arrow.svg") ?>
</section>
<section id="softnav" class="split">
<div class="text">
<h1>Website shell</h1>
<p>Load your website's main stylesheet, JavaScript, markdown, and other assets <strong>once</strong> and keep them around between page navigations. Saving bandwidth and increases page load times considerably.</p>
<div class="buttons">
<a href="/docs/Reference/JavaScript"><button class="inline">
<p>Vegvisir shells</p>
<?= VV::embed("public/assets/media/icons/chevron.svg") ?>
</button></a>
</div>
</div>
<div>
<?= VV::include("snippets/HTMLCodeDemoElement/HTMLCodeDemoElement?id=index_softnav") ?>
</div>
</section>
<section id="navigate" class="split reverse">
<div class="text">
<h1>Navigate any element</h1>
<p>Sometimes you just want to update a portion of your website. That can be done <a href="/docs/Reference/JavaScript/navigate">programmatically with JavaScript</a> or directly in the markdown using the <a href="/docs/Reference/vv-attributes"><code>vv</code>&nbsp;attributes</a>.</p>
<div class="buttons">
<a href="/docs/Reference/vv-attributes"><button class="inline">
<p>'vv' attributes</p>
<?= VV::embed("public/assets/media/icons/chevron.svg") ?>
</button></a>
</div>
</div>
<div>
<?= VV::include("snippets/HTMLCodeDemoElement/HTMLCodeDemoElement?id=features/vv-nav") ?>
</div>
</section>
<section id="include" class="split">
<div class="text">
<h1>..or include that page with the response</h1>
<p>Vevisir pages, snippets, and other PHP files can be inlined with the response using <code>VV::include</code>.</p>
<div class="buttons">
<a href="/docs/Reference/PHP/VV/include"><button class="inline">
<p>VV::include()</p>
<?= VV::embed("public/assets/media/icons/chevron.svg") ?>
</button></a>
</div>
</div>
<div>
<?= VV::include("snippets/HTMLCodeDemoElement/HTMLCodeDemoElement?id=features/vv-include") ?>
</div>
</section>