Skip to content

Commit d0f00d7

Browse files
committed
📱 UI improvements
1 parent 059555d commit d0f00d7

39 files changed

Lines changed: 550 additions & 1930 deletions

‎_includes/footer.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
<!-- BlueSky -->
8181
<a
82-
href="https://bsky.app/profile/beavernotes.bsky.social"
82+
href="https://bsky.app/profile/beavernotes.com"
8383
class="text-neutral-400 hover:text-blue-500"
8484
>
8585
<span class="sr-only">BlueSky</span>

‎_includes/nav.html‎

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,6 @@
22
<nav class="bg-transparent border-b dark:border-neutral-700">
33
<div class="mx-auto px-2 sm:px-6 lg:px-8">
44
<div class="relative flex h-16 items-center justify-between">
5-
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
6-
<!-- Mobile menu button -->
7-
<button
8-
id="mobile-menu-button"
9-
type="button"
10-
class="relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-neutral-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
11-
aria-controls="mobile-menu"
12-
aria-expanded="false"
13-
>
14-
<span class="absolute -inset-0.5"></span>
15-
<span class="sr-only">Open main menu</span>
16-
<!-- Icon when menu is closed -->
17-
<svg
18-
id="hamburger-icon"
19-
class="block size-6"
20-
fill="none"
21-
viewBox="0 0 24 24"
22-
stroke-width="1.5"
23-
stroke="currentColor"
24-
aria-hidden="true"
25-
>
26-
<path
27-
stroke-linecap="round"
28-
stroke-linejoin="round"
29-
d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
30-
/>
31-
</svg>
32-
<!-- Icon when menu is open -->
33-
<svg
34-
id="close-icon"
35-
class="hidden size-6"
36-
fill="none"
37-
viewBox="0 0 24 24"
38-
stroke-width="1.5"
39-
stroke="currentColor"
40-
aria-hidden="true"
41-
>
42-
<path
43-
stroke-linecap="round"
44-
stroke-linejoin="round"
45-
d="M6 18 18 6M6 6l12 12"
46-
/>
47-
</svg>
48-
</button>
49-
</div>
505
<div
516
class="flex flex-1 items-center justify-between sm:items-stretch sm:justify-start"
527
>

‎_includes/search.html‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
role="dialog"
77
aria-labelledby="search-dialog-title"
88
aria-hidden="true"
9-
class="fixed inset-0 z-50 flex items-start justify-center pt-16 sm:pt-24"
9+
class="fixed inset-0 mx-4 z-50 flex items-start justify-center pt-16 sm:pt-24"
1010
>
1111
<div
1212
class="bg-white dark:bg-neutral-700 w-full max-w-xl rounded-lg shadow-xl relative"
@@ -22,11 +22,13 @@
2222
placeholder="Type to search..."
2323
aria-label="Search input"
2424
/>
25-
26-
<!-- Search Icon -->
27-
<i
28-
class="fa-solid fa-magnifying-glass p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
29-
></i>
25+
26+
<!-- Close Button (visible on all screens) -->
27+
<button onclick="closeSearch()">
28+
<i
29+
class="fa-solid fa-close p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
30+
></i>
31+
</button>
3032
</div>
3133
<ul id="results-container" class="pb-2"></ul>
3234
</div>

‎_layouts/default.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
{% include nav.html %}
1616
<!-- Banner Section -->
1717
<header
18-
class="h-80 flex flex-col sm:flex-row items-center justify-between relative overflow-hidden bg-neutral-100 dark:bg-neutral-800"
18+
class="h-80 p-4 flex flex-col sm:flex-row items-center justify-between relative overflow-hidden bg-neutral-100 dark:bg-neutral-800"
1919
>
2020
<!-- Left Content -->
21-
<div class="relative z-10 text-left pt-10 sm:pt-auto sm:pl-8">
21+
<div class="relative z-10 text-left sm:pt-10 sm:pt-auto sm:pl-8">
2222
<h1 class="text-4xl font-bold dark:text-neutral-100">Beaver Docs</h1>
2323
<p class="mt-2 text-lg dark:text-gray-300">
2424
Help for wherever you are on your Beaver journey.
2525
</p>
2626
</div>
2727

2828
<!-- Right Image -->
29-
<div class="relative h-full w-1/3">
29+
<div class="relative h-full sm:w-1/3 w-2/3">
3030
<img
3131
src="{{ base.url }}/assets/img/home/Mac.png"
3232
alt="Documentation Image"
33-
class="sm:w-[80%] object-cover object-bottom sm:object-top mt-10"
33+
class="w-full sm:w-[80%] object-cover object-bottom sm:object-top mt-5 sm:mt-10"
3434
/>
3535
</div>
3636
</header>

‎_site/_posts/Beaver Notes/Dev/2025-01-03-How-to-contribute.html‎

Lines changed: 9 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
role="dialog"
2727
aria-labelledby="search-dialog-title"
2828
aria-hidden="true"
29-
class="fixed inset-0 z-50 flex items-start justify-center pt-16 sm:pt-24"
29+
class="fixed inset-0 mx-4 z-50 flex items-start justify-center pt-16 sm:pt-24"
3030
>
3131
<div
3232
class="bg-white dark:bg-neutral-700 w-full max-w-xl rounded-lg shadow-xl relative"
@@ -42,11 +42,13 @@
4242
placeholder="Type to search..."
4343
aria-label="Search input"
4444
/>
45-
46-
<!-- Search Icon -->
47-
<i
48-
class="fa-solid fa-magnifying-glass p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
49-
></i>
45+
46+
<!-- Close Button (visible on all screens) -->
47+
<button onclick="closeSearch()">
48+
<i
49+
class="fa-solid fa-close p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
50+
></i>
51+
</button>
5052
</div>
5153
<ul id="results-container" class="pb-2"></ul>
5254
</div>
@@ -109,51 +111,6 @@
109111
<nav class="bg-transparent border-b dark:border-neutral-700">
110112
<div class="mx-auto px-2 sm:px-6 lg:px-8">
111113
<div class="relative flex h-16 items-center justify-between">
112-
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
113-
<!-- Mobile menu button -->
114-
<button
115-
id="mobile-menu-button"
116-
type="button"
117-
class="relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-neutral-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
118-
aria-controls="mobile-menu"
119-
aria-expanded="false"
120-
>
121-
<span class="absolute -inset-0.5"></span>
122-
<span class="sr-only">Open main menu</span>
123-
<!-- Icon when menu is closed -->
124-
<svg
125-
id="hamburger-icon"
126-
class="block size-6"
127-
fill="none"
128-
viewBox="0 0 24 24"
129-
stroke-width="1.5"
130-
stroke="currentColor"
131-
aria-hidden="true"
132-
>
133-
<path
134-
stroke-linecap="round"
135-
stroke-linejoin="round"
136-
d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
137-
/>
138-
</svg>
139-
<!-- Icon when menu is open -->
140-
<svg
141-
id="close-icon"
142-
class="hidden size-6"
143-
fill="none"
144-
viewBox="0 0 24 24"
145-
stroke-width="1.5"
146-
stroke="currentColor"
147-
aria-hidden="true"
148-
>
149-
<path
150-
stroke-linecap="round"
151-
stroke-linejoin="round"
152-
d="M6 18 18 6M6 6l12 12"
153-
/>
154-
</svg>
155-
</button>
156-
</div>
157114
<div
158115
class="flex flex-1 items-center justify-between sm:items-stretch sm:justify-start"
159116
>
@@ -435,7 +392,7 @@ <h1 id="ui-and-ux">UI and UX</h1>
435392

436393
<!-- BlueSky -->
437394
<a
438-
href="https://bsky.app/profile/beavernotes.bsky.social"
395+
href="https://bsky.app/profile/beavernotes.com"
439396
class="text-neutral-400 hover:text-blue-500"
440397
>
441398
<span class="sr-only">BlueSky</span>

‎_site/_posts/Beaver Notes/Dev/2025-01-05-Contribute-to-docs.html‎

Lines changed: 9 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
role="dialog"
2727
aria-labelledby="search-dialog-title"
2828
aria-hidden="true"
29-
class="fixed inset-0 z-50 flex items-start justify-center pt-16 sm:pt-24"
29+
class="fixed inset-0 mx-4 z-50 flex items-start justify-center pt-16 sm:pt-24"
3030
>
3131
<div
3232
class="bg-white dark:bg-neutral-700 w-full max-w-xl rounded-lg shadow-xl relative"
@@ -42,11 +42,13 @@
4242
placeholder="Type to search..."
4343
aria-label="Search input"
4444
/>
45-
46-
<!-- Search Icon -->
47-
<i
48-
class="fa-solid fa-magnifying-glass p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
49-
></i>
45+
46+
<!-- Close Button (visible on all screens) -->
47+
<button onclick="closeSearch()">
48+
<i
49+
class="fa-solid fa-close p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
50+
></i>
51+
</button>
5052
</div>
5153
<ul id="results-container" class="pb-2"></ul>
5254
</div>
@@ -109,51 +111,6 @@
109111
<nav class="bg-transparent border-b dark:border-neutral-700">
110112
<div class="mx-auto px-2 sm:px-6 lg:px-8">
111113
<div class="relative flex h-16 items-center justify-between">
112-
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
113-
<!-- Mobile menu button -->
114-
<button
115-
id="mobile-menu-button"
116-
type="button"
117-
class="relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-neutral-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
118-
aria-controls="mobile-menu"
119-
aria-expanded="false"
120-
>
121-
<span class="absolute -inset-0.5"></span>
122-
<span class="sr-only">Open main menu</span>
123-
<!-- Icon when menu is closed -->
124-
<svg
125-
id="hamburger-icon"
126-
class="block size-6"
127-
fill="none"
128-
viewBox="0 0 24 24"
129-
stroke-width="1.5"
130-
stroke="currentColor"
131-
aria-hidden="true"
132-
>
133-
<path
134-
stroke-linecap="round"
135-
stroke-linejoin="round"
136-
d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
137-
/>
138-
</svg>
139-
<!-- Icon when menu is open -->
140-
<svg
141-
id="close-icon"
142-
class="hidden size-6"
143-
fill="none"
144-
viewBox="0 0 24 24"
145-
stroke-width="1.5"
146-
stroke="currentColor"
147-
aria-hidden="true"
148-
>
149-
<path
150-
stroke-linecap="round"
151-
stroke-linejoin="round"
152-
d="M6 18 18 6M6 6l12 12"
153-
/>
154-
</svg>
155-
</button>
156-
</div>
157114
<div
158115
class="flex flex-1 items-center justify-between sm:items-stretch sm:justify-start"
159116
>
@@ -746,7 +703,7 @@ <h3 id="open-a-pull-request"><strong>Open a Pull Request</strong></h3>
746703

747704
<!-- BlueSky -->
748705
<a
749-
href="https://bsky.app/profile/beavernotes.bsky.social"
706+
href="https://bsky.app/profile/beavernotes.com"
750707
class="text-neutral-400 hover:text-blue-500"
751708
>
752709
<span class="sr-only">BlueSky</span>

‎_site/_posts/Beaver Notes/Dev/2025-01-06-Contribute-to-blog.html‎

Lines changed: 9 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
role="dialog"
2727
aria-labelledby="search-dialog-title"
2828
aria-hidden="true"
29-
class="fixed inset-0 z-50 flex items-start justify-center pt-16 sm:pt-24"
29+
class="fixed inset-0 mx-4 z-50 flex items-start justify-center pt-16 sm:pt-24"
3030
>
3131
<div
3232
class="bg-white dark:bg-neutral-700 w-full max-w-xl rounded-lg shadow-xl relative"
@@ -42,11 +42,13 @@
4242
placeholder="Type to search..."
4343
aria-label="Search input"
4444
/>
45-
46-
<!-- Search Icon -->
47-
<i
48-
class="fa-solid fa-magnifying-glass p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
49-
></i>
45+
46+
<!-- Close Button (visible on all screens) -->
47+
<button onclick="closeSearch()">
48+
<i
49+
class="fa-solid fa-close p-2 text-neutral-600 dark:text-neutral-100 hover:text-amber-400 text-lg cursor-pointer"
50+
></i>
51+
</button>
5052
</div>
5153
<ul id="results-container" class="pb-2"></ul>
5254
</div>
@@ -109,51 +111,6 @@
109111
<nav class="bg-transparent border-b dark:border-neutral-700">
110112
<div class="mx-auto px-2 sm:px-6 lg:px-8">
111113
<div class="relative flex h-16 items-center justify-between">
112-
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
113-
<!-- Mobile menu button -->
114-
<button
115-
id="mobile-menu-button"
116-
type="button"
117-
class="relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-neutral-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
118-
aria-controls="mobile-menu"
119-
aria-expanded="false"
120-
>
121-
<span class="absolute -inset-0.5"></span>
122-
<span class="sr-only">Open main menu</span>
123-
<!-- Icon when menu is closed -->
124-
<svg
125-
id="hamburger-icon"
126-
class="block size-6"
127-
fill="none"
128-
viewBox="0 0 24 24"
129-
stroke-width="1.5"
130-
stroke="currentColor"
131-
aria-hidden="true"
132-
>
133-
<path
134-
stroke-linecap="round"
135-
stroke-linejoin="round"
136-
d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
137-
/>
138-
</svg>
139-
<!-- Icon when menu is open -->
140-
<svg
141-
id="close-icon"
142-
class="hidden size-6"
143-
fill="none"
144-
viewBox="0 0 24 24"
145-
stroke-width="1.5"
146-
stroke="currentColor"
147-
aria-hidden="true"
148-
>
149-
<path
150-
stroke-linecap="round"
151-
stroke-linejoin="round"
152-
d="M6 18 18 6M6 6l12 12"
153-
/>
154-
</svg>
155-
</button>
156-
</div>
157114
<div
158115
class="flex flex-1 items-center justify-between sm:items-stretch sm:justify-start"
159116
>
@@ -614,7 +571,7 @@ <h2 id="3-create-a-codespace">3. <strong>Create a Codespace</strong></h2>
614571

615572
<!-- BlueSky -->
616573
<a
617-
href="https://bsky.app/profile/beavernotes.bsky.social"
574+
href="https://bsky.app/profile/beavernotes.com"
618575
class="text-neutral-400 hover:text-blue-500"
619576
>
620577
<span class="sr-only">BlueSky</span>

0 commit comments

Comments
 (0)