Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions src/demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ function gtag() {

<label for="theme">Theme</label>
<select class="param" id="theme" name="theme">
<?php foreach ($THEMES as $theme => $options): ?>
<?php

//added sort in alphabetical order
ksort($THEMES, SORT_NATURAL | SORT_FLAG_CASE);

foreach ($THEMES as $theme => $options) : ?>
<?php
$dataAttrs = "";
foreach ($options as $key => $value) {
Expand All @@ -112,7 +117,7 @@ function gtag() {

<label for="locale">Locale</label>
<select class="param" id="locale" name="locale">
<?php foreach ($LOCALES as $locale): ?>
<?php foreach ($LOCALES as $locale) : ?>
<option value="<?php echo $locale; ?>">
<?php $display = Locale::getDisplayName($locale, $locale); ?>
<?php echo $display . " (" . $locale . ")"; ?>
Expand Down Expand Up @@ -206,7 +211,7 @@ function gtag() {
<div class="color-properties parameters">
<label for="properties">Add Property</label>
<select id="properties" name="properties">
<?php foreach ($THEMES["default"] as $option => $color): ?>
<?php foreach ($THEMES["default"] as $option => $color) : ?>
<option><?php echo $option; ?></option>
<?php endforeach; ?>
</select>
Expand All @@ -232,24 +237,24 @@ function gtag() {
<p class="warning">
Note: The stats above are just examples and not from your GitHub profile.
</p>

<div>
<h2>Markdown</h2>
<div class="code-container md">
<code></code>
</div>

<button class="copy-button btn tooltip copy-md" onclick="clipboard.copy(this);" onmouseout="tooltip.reset(this);" disabled>
Copy To Clipboard
</button>
</div>

<div>
<h2>HTML</h2>
<div class="code-container html">
<code></code>
</div>

<button class="copy-button btn tooltip copy-html" onclick="clipboard.copy(this);" onmouseout="tooltip.reset(this);" disabled>
Copy To Clipboard
</button>
Expand All @@ -260,7 +265,7 @@ function gtag() {
<div class="code-container json">
<code></code>
</div>

<button class="copy-button btn tooltip copy-json" onclick="clipboard.copy(this);" onmouseout="tooltip.reset(this);" disabled>
Copy To Clipboard
</button>
Expand All @@ -285,4 +290,4 @@ function gtag() {
</a>
</body>

</html>
</html>
13 changes: 13 additions & 0 deletions src/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2134,4 +2134,17 @@
"dates" => "#A7ADBA",
"excludeDaysLabel" => "#A7ADBA",
],
"kanagawa-paper" => [
"background" => "#1F1F28",
"border" => "#54546D",
"stroke" => "#727169",
"ring" => "#7FB4CA",
"fire" => "#E46876",
"currStreakNum" => "#98BB6C",
"sideNums" => "#7E9CD8",
"currStreakLabel" => "#E6C384",
"sideLabels" => "#7AA89F",
"dates" => "#C4B28A",
"excludeDaysLabel" => "#C8C093",
],
];