feat(website): simplify heading api
This commit is contained in:
@@ -21,7 +21,7 @@ export default function LimitationsPage() {
|
||||
|
||||
<div className="prose prose-lg dark:prose-invert max-w-none">
|
||||
{/* PageAgent.js vs PageAgentExt */}
|
||||
<Heading id="pageagent-js-vs-pageagentext" level={2} className="text-2xl font-bold mb-3">
|
||||
<Heading id="pageagent-js-vs-pageagentext" className="text-2xl font-bold mb-3">
|
||||
{isZh ? 'PageAgent.js vs PageAgentExt' : 'PageAgent.js vs PageAgentExt'}
|
||||
</Heading>
|
||||
<p className="text-gray-600 dark:text-gray-300 mb-4">
|
||||
@@ -83,7 +83,7 @@ export default function LimitationsPage() {
|
||||
</div>
|
||||
|
||||
{/* Interaction Limitations */}
|
||||
<Heading id="interaction-capabilities" level={2} className="text-2xl font-bold mb-3">
|
||||
<Heading id="interaction-capabilities" className="text-2xl font-bold mb-3">
|
||||
{isZh ? '交互能力' : 'Interaction Capabilities'}
|
||||
</Heading>
|
||||
<div className="bg-gray-50 dark:bg-gray-800 rounded-lg p-6 mb-6">
|
||||
@@ -128,7 +128,7 @@ export default function LimitationsPage() {
|
||||
</div>
|
||||
|
||||
{/* Understanding Limitations */}
|
||||
<Heading id="understanding" level={2} className="text-2xl font-bold mb-3">
|
||||
<Heading id="understanding" className="text-2xl font-bold mb-3">
|
||||
{isZh ? '理解能力' : 'Understanding'}
|
||||
</Heading>
|
||||
<div className="bg-amber-50 dark:bg-amber-900/20 border-l-4 border-amber-400 p-4 mb-6">
|
||||
@@ -145,7 +145,7 @@ export default function LimitationsPage() {
|
||||
</div>
|
||||
|
||||
{/* Website Quality */}
|
||||
<Heading id="page-quality-matters" level={2} className="text-2xl font-bold mb-3">
|
||||
<Heading id="page-quality-matters" className="text-2xl font-bold mb-3">
|
||||
{isZh ? '网页质量影响' : 'Page Quality Matters'}
|
||||
</Heading>
|
||||
<div className="bg-gray-50 dark:bg-gray-800 rounded-lg p-6">
|
||||
|
||||
@@ -49,7 +49,7 @@ export default function Overview() {
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<Heading id="what-is-page-agent" level={2} className="text-2xl font-bold mb-4">
|
||||
<Heading id="what-is-page-agent" className="text-2xl font-bold mb-4">
|
||||
{isZh ? '什么是 page-agent?' : 'What is page-agent?'}
|
||||
</Heading>
|
||||
|
||||
@@ -61,7 +61,7 @@ export default function Overview() {
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<Heading id="core-features" level={2} className="text-2xl font-bold mb-3">
|
||||
<Heading id="core-features" className="text-2xl font-bold mb-3">
|
||||
{isZh ? '核心特性' : 'Core Features'}
|
||||
</Heading>
|
||||
|
||||
@@ -111,7 +111,7 @@ export default function Overview() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Heading id="vs-browser-use" level={2} className="text-2xl font-bold mb-4">
|
||||
<Heading id="vs-browser-use" className="text-2xl font-bold mb-4">
|
||||
{isZh ? '与 browser-use 的区别' : 'vs. browser-use'}
|
||||
</Heading>
|
||||
|
||||
@@ -177,7 +177,7 @@ export default function Overview() {
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<Heading id="use-cases" level={2} className="text-2xl font-bold mb-4">
|
||||
<Heading id="use-cases" className="text-2xl font-bold mb-4">
|
||||
{isZh ? '应用场景' : 'Use Cases'}
|
||||
</Heading>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function QuickStart() {
|
||||
{isZh ? '几分钟内完成 page-agent 的集成。' : 'Integrate page-agent in minutes.'}
|
||||
</p>
|
||||
|
||||
<Heading id="installation-steps" level={2} className="text-2xl font-bold mb-3">
|
||||
<Heading id="installation-steps" className="text-2xl font-bold mb-3">
|
||||
{isZh ? '安装步骤' : 'Installation Steps'}
|
||||
</Heading>
|
||||
|
||||
|
||||
@@ -373,7 +373,6 @@ export default function TroubleshootingPage() {
|
||||
<section key={section.id} className="scroll-mt-24">
|
||||
<Heading
|
||||
id={section.id}
|
||||
level={2}
|
||||
className="text-2xl font-bold mb-4 text-gray-900 dark:text-white"
|
||||
>
|
||||
{isZh ? section.title.zh : section.title.en}
|
||||
|
||||
Reference in New Issue
Block a user