forge/examples/index.tsx
2025-12-26 19:11:01 -08:00

78 lines
2.1 KiB
XML

export const IndexPage = () => (
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Forge Examples</title>
<style dangerouslySetInnerHTML={{
__html: `
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 40px 20px;
background: #f9fafb;
}
.container {
max-width: 800px;
margin: 0 auto;
}
h1 {
color: #111827;
margin-bottom: 16px;
}
p {
color: #6b7280;
font-size: 18px;
margin-bottom: 48px;
}
.examples-grid {
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.example-card {
background: white;
padding: 24px;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
text-decoration: none;
transition: all 0.2s ease;
display: block;
}
.example-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.example-card h2 {
color: #111827;
margin: 0 0 8px 0;
font-size: 20px;
}
.example-card p {
color: #6b7280;
margin: 0;
font-size: 14px;
}
`}} />
</head>
<body>
<div class="container">
<h1>Forge Examples</h1>
<p>Explore component examples built with Forge</p>
<div class="examples-grid">
<a href="/profile" class="example-card">
<h2>Profile Card</h2>
<p>User profile component with variants for size, theme, and verified status</p>
</a>
<a href="/buttons" class="example-card">
<h2>Buttons</h2>
<p>Button component with intent, size, and disabled variants</p>
</a>
</div>
</div>
</body>
</html>
)