|
1 | 1 | import { Navigation } from "@/components/navigation" |
2 | | -import { CreateOracleForm } from "@/components/create-oracle-form" |
3 | | -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" |
4 | | -import { Badge } from "@/components/ui/badge" |
5 | | -import { Zap, Shield, Database, Clock } from "lucide-react" |
| 2 | +import CreateOracleIntegrated from "@/components/createOracle" |
6 | 3 |
|
7 | 4 | export default function CreatePage() { |
8 | 5 | return ( |
9 | | - <div className="min-h-screen bg-background"> |
| 6 | + <div className="min-h-screen bg-background font-[oblique] tracking-wide" style={{ fontStyle: 'oblique 12deg' }}> |
10 | 7 | <Navigation /> |
11 | | - |
12 | | - <div className="container mx-auto px-4 py-8"> |
13 | | - {/* Header */} |
| 8 | + <div className="container mx-auto px-4 py-8 mt-12"> |
14 | 9 | <div className="mb-8 text-center"> |
15 | | - <h1 className="text-4xl font-bold mb-4">Create Your Oracle</h1> |
16 | | - <p className="text-xl text-muted-foreground max-w-2xl mx-auto"> |
17 | | - Deploy a custom oracle to connect real-world data to blockchain applications |
| 10 | + <h1 className="text-4xl text-slate-200 mb-2 tracking-wide" style={{ fontStyle: 'oblique 15deg' }}>Create Oracle</h1> |
| 11 | + <p className="text-slate-200 text-xl max-w-3xl mx-auto"> |
| 12 | + Deploy the on‑chain Oracle contract by providing the exact constructor parameters. |
18 | 13 | </p> |
19 | 14 | </div> |
20 | | - |
21 | | - <div className="grid lg:grid-cols-4 gap-8"> |
22 | | - {/* Main Form */} |
23 | | - <div className="lg:col-span-3"> |
24 | | - <CreateOracleForm /> |
25 | | - </div> |
26 | | - |
27 | | - {/* Sidebar */} |
28 | | - <div className="space-y-6"> |
29 | | - {/* Benefits */} |
30 | | - <Card className="border-border bg-card"> |
31 | | - <CardHeader> |
32 | | - <CardTitle className="text-lg">Why Create an Oracle?</CardTitle> |
33 | | - </CardHeader> |
34 | | - <CardContent className="space-y-4"> |
35 | | - <div className="flex items-start gap-3"> |
36 | | - <div className="w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0"> |
37 | | - <Zap className="h-4 w-4 text-primary" /> |
38 | | - </div> |
39 | | - <div> |
40 | | - <h4 className="font-semibold text-sm">Monetize Data</h4> |
41 | | - <p className="text-xs text-muted-foreground">Earn fees from every data request</p> |
42 | | - </div> |
43 | | - </div> |
44 | | - |
45 | | - <div className="flex items-start gap-3"> |
46 | | - <div className="w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0"> |
47 | | - <Shield className="h-4 w-4 text-primary" /> |
48 | | - </div> |
49 | | - <div> |
50 | | - <h4 className="font-semibold text-sm">Secure & Reliable</h4> |
51 | | - <p className="text-xs text-muted-foreground">Built-in validation and redundancy</p> |
52 | | - </div> |
53 | | - </div> |
54 | | - |
55 | | - <div className="flex items-start gap-3"> |
56 | | - <div className="w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0"> |
57 | | - <Database className="h-4 w-4 text-primary" /> |
58 | | - </div> |
59 | | - <div> |
60 | | - <h4 className="font-semibold text-sm">Multi-Chain</h4> |
61 | | - <p className="text-xs text-muted-foreground">Deploy across multiple blockchains</p> |
62 | | - </div> |
63 | | - </div> |
64 | | - |
65 | | - <div className="flex items-start gap-3"> |
66 | | - <div className="w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0"> |
67 | | - <Clock className="h-4 w-4 text-primary" /> |
68 | | - </div> |
69 | | - <div> |
70 | | - <h4 className="font-semibold text-sm">Real-time Updates</h4> |
71 | | - <p className="text-xs text-muted-foreground">Configurable update frequencies</p> |
72 | | - </div> |
73 | | - </div> |
74 | | - </CardContent> |
75 | | - </Card> |
76 | | - |
77 | | - {/* Popular Categories */} |
78 | | - <Card className="border-border bg-card"> |
79 | | - <CardHeader> |
80 | | - <CardTitle className="text-lg">Popular Categories</CardTitle> |
81 | | - <CardDescription>Most requested oracle types</CardDescription> |
82 | | - </CardHeader> |
83 | | - <CardContent> |
84 | | - <div className="flex flex-wrap gap-2"> |
85 | | - <Badge variant="secondary" className="text-xs"> |
86 | | - Price Feeds |
87 | | - </Badge> |
88 | | - <Badge variant="secondary" className="text-xs"> |
89 | | - Weather |
90 | | - </Badge> |
91 | | - <Badge variant="secondary" className="text-xs"> |
92 | | - Sports |
93 | | - </Badge> |
94 | | - <Badge variant="secondary" className="text-xs"> |
95 | | - Randomness |
96 | | - </Badge> |
97 | | - <Badge variant="secondary" className="text-xs"> |
98 | | - IoT Sensors |
99 | | - </Badge> |
100 | | - <Badge variant="secondary" className="text-xs"> |
101 | | - Market Data |
102 | | - </Badge> |
103 | | - </div> |
104 | | - </CardContent> |
105 | | - </Card> |
106 | | - |
107 | | - {/* Deployment Info */} |
108 | | - <Card className="border-border bg-card"> |
109 | | - <CardHeader> |
110 | | - <CardTitle className="text-lg">Deployment Details</CardTitle> |
111 | | - </CardHeader> |
112 | | - <CardContent className="space-y-3 text-sm"> |
113 | | - <div className="flex justify-between"> |
114 | | - <span className="text-muted-foreground">Base Fee:</span> |
115 | | - <span className="font-semibold">0.05 ETH</span> |
116 | | - </div> |
117 | | - <div className="flex justify-between"> |
118 | | - <span className="text-muted-foreground">Gas Estimate:</span> |
119 | | - <span className="font-semibold">~$25</span> |
120 | | - </div> |
121 | | - <div className="flex justify-between"> |
122 | | - <span className="text-muted-foreground">Deploy Time:</span> |
123 | | - <span className="font-semibold">2-5 minutes</span> |
124 | | - </div> |
125 | | - <div className="flex justify-between"> |
126 | | - <span className="text-muted-foreground">Revenue Share:</span> |
127 | | - <span className="font-semibold">95% to you</span> |
128 | | - </div> |
129 | | - </CardContent> |
130 | | - </Card> |
131 | | - |
132 | | - {/* Support */} |
133 | | - <Card className="border-border bg-card"> |
134 | | - <CardHeader> |
135 | | - <CardTitle className="text-lg">Need Help?</CardTitle> |
136 | | - </CardHeader> |
137 | | - <CardContent className="text-sm space-y-2"> |
138 | | - <p className="text-muted-foreground">Check our documentation or join our Discord for support.</p> |
139 | | - <div className="flex flex-col gap-2"> |
140 | | - <a href="#" className="text-primary hover:underline"> |
141 | | - View Documentation |
142 | | - </a> |
143 | | - <a href="#" className="text-primary hover:underline"> |
144 | | - Join Discord |
145 | | - </a> |
146 | | - <a href="#" className="text-primary hover:underline"> |
147 | | - Example Oracles |
148 | | - </a> |
149 | | - </div> |
150 | | - </CardContent> |
151 | | - </Card> |
152 | | - </div> |
153 | | - </div> |
| 15 | + <CreateOracleIntegrated /> |
154 | 16 | </div> |
155 | 17 | </div> |
156 | 18 | ) |
|
0 commit comments