import { Document, Page, View, Text } from '@forme/react';
export default (
<Document title="My First Invoice">
<Page size="Letter" margin={54}>
<Text style={{ fontSize: 28, fontWeight: 700, color: '#1e293b' }}>Invoice</Text>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', marginTop: 24 }}>
<View>
<Text style={{ fontSize: 10, color: '#64748b' }}>Bill To</Text>
<Text style={{ fontSize: 12, fontWeight: 700, marginTop: 4 }}>Jane Smith</Text>
<Text style={{ fontSize: 10, color: '#475569' }}>Acme Corp</Text>
</View>
<View style={{ alignItems: 'flex-end' }}>
<Text style={{ fontSize: 10, color: '#64748b' }}>Invoice #001</Text>
<Text style={{ fontSize: 10, color: '#64748b', marginTop: 4 }}>Due: March 1, 2026</Text>
</View>
</View>
<View style={{ marginTop: 32, padding: 12, backgroundColor: '#f8fafc', borderRadius: 4 }}>
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
<Text style={{ fontSize: 10 }}>Website Redesign</Text>
<Text style={{ fontSize: 10, fontWeight: 700 }}>$3,500.00</Text>
</View>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', marginTop: 8 }}>
<Text style={{ fontSize: 10 }}>Hosting (12 months)</Text>
<Text style={{ fontSize: 10, fontWeight: 700 }}>$600.00</Text>
</View>
</View>
<View style={{ flexDirection: 'row', justifyContent: 'flex-end', marginTop: 16 }}>
<View style={{ padding: 12, backgroundColor: '#1e293b', borderRadius: 4 }}>
<Text style={{ fontSize: 14, fontWeight: 700, color: '#ffffff' }}>Total: $4,100.00</Text>
</View>
</View>
</Page>
</Document>
);