Commit graph

140 commits

Author SHA1 Message Date
radishzzz
3312b30dbf feat: add code copy cutton 2025-05-27 01:37:19 +01:00
radishzz
47e1df9b3d
feat: performance optimizations and ui improvements (#26)
* test: remove astro-compress

* test: remove astro-compress

* perf: add astro-compress, optimize resource preloading

* perf: moving photoswipe styles to head with non-blocking preload strategy

* test: disable astro-compress

* test: enable astro-compress

* fix: typescript hints

* chore: adjust toc style and gsap animation

* style: optimize gsap animation logic, adjust toc style

* chore: adjust toc style

* fix: photoswipe transition position offset caused by scrollbar-gutter
2025-05-26 20:21:38 +01:00
radishzzz
c1996585a8 fix: resolve gsap animation flash on page load
- Add initial state styles for animated elements in CSS
- Change GSAP animations from .from() to .to() method
- Move reduce-motion class from JS to server-side HTML
- Improve performance by eliminating DOM flash
- Enhance code readability with better formatting
2025-05-26 11:12:47 +01:00
radishzzz
5b8668b6e8 refactor: add more characters to early summer font, optimize font import styles 2025-05-26 02:03:32 +01:00
radishzzz
91481626c5 fix: adjust component styles to resolve layout and positioning issues 2025-05-25 19:52:29 +01:00
radishzzz
9894c4eccb chore: update fonts to support latin, cyrillic and greek characters, reduce snell-black font size from 124% to 115% 2025-05-25 18:19:08 +01:00
radishzzz
4d247cfb93 feat: add reducemotion config option to optimize performance
- Add `reduceMotion` option in theme config to improve performance
- Update Button component to support reduced animations
- Modify GSAP animation logic to adapt to the new configuration
- Update documentation to reflect the new feature
2025-05-19 14:54:59 +01:00
radishzzz
120ebbbb3f style: update animation duration and delay, fix transition issues on mobile 2025-05-19 12:05:34 +01:00
radishzzz
7a7253124d chore: enable photoswipe component 2025-05-19 03:17:26 +01:00
radishzzz
beb3386edc perf: optimize dom selectors for better performance 2025-05-19 03:12:55 +01:00
radishzzz
653596fc3d style: optimize gsap animations, add preload for stix-Italic 2025-05-19 01:48:28 +01:00
radishzzz
ef192c4545 chore: update theme guides and project comments, add astro-compress to remove comments 2025-05-19 00:25:26 +01:00
radishzzz
94f9998f45 chore: reorganize css files 2025-05-18 16:29:45 +01:00
radishzzz
db4aa56987 refactor: replace css fade animations with gsap, optimize post page animations and mobile responsiveness 2025-05-18 16:03:17 +01:00
radishzzz
90c2099fec style: add fade animations to roc, back button, tags and waline comment, refactor katex import method 2025-05-17 22:33:14 +01:00
radishzzz
a35999629a feat: add fade up animation to post page, optimize global animation curves and durations, refine animation-related naming conventions 2025-05-17 20:18:41 +01:00
radishzzz
3ee10e2d18 fix: reorder footer content to fix insufficient spacing between links, adjust desktop layout to prevent narrowing caused by native scrollbar 2025-05-17 12:00:13 +01:00
radishzzz
55923f9fcc chore: add rehypeUnwrapImg plugin for image processing optimization, update katex resource path 2025-05-16 04:32:59 +01:00
radishzzz
43295bc7b9 🚀 perf: use native scrollbar instead of overlayscrollbars, switch waline to cdn import
- remove preload comment configuration
- remove preload meta tags in head
- update 404 page
2025-05-15 20:23:32 +01:00
radishzzz
d0e699d8cb style: optimize scrollbar styling, remove the auto-hide feature to fix page flickering issue 2025-05-15 17:27:17 +01:00
radishzzz
bd24e340e7 style: optimize scrollbar and heading styling 2025-05-15 06:04:36 +01:00
radishzzz
0e5905aaa3 test: remove scrollbar and photoswipe 2025-05-15 02:16:55 +01:00
radishzzz
168e231119 feat: add auto-hide native scrollbar and optimize scrollbar styling 2025-05-14 19:01:54 +01:00
radishzzz
41fca8569e perf: remove overlayscrollbars to fix page loading lag, update heading margins 2025-05-14 15:25:27 +01:00
radishzzz
610c86db0d style: add highlight hover animation to navigation and footer
- add dynamic accessible labels to heading anchors
- update theme toggle button svg
2025-05-13 23:33:09 +01:00
radishzzz
5d2989d66d chore: remove async css loading for katex 2025-05-08 18:27:05 +01:00
radishzzz
979f36a796 perf: optimize katex config, implement async css loading for katex, improve scrollbar and lightbox loading logic 2025-05-08 18:13:15 +01:00
radishzzz
5b9c2d562a refactor: replace icons with svg components, relocate icons and images, rename directories 2025-05-08 15:10:21 +01:00
radishzzz
d3d6561f4d perf: optimize loading timing for github cards and lightbox, clean up redundant head tags, and improve css organization 2025-05-08 01:24:03 +01:00
radishzzz
67e1f6cf8e chore: update heti style, remove infrequently used unocss rules, streamline meta tags 2025-05-04 03:23:23 +01:00
radishzzz
a4d56865e4 fix: add github card script 2025-05-02 18:08:46 +01:00
radishzzz
2ddae5631e feat: add github repository card extension feature
- remove astro-compress to improve build speed
- add target and rel attributes to footer links
- rename unocss opacity utility from 'opacity' to 'op'
- update PostList component's page logic from 'isTag' to 'isHome'
- create extend.css file for markdown extended features
- reorganize and sort styles in heti.css
- fix inline code wrapping issue
2025-05-02 18:06:59 +01:00
radishzzz
dfc30d7f85 feat: add image lightbox functionality
- Add imageConfig in astro.config.ts to optimize remote image processing in Markdown files
- Update PhotoSwipe component initialization logic to ensure proper setup on page load
2025-04-15 05:33:06 +01:00
radishzzz
05b902bc61 fix: style and type issues with feature enhancements
- Fix presetTheme type assertion issue
- Fix content height dvh problem on large screens
- Fix tables and KaTex math formulas overflowing containers on mobile
- Update 404 page
- Update README documentation
- Increase link underline offset
- Add line number display to code blocks
- Improve scrollbar styles for TOC and code blocks
2025-04-09 18:46:27 +01:00
radishzzz
b492e5c262 chore: optimize styles and update dependencies
- Fix random sorting issue in RSS articles
- Optimize RSS style file
- Improve scrollbar styles
- Upgrade project dependencies
2025-04-07 03:23:34 +01:00
radishzzz
2dd5410300 Merge branch 'fix-theme-logic' 2025-04-06 03:17:06 +01:00
radishzzz
21ae80e27d chore: add auto option for theme colors 2025-04-06 03:10:28 +01:00
radishzzz
712f49fe20 chore: refine styling and update birth-of-retypeset article
- Remove view transitions for pin icon and desktop article timestamp
- Adjust scrollbar thickness
- Optimize apiflashKey path reference
- Reduce underline offset distance
2025-04-06 02:53:50 +01:00
kakomonn
88a3a9f46b Optimize the logic for switching between light and dark modes 2025-04-05 17:35:28 +08:00
radishzzz
d4579396a6 chore: switch KaTeX loading from cdn to local 2025-04-01 05:21:03 +01:00
radishzzz
c6d584a786 fix: switch KaTeX loading from local to cdn 2025-04-01 03:18:42 +01:00
radishzzz
ee25e17f69 feat: add KaTeX support and update theme configuration
- Update @astrojs/mdx and astro dependencies
- Enable KaTeX in theme config for mathematical formula rendering
- Update scrollbar component to hide overflow content
- Add KaTeX mathematical demonstration document
- Update multilingual theme guides to include KaTeX configuration
2025-04-01 02:13:23 +01:00
radishzzz
c0e41b3b57 chore: remove smooth effect except post pages, update theme guide 2025-03-28 02:09:26 +00:00
radishzzz
743d17639d feat: add overlay scrollbar for body and code block 2025-03-27 05:00:22 +00:00
radishzzz
d2ebe60778 fix: back button error and view transition on ios, move scripts from layout to components 2025-03-22 05:24:10 +00:00
radishzzz
783fb958d5 feat: adjust layout spacing and add comment toggle configuration 2025-03-22 04:30:25 +00:00
radishzzz
51ae238192 🚀 refactor: redesign the layout, reduce page size, and significantly improve build speed 2025-03-22 03:45:15 +00:00
radishzzz
0f63770b69 fix: position offset of the theme toggle button 2025-03-20 12:53:01 +00:00
radishzzz
850d9c2403 fix: favicon and rss url error 2025-03-20 11:59:17 +00:00
radishzzz
830c330b3a chore: delete unused dependencies 2025-03-19 22:03:26 +00:00