Commit Graph

80 Commits

Author SHA1 Message Date
Cotes Chung 06f1c6f256
refactor: align the position of the share buttons 2023-11-08 01:16:00 +08:00
Natalie Somersall 2bf87e0de7
feat: add Mastodon sharing link (#1344)
Adds a "share to Mastodon" button as a link sharing option using @justinribeiro's share-to-mastodon package

Discussion of proposed change - #1324

---------

Co-authored-by: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
2023-10-30 02:02:58 +08:00
Cotes Chung 50835b4c71
refactor: optimize meta font size 2023-10-08 04:40:16 +08:00
Cotes Chung 2574118f40
perf(ui): standardize metadata text styles (#1295) 2023-10-04 14:29:44 -05:00
Cotes Chung bf3a34d054
perf(core): replace `lazysizes` with browser-level lazy loading (#1267) 2023-09-27 04:44:32 +08:00
Cotes Chung 13a3c3c906
perf(layout): improve margins for tail block (#1243)
Keeps the margin of the elements in the tail area consistent regardless of the number of siblings, or if a <script> is inserted.
2023-09-18 03:26:02 +08:00
Cotes Chung aff7566774
feat(ui): update the twitter icon (#1221) 2023-09-10 20:23:34 +08:00
Cotes Chung 75a2504fd9
chore(colors): adapt to Bootstrap 5.3 2023-09-10 00:31:50 +08:00
Cotes Chung 505e314a31
perf: refactor using semantic HTML (#1207)
Fixes #1196
2023-09-08 22:48:37 +08:00
Cotes Chung 41b8f9f519
feat(layout): center the footer 2023-09-07 01:58:03 +08:00
Cotes Chung 62bcd601fc
feat(ui): redesign the pagination button on home page 2023-09-06 00:13:10 +08:00
Cotes Chung 229c2a2e2b
feat(posts): render heading 4 in TOC (#1023) 2023-09-03 20:20:14 +08:00
Cotes Chung 37c976499e
perf(ui): improve web accessibility (#447)
- Make color and contrast meets WCAG 2 AA and above
- Fixes `aria-label` on button "copy link" in posts
2023-08-02 21:08:56 +08:00
Cotes Chung e07e6d46d7
refactor: revert media query range notation (#1072)
Media queries range syntax not supported by Safari for iOS under 16.4

See also:
- https://caniuse.com/?search=media-queries

This reverts commit 1682ce9d7c.
2023-07-02 20:16:36 +08:00
Cotes Chung 1682ce9d7c
style(scss): fix style-lint `media-feature-range-notation` issue (#1072)
See also: https://stylelint.io/user-guide/rules/media-feature-range-notation/
2023-06-04 12:29:33 +08:00
Cotes Chung ce2f6f5abe
perf(ui): avoid blank space at the bottom of the homepage preview image
When the title of the post has a line break, there will be a blank space at the bottom of the preview image.
2023-06-04 09:36:32 +08:00
Cotes Chung eb40f51c84
fix(layout): restore the margin bottom of the main area (#1047) 2023-05-18 11:09:32 +08:00
Cotes Chung d81f836b06
refactor: simplify basic layout (#1039)
A dynamically expanding/collapsing topbar is difficult to maintain and not very useful.
2023-05-17 01:59:34 +08:00
Cotes Chung 52f5ee9cd3
perf: calculate heading font size dynamically (#983) 2023-05-13 11:35:55 +08:00
Cotes Chung d9e1d84f08
refactor(deps): upgrade bootstrap from v4.6 to v5.2
- update class name of the spacing, font style, cards and toasts
- update attribute names &  tooltip usage
- remove custom smooth scroll
- syntax colors
2023-05-13 02:05:33 +08:00
Cotes Chung 83f1c34f92
feat(ui): improve the design for top bar 2023-05-13 02:05:33 +08:00
Cotes Chung 2a4d67d65c
refactor: uniform block border radius
scope:
- categories
- posts (prompt, code snippets)
2023-05-13 02:05:32 +08:00
Cotes Chung 7626e4d005
perf(ui): improve hover effect for post preview cards
- home cards
- navigator buttons at the bottom post
2023-05-13 02:05:31 +08:00
Cotes Chung 34499f0c92
perf(ui): improve hover effect of trending tags 2023-05-13 02:05:31 +08:00
Cotes Chung 2918da9f29
perf(ui): improve related posts design 2023-05-13 02:05:31 +08:00
Cotes Chung 97b8dfeed6
feat(ui): show preview image in home page 2023-05-13 02:05:30 +08:00
Cotes Chung b85f6330de
feat(ux): turn home page posts into clickable cards (#895)
Resolves #895
2023-03-18 01:49:34 +08:00
Cotes Chung 3c7934abf0
style: improve code style of SCSS & YAML 2023-03-16 03:36:52 +08:00
Cotes Chung 02b7bd5095
feat: change TOC plugin to `tocbot` (#774) 2023-03-16 03:00:29 +08:00
Cotes Chung b1453ccb0c
chore: delete useless code 2023-02-18 10:43:16 +08:00
Cotes Chung e01eb8af14
refactor: unify the border radius of blocks
scope: code blocks, prompts, images, and videos
2022-12-25 00:00:08 +08:00
Cotes Chung 4b6ccbcbcc
feat: set preview image ratio to 1.91 : 1 2022-12-25 00:00:07 +08:00
Cotes Chung ab16fdc7fc
feat: add shimmer background when image loads 2022-12-24 23:51:47 +08:00
Cotes Chung bffaf6374f
feat: support LQIP for images 2022-12-15 02:27:12 +08:00
Cotes Chung ca41c7ebff
chore(deps): use `lazysizes` to load images 2022-12-09 07:36:06 +08:00
Cotes Chung e7dee2a589
refactor: update vendor prefix in SCSS
{
  "browsers": [
    "last 2 versions",
    "> 0.2%",
    "not dead"
  ]
}
2022-10-22 03:26:22 +08:00
Cotes Chung a6ce765082
style: improve SCSS style 2022-10-22 03:26:22 +08:00
Cotes Chung eac3f9b434
perf(typography): optimize the line height of post content 2022-10-09 20:10:03 +08:00
Cotes Chung 3ffd19d81d
refactor: rename color variable 2022-09-29 22:50:41 +08:00
Sorin b288587c1c
fix: correct spelling of `panel` (#686)
Co-authored-by: sorin-g <g.sorin94@gmail.com>
2022-09-13 04:13:15 +08:00
Naufal Shidqi 0dcd39d491
fix: add missing color to linkedin icon for share list (#683) 2022-09-07 23:28:05 +08:00
Cotes Chung d792a2f6af
chore: improve responsive design of archive entries 2022-08-08 20:56:38 +08:00
Cotes Chung 22d4275f75
refactor: optimize the layout of archive timeline 2022-08-03 19:13:01 +08:00
Cotes Chung 2bd6efa95a
feat: support showing description of preview image
Also moved the image position to the metadata area
2022-04-26 04:55:38 +08:00
Cotes Chung 6d35f5f8da
perf: avoid the layout shift for post datetime 2022-04-26 04:55:37 +08:00
Cotes Chung 55fd119d35 Fix hover color for links at the tail of posts 2022-01-28 23:48:46 +08:00
Cotes Chung 4360e2938c Avoid Disqus jitter 2021-12-31 20:49:00 +08:00
Cotes Chung ecf31ff308 Fix the code style of SASS 2021-12-31 00:33:04 +08:00
Cotes Chung d315bf57e7 Integrate utterances comments 2021-12-13 04:40:05 +08:00
Cotes Chung 09e8eb4274 Make the preview image full screen width on mobile 2021-12-10 21:54:24 +08:00