Skip to content

Commit 849f995

Browse files
authored
Merge pull request #108 from Moros1138/add-help-to-navbar-and-mobile-menu
Add help to navbar and mobile menu
2 parents 4feaf35 + dda4626 commit 849f995

File tree

6 files changed

+88
-5
lines changed

6 files changed

+88
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ It is a summary of changes that would be pertinent to the end user of the PGEtin
77
## 2024-06-25
88

99
- Fixed light theme persistence
10+
- Add link icon to links menu item
11+
- Add help to menu
12+
- Add patreon icon to supporters menu item
13+
- Add styles to account for space used by help menu item
1014

1115
## 2024-06-19
1216

resources/css/app/navbar.scss

+15-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,21 @@
108108
}
109109
}
110110

111-
@media screen and (max-width: 750px) {
111+
@media screen and (min-width: 761px) and (max-width: 900px) {
112+
#header {
113+
nav {
114+
.menu {
115+
&.left-menu {
116+
.item > a span {
117+
display: none;
118+
}
119+
}
120+
}
121+
}
122+
}
123+
}
124+
125+
@media screen and (max-width: 760px) {
112126
#header {
113127
nav {
114128
.menu {

resources/images/patreon.svg

+46
Loading

resources/js/lib/lucide.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
BadgePlus,
44
Bug,
55
CircleDollarSign,
6+
CircleHelp,
67
CirclePlay,
78
CircleStop,
89
Download,
@@ -15,18 +16,22 @@ import {
1516
SquareChevronRight,
1617
SunMoon,
1718
UndoDot,
18-
Youtube } from 'lucide';
19+
Youtube,
20+
Link,
21+
} from 'lucide';
1922

2023
createIcons({
2124
icons: {
2225
BadgePlus,
2326
Bug,
27+
CircleDollarSign,
28+
CircleHelp,
2429
CirclePlay,
2530
CircleStop,
26-
CircleDollarSign,
2731
Download,
2832
ExternalLink,
2933
Github,
34+
Link,
3035
Menu,
3136
Newspaper,
3237
PencilRuler,

resources/js/lib/mobileMenuDialog.js

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export default function mobileMenuDialog(state)
2323
<li class="subitem">
2424
<a id="settings-menu" tabindex="0">Settings</a>
2525
</li>
26+
<li class="subitem">
27+
<a target="_blank" href="/wiki/">
28+
<span>Help</span>
29+
</a>
30+
</li>
2631
<li class="subitem">
2732
<a id="news-and-updates">
2833
<span>What's New</span>

resources/views/home.blade.php

+11-2
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,15 @@
6565
<li class="separator"></li>
6666
</ul>
6767
<ul class="menu right-menu">
68+
<li class="item">
69+
<a target="_blank" href="/wiki/" title="Help Wiki">
70+
<i data-lucide="circle-help"></i>
71+
<span>Help</span>
72+
</a>
73+
</li>
6874
<li class="item">
6975
<a id="supporters">
70-
<!-- ICON? -->
76+
<svg class="lucide" fill="currentColor" stroke="none" width="24" height="24" xmlns="http://www.w3.org/2000/svg"viewBox="0 0 1080 1080"><rect width="192.44098" height="963.00232" x="45.960854" y="58.49884" /><circle cx="694.31726" cy="424.37286" r="357.3031" /></svg>
7177
<span>Supporters</span>
7278
</a>
7379
</li>
@@ -92,7 +98,10 @@
9298
</ul>
9399
</li>
94100
<li class="item has-submenu">
95-
<a tabindex="0">Links</a>
101+
<a tabindex="0">
102+
<i data-lucide="link"></i>
103+
<span>Links</span>
104+
</a>
96105
<ul class="submenu">
97106
<li class="subitem">
98107
<a href="#" id="news-and-updates">

0 commit comments

Comments
 (0)