forked from jpanther/congo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Style updates to enhance design consistency
- Loading branch information
Showing
20 changed files
with
120 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
<div id="page"> | ||
{{ partial "partials/home/page.html" . }} | ||
</div> | ||
<div id="profile" class="hidden"> | ||
{{ partial "partials/home/profile.html" . }} | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
function switchLayout() { | ||
var pageDiv = document.getElementById("page"); | ||
var profileDiv = document.getElementById("profile"); | ||
var layoutSpan = document.getElementById("layout"); | ||
const pageDiv = document.getElementById("page"); | ||
const profileDiv = document.getElementById("profile"); | ||
const layoutCode = document.querySelectorAll("code[id=layout]"); | ||
if (pageDiv.style.display === "none") { | ||
pageDiv.style.display = "block"; | ||
profileDiv.style.display = "none"; | ||
layoutSpan.innerHTML = "page"; | ||
layoutCode.forEach(function (el) { | ||
el.innerText = "page"; | ||
}); | ||
} else { | ||
pageDiv.style.display = "none"; | ||
profileDiv.style.display = "block"; | ||
layoutSpan.innerHTML = "profile"; | ||
layoutCode.forEach(function (el) { | ||
el.innerText = "profile"; | ||
}); | ||
} | ||
} | ||
</script> | ||
|
||
<div class="flex px-4 py-3 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900"> | ||
<span class="flex items-center pr-3 text-primary-400"> | ||
{{ partial "icon.html" "exclamation-triangle" }} | ||
</span> | ||
<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 ↻ | ||
</button> | ||
</span> | ||
</div> | ||
|
||
<div id="page"> | ||
{{ partial "partials/home/page.html" . }} | ||
</div> | ||
<div id="profile" style="display: none"> | ||
{{ partial "partials/home/profile.html" . }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<span | ||
class="ml-1 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1" | ||
class="ml-1 px-1 py-[1px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1" | ||
> | ||
{{ . }} | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<header> | ||
{{ if .Site.Params.list.showBreadcrumbs | default false }} | ||
{{ partial "breadcrumbs.html" . }} | ||
{{ end }} | ||
<section class="prose dark:prose-light"> | ||
<h1 class="mb-3 text-4xl font-extrabold">{{ .Title }}</h1> | ||
<section>{{ .Content }}</section> | ||
</section> | ||
</header> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<a | ||
class="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" | ||
<button | ||
class="px-4 py-1 !text-white !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700" | ||
{{ with .Get "href" }}href="{{ . }}"{{ end }} | ||
{{ with .Get "target" }}target="{{ . }}"{{ end }} | ||
role="button" | ||
>{{ .Inner }} | ||
</a> | ||
> | ||
{{ .Inner }} | ||
</button> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters