📝 Complete documentation overhaul

This commit is contained in:
James Panther
2021-08-16 17:19:10 +10:00
parent c279dd72cd
commit b1f6b2ed7b
27 changed files with 640 additions and 392 deletions
+11 -6
View File
@@ -1,5 +1,5 @@
<script type="text/javascript">
function displayFunction() {
function switchLayout() {
var pageDiv = document.getElementById("page");
var profileDiv = document.getElementById("profile");
var layoutSpan = document.getElementById("layout");
@@ -16,18 +16,23 @@
</script>
<div class="flex px-4 py-3 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
<span class="pr-3 text-primary-400">
<span class="flex items-center pr-3 text-primary-400">
{{ partial "icon.html" "exclamation-triangle" }}
</span>
<span class="no-prose dark:text-gray-300">
This is a demo of the `<code id="layout" class="">page</code>` homepage layout.
<button class="px-2 py-2 font-bold" onclick="displayFunction()">Switch</button>
<span class="flex items-center justify-between flex-grow no-prose dark:text-gray-300">
<span>This is a demo of the `<code id="layout" class="">page</code>` layout.</span>
<button
class="font-bold px-4 py-2 !text-white !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
onclick="switchLayout()"
>
Switch layout &orarr;
</button>
</span>
</div>
<div id="page">
{{ partial "partials/home/page.html" . }}
</div>
<div id="profile">
<div id="profile" style="display: none">
{{ partial "partials/home/profile.html" . }}
</div>