Commit Graph

52 Commits

Author SHA1 Message Date
Sat Naing 793eafa965 fix: adjust nav bar alignment in heading (#492) 2025-03-22 17:22:38 +07:00
Alexey Poimtsev 673c00969e fix: align vertically in header nav (#460) 2025-03-09 16:58:19 +07:00
satnaing 39ed4898a3 fix: show light/dark button according to site setting 2025-03-08 18:21:37 +07:00
satnaing 172e14b5f4 build!: upgrade to Tailwind CSS v4 2025-03-08 18:21:37 +07:00
Patrick Wilson 7573617e79 feat: add archives page with configurable menu (#386)
* feat: add archives page with configurable menu

* optimize: compat mobile layout

* fix: update archive menu layout

* fix: hide archives page from URL if showArchives is false

* docs: add `showArchives` option in docs

Resolves #361

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2024-10-14 18:49:40 +07:00
面条 b3a1d9d369 fix: add trailing slash to links to avoid extra redirects (#246)
Add trailing slash to links for improved consistency with RSS links and to avoid unnecessary redirects.

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2024-01-25 10:24:28 +06:30
Mario Davó 742314e0ac fix: remove extra padding if lightAndDarkMode is false (#230)
Remove the extra "right-padding" inside the header search icon when lightAndDarkMode is false so UI is consistent.
This is done by including <li> tag inside if statement
2024-01-12 22:03:19 +06:30
satnaing 940deb6d3f fix(a11y): resolve accessibility issues
A11y Improvements
- add screen-reader only texts
- remove autoFocus on search box
- replace disabled link with span text in LinkButton
2024-01-09 15:49:50 +06:30
satnaing 5171111f89 style: update nav list style to be more flexible 2023-09-26 02:04:11 +06:30
satnaing a060cb5c87 feat: add transition effect if light/dark changes 2023-09-26 02:04:11 +06:30
satnaing cbdaa59bae feat: add ViewTransitions from Astro
Integrate ViewTransitions API from Astro v3.

resolve #96
2023-09-26 02:04:11 +06:30
satnaing e486687610 feat: upgrade to astro v3
Upgrade to astro v3. Update dependencies. Fix codes and features due to migration.

BREAKING CHANGE: Astro v3

resolve #111
2023-09-26 02:04:11 +06:30
satnaing 87b3e5b8cd fix: update title of the blog nowrap 2023-09-26 02:04:11 +06:30
satnaing e017dcf9a5 style: format files with prettier 2023-06-21 11:48:07 +06:30
satnaing 0f764242fe fix: update menu element with svg and refactor toggle logic
Replace div element in menu button with svg. Refactor toggle-menu JS logic to be more concise.
2023-04-18 23:19:38 +06:30
Sha Mwe La a9631d0e1e feat: add ESLint and update linting errors (#26)
* Install ESLint and Astro ESLint plugin

* Configure 2 plugins

* Improve ignore files

* Add lint script

* Install astro-eslint-parser

* Add parser and fix linting errors
2023-02-02 16:24:38 +06:30
satnaing 1a427285f3 style: format styles with Tailwind Prettier plugin 2023-01-31 15:53:49 +06:30
satnaing 0fe14f4217 refactor: refactor relative imports to aliases 2023-01-28 00:52:18 +06:30
satnaing 46ea4aa49a feat: update mobile nav to be accessible
Put 'Open Menu' button under nav tag. Add aria-label, aria-expanded and aria-controls in 'Open Menu'
button. Make the entire nav to be more accessible.
2022-12-06 22:48:15 +06:30
satnaing 93e67bf2be refactor: remove unused css for hr 2022-12-05 23:29:43 +06:30
satnaing 9980854686 refactor: remove unused (commented) styles 2022-12-04 23:54:40 +06:30
satnaing 3442232c35 refactor(a11y): make nav links and buttons bigger on mobile devices
The navigation links/buttons can be a struggle for mobile devices where users use their finger.
Thus, nav links/buttons are made to be bigger to meet touch size guidelines.
2022-11-28 15:43:17 +06:30
satnaing 2ba459b413 refactor(a11y): update theme switch button for better accessibility
Update title, add aria-label and aria-live in theme switch button.
2022-11-26 23:45:17 +06:30
Sat Naing 81fced6333 Update background and text color of Skip to main button 2022-09-26 00:09:55 +06:30
Sat Naing 58cb6ba8e5 Add 2 color scheme config option 2022-09-25 21:42:06 +06:30
Sat Naing 3dd1ac8a9f Support svg and png logo image types 2022-09-23 12:24:54 +06:30
Sat Naing 11acd422e7 Add dynamic logo image and logo text 2022-09-23 00:13:17 +06:30
Sat Naing 300fd568e9 Replace env variable with SITE config object 2022-09-22 21:32:02 +06:30
Sat Naing 3a7303bc67 Rotate theme button icons 12deg on hover 2022-09-22 20:01:03 +06:30
Sat Naing fa209f1d31 Remove unnecessary shadow in header 2022-09-19 23:21:48 +06:30
Sat Naing 503a96c938 Add aria-label in menu button 2022-09-17 01:19:34 +06:30
Sat Naing 215e9722e7 Improve a11y by adding aria-label in LinkButton 2022-09-17 01:05:28 +06:30
Sat Naing 4632f52655 Add new search link in header 2022-09-14 22:11:56 +06:30
Sat Naing db657e4ecd Add dynamic site title in header 2022-09-13 23:56:12 +06:30
Sat Naing 1c5e8b47b4 Add 'Skip to content' link for a11y 2022-09-12 18:56:44 +06:30
Sat Naing 08b45143c0 Adjust margin and padding of nav items 2022-09-12 18:40:50 +06:30
Sat Naing ec27c0fbfa Add focus-outline style on focus-visible 2022-09-12 18:40:11 +06:30
Sat Naing 086ed37c75 Remove unnecessary vertical margin for icon btn wrapper 2022-09-12 18:28:44 +06:30
Sat Naing faf16953d4 Remove unnecessary vertical padding for nav 2022-09-12 18:26:44 +06:30
Sat Naing 763409a535 Add vertical padding for logo 2022-09-12 18:23:28 +06:30
Sat Naing 4c4b1bc637 Remove unnecessary vertical margin of nav li on larger devices 2022-09-12 18:21:48 +06:30
Sat Naing 299e6df17c Add open and close menu animation 2022-09-11 21:35:56 +06:30
Sat Naing 38a33fe967 Replace hr with Hr component 2022-09-11 12:15:59 +06:30
Sat Naing 463022acc9 Add more specific selector for hr 2022-09-11 01:48:51 +06:30
Sat Naing bb8209f99d Update style to display active nav link 2022-09-10 21:23:15 +06:30
Sat Naing 778fc1422e Update font-size of logo to be smaller on desktop 2022-09-10 15:10:56 +06:30
Sat Naing d38fbff512 Add horizontal space between search & theme icons on mobile 2022-09-10 15:09:23 +06:30
Sat Naing a77416ba03 Remove border opacity 2022-09-09 20:40:50 +06:30
Sat Naing 5cab9ba301 Update hamburger menu svg to be larger 2022-09-09 15:59:21 +06:30
Sat Naing 65e424ea15 Improve header and nav to be responsive 2022-09-09 13:49:45 +06:30