Commit Graph

58 Commits

Author SHA1 Message Date
Cotes Chung 505e314a31
perf: refactor using semantic HTML (#1207)
Fixes #1196
2023-09-08 22:48:37 +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 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 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 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
Naufal Shidqi 0dcd39d491
fix: add missing color to linkedin icon for share list (#683) 2022-09-07 23:28:05 +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
Cotes Chung df81012e28 Always close the top bar when smooth scrolling 2021-12-10 00:28:50 +08:00
Cotes Chung cf6c8e9b3a Improve accessibility of panel heading elements 2021-12-07 23:09:00 +08:00
Cotes Chung cf8dae9454 Merge branch 'feature/improve-meta-display'
# Conflicts:
#	_sass/addon/commons.scss
2021-12-05 17:46:14 +08:00
Cotes Chung e2003f2b03 Add a link to the author of the post 2021-12-05 04:42:53 +08:00
Cotes Chung 563e8085e8 Redesign the post meta layout
- posted date
- updated date
- read time
- license statement of post bottom
- also refactor the `timeago.js`
2021-12-05 04:42:53 +08:00
Cotes Chung 3c91dc1f6f Move the preview image of the post to the top 2021-12-03 16:36:40 +08:00
Cotes Chung 1c758cf4a2 Update related styles 2021-12-02 05:54:43 +08:00
Cotes Chung b5c26fed08 Fix SCSS code style 2021-10-26 04:29:16 +08:00
Cotes Chung 77c2009658 Improve the layout of toc entries 2021-09-29 22:17:22 +08:00
Cotes Chung 063b2a6651 Prevent Disqus from jumping when page loading 2021-09-29 03:24:41 +08:00
Cotes Chung 9e9278ce30 Fix code style of SCSS files 2021-09-24 15:35:44 +08:00
Cotes Chung fa0155de6f Lighten the light mode color scheme 2021-09-23 20:39:16 +08:00
Cotes Chung e5bf234835 Fix cursor for some buttons & links (fix #411) 2021-09-17 16:58:32 +08:00
Cotes Chung 1b16b152df Optimize icon position 2021-09-16 17:56:12 +08:00
Cotes Chung 7dc7a7efc8 Add code block header 2021-09-11 00:30:21 +08:00
Cotes Chung 0b29c0321f Add layout localization 2021-07-21 23:50:16 +08:00
Cotes Chung 2e76300d04 Revert "Delete useless SCSS snippets"
This reverts commit ab8cef9174.
2021-07-21 01:00:05 +08:00
Cotes Chung ab8cef9174 Delete useless SCSS snippets 2021-07-19 17:53:44 +08:00
Cotes Chung 991f53f8b2 Unify the text color in the panel 2021-04-06 02:32:53 +08:00
Cotes Chung eae506113b Fix the corners of the page navigation buttons of the latest/oldest post 2021-03-04 15:02:06 +08:00