niri 1.6 → 1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6f53809d751bac8eb355d62016924f66847689be4a57fce5cc09b8e2888a92f
4
- data.tar.gz: 68fad13105090d3673f00a80e52b4377f558a53cb6432207e243972724fa2778
3
+ metadata.gz: 80f48fd626d783e9e81d2bdede1d12ea4dc1bea6d179c1ac988a5f796d18cbaf
4
+ data.tar.gz: f419f256bd577596cb56bf4aa922b49ca7544fbe532020e03793c2178544f6e5
5
5
  SHA512:
6
- metadata.gz: 6643fce07b97720a2ca2341353ea66e0c833892086063539b7cd5fdf5569081f960626c4e66d16e99db62c1b80b66fb16720216ebf1e7200db1bc35654d55ce9
7
- data.tar.gz: d89cc69638e6ae8e061c1b04d6078a4f9ae97844ebb1e381e06c04a715b8ee819d94d6b319ee13162aac4a1b87d6586a55533b687e15b191c9862e480ed6789b
6
+ metadata.gz: 30b032c04ab6f97590402f8636a808b3e925c06bb9fd3ac763e24c6bed1d78475e390b61647f9317c714826f77a33512337cc601ed88225deb9ac05f6c88c67a
7
+ data.tar.gz: 64af8e8b8aa390202ca882916894d599ba9188610e5fb6f09d5458f3012b3ce8efd4db0ceef0caf3fc64ca48182c9bdf0adb279c133751b350774e67a0051e83
data/_config.yml CHANGED
@@ -6,4 +6,4 @@ url: ""
6
6
  twitter_username: rokhiminwahid
7
7
  github_username: rokhimin
8
8
  logo: https://i.ibb.co.com/sdVSmQ5x/niri-logo.png
9
- files: "/jekyll-niri"
9
+ #files: "/jekyll-niri"
@@ -0,0 +1,69 @@
1
+
2
+ :root {
3
+ --text-color: rgb(255, 255, 255);
4
+ }
5
+
6
+ html.is-dark {
7
+ --text-color: rgb(138, 138, 138);
8
+ }
9
+
10
+ body {
11
+ color: var(--text-color);
12
+ }
13
+
14
+ .title, .subtitle, .content, h1, h2, h3, h4, h5, h6, ul, li, hr {
15
+ color: var(--text-color);
16
+ }
17
+
18
+ code {
19
+ color: #3b43b1;
20
+ }
21
+
22
+ pre {
23
+ color: #ff9306;
24
+ }
25
+
26
+ html.is-dark {
27
+ background-color: #2a2a2a;
28
+ color: white;
29
+ }
30
+
31
+ html.is-dark .hero {
32
+ background-color: #63615f;
33
+ color: white;
34
+ }
35
+
36
+ html.is-dark .navbar {
37
+ background-color: #63615f;
38
+ color: white;
39
+ }
40
+
41
+ html.is-dark .navbar-menu {
42
+ background-color: #63615f;
43
+ color: white;
44
+ }
45
+
46
+ html.is-dark .footer {
47
+ background-color: #5c5a58;
48
+ color: white;
49
+ }
50
+
51
+ html.is-dark .box {
52
+ background-color: #413e3e;
53
+ color: white;
54
+ }
55
+
56
+ html.is-dark .notification {
57
+ background-color: #333333;
58
+ color: white;
59
+ }
60
+
61
+ html.is-dark .button {
62
+ background-color: #444444;
63
+ color: white;
64
+ }
65
+
66
+ html.is-dark .title,
67
+ html.is-dark .subtitle {
68
+ color: white;
69
+ }
@@ -0,0 +1,36 @@
1
+ document.addEventListener("DOMContentLoaded", function () {
2
+ const toggleButton = document.getElementById("toggle-button");
3
+ const themeIcon = document.getElementById("theme-icon");
4
+ const currentTheme = localStorage.getItem("theme");
5
+
6
+ // Light Mode sebagai default (Dark Mode hanya aktif jika sebelumnya dipilih)
7
+ if (currentTheme === "dark") {
8
+ document.documentElement.classList.add("is-dark");
9
+ } else {
10
+ document.documentElement.classList.remove("is-dark");
11
+ localStorage.setItem("theme", "light"); // Pastikan default tersimpan
12
+ }
13
+
14
+ function updateIcon() {
15
+ if (document.documentElement.classList.contains("is-dark")) {
16
+ themeIcon.classList.replace("fa-moon", "fa-sun");
17
+ } else {
18
+ themeIcon.classList.replace("fa-sun", "fa-moon");
19
+ }
20
+ }
21
+
22
+ // Perbarui ikon sesuai mode awal
23
+ updateIcon();
24
+
25
+ toggleButton.addEventListener("click", () => {
26
+ document.documentElement.classList.toggle("is-dark");
27
+
28
+ if (document.documentElement.classList.contains("is-dark")) {
29
+ localStorage.setItem("theme", "dark");
30
+ } else {
31
+ localStorage.setItem("theme", "light");
32
+ }
33
+
34
+ updateIcon();
35
+ });
36
+ });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niri
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.6'
4
+ version: '1.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - rokhimin Wahid
@@ -40,6 +40,8 @@ files:
40
40
  - _layouts/page.html
41
41
  - _layouts/post.html
42
42
  - assets/css/bulma-1.0.2.css
43
+ - assets/css/main.css
44
+ - assets/js/darklight-mode.js
43
45
  homepage: https://github.com/rokhimin/Niri
44
46
  licenses:
45
47
  - MIT