feat: responsive system, engineering infra, new components, performance

- Section: responsive prop with media query injection
- visual-weights: fontSize clamp() for responsive sizing
- variables.css: add border-radius/shadow/transition/z-index tokens
- ESLint flat config + Prettier + Changeset init
- New components: Footer, NewsSidebar, BreakingNewsBanner
- Image/Figure: loading=lazy, aspectRatio, sizes props
This commit is contained in:
sunzhongyi
2026-05-21 10:04:35 +08:00
parent 184353cfb0
commit 5f65d741ed
54 changed files with 2759 additions and 101 deletions
+5 -5
View File
@@ -13,16 +13,16 @@
"dependencies": {
"@mdx-js/loader": "^3.1.1",
"@mdx-js/react": "^3.1.1",
"@newspaperui/components": "workspace:*",
"@newspaperui/theme": "workspace:*",
"@newspaperui/utils": "workspace:*",
"@next/mdx": "^16.2.6",
"@types/mdx": "^2.0.13",
"next": "^15.1.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rehype-pretty-code": "^0.14.3",
"shiki": "^4.1.0"
"shiki": "^4.1.0",
"newspaperui-components": "workspace:*",
"newspaperui-theme": "workspace:*",
"newspaperui-utils": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.10.5",
@@ -33,4 +33,4 @@
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2"
}
}
}