-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
185 lines (172 loc) Β· 10.3 KB
/
Copy pathindex.html
File metadata and controls
185 lines (172 loc) Β· 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CryptoVault API</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #0a0a0f; color: #fff; }
/* Navbar */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 60px; border-bottom: 1px solid #1a1a2e; position: sticky; top: 0; background: #0a0a0f; z-index: 100; }
.logo { font-size: 1.3rem; font-weight: 700; color: #00ff88; }
.nav-links a { color: #aaa; text-decoration: none; margin-left: 30px; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.btn-nav { background: #00ff88; color: #0a0a0f; padding: 8px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; margin-left: 20px; }
/* Hero */
.hero { text-align: center; padding: 100px 20px 80px; background: radial-gradient(ellipse at top, #0d2818 0%, #0a0a0f 60%); }
.badge-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.badge { background: #1a2a1a; border: 1px solid #00ff8844; color: #00ff88; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #00ff88; }
.hero p { color: #aaa; font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.btn-group { display: flex; justify-content: center; gap: 15px; }
.btn-primary { background: #00ff88; color: #0a0a0f; padding: 14px 32px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1rem; }
.btn-secondary { border: 1px solid #444; color: #fff; padding: 14px 32px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-secondary:hover { border-color: #00ff88; color: #00ff88; }
/* Features */
.features { padding: 80px 60px; }
.section-label { color: #7c3aed; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 15px; }
.section-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.feature-card { background: #111118; border: 1px solid #1e1e2e; border-radius: 12px; padding: 28px; transition: border-color 0.3s, transform 0.3s; }
.feature-card:hover { border-color: #00ff8844; transform: translateY(-4px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 15px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: #888; font-size: 0.85rem; line-height: 1.6; }
/* Endpoints */
.endpoints { padding: 80px 60px; background: #080810; }
.endpoints-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.endpoints-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.endpoints-text p { color: #888; line-height: 1.7; }
.endpoints-card { background: #0d0d1a; border: 1px solid #1e1e3e; border-radius: 12px; overflow: hidden; }
.card-header { background: #111120; padding: 12px 16px; display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.card-url { color: #666; font-size: 0.75rem; margin-left: 10px; align-self: center; }
.endpoint-list { padding: 16px; }
.endpoint-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #1a1a2e; }
.endpoint-item:last-child { border-bottom: none; }
.method { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; min-width: 55px; text-align: center; }
.post { background: #1a3a1a; color: #00ff88; }
.get { background: #1a1a3a; color: #60a5fa; }
.get-post { background: #2a1a3a; color: #a78bfa; }
.delete { background: #3a1a1a; color: #f87171; }
.endpoint-path { color: #e2e8f0; font-size: 0.82rem; font-family: monospace; }
/* Tech Stack */
.techstack { padding: 60px; text-align: center; }
.tech-badges { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 20px; }
.tech-badge { background: #111118; border: 1px solid #2a2a3a; color: #ccc; padding: 10px 24px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; }
/* Footer */
footer { text-align: center; padding: 30px; border-top: 1px solid #1a1a2e; color: #555; font-size: 0.85rem; }
footer a { color: #00ff88; text-decoration: none; }
</style>
</head>
<body>
<!-- Navbar -->
<nav>
<div class="logo">π CryptoVault API</div>
<div class="nav-links">
<a href="/docs">Docs</a>
<a href="https://github.com/rizalcodes/cryptovault-api" target="_blank">GitHub</a>
<a href="/docs" class="btn-nav">Get Started</a>
</div>
</nav>
<!-- Hero -->
<section class="hero">
<div class="badge-group">
<span class="badge">FastAPI</span>
<span class="badge">PostgreSQL</span>
<span class="badge">REST</span>
</div>
<h1>Track Your Crypto Portfolio<br><span>With Precision</span></h1>
<p>A powerful REST API for real-time crypto portfolio tracking. JWT Auth, live prices via CoinGecko, PnL analytics and more.</p>
<div class="btn-group">
<a href="/docs" class="btn-primary">View Docs β</a>
<a href="https://github.com/rizalcodes/cryptovault-api" target="_blank" class="btn-secondary">GitHub</a>
</div>
</section>
<!-- Features -->
<section class="features">
<p class="section-label">// Features</p>
<h2 class="section-title">Everything your portfolio needs</h2>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>JWT Authentication</h3>
<p>Secure register, login, and token refresh with bcrypt password hashing.</p>
</div>
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>Portfolio Management</h3>
<p>Create and manage multiple crypto portfolios per user account.</p>
</div>
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>Holdings Tracker</h3>
<p>Track your crypto assets with quantity and average buy price.</p>
</div>
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>Transaction History</h3>
<p>Log every buy and sell with auto-calculated total value.</p>
</div>
<div class="feature-card">
<div class="feature-icon">π°</div>
<h3>Live Prices</h3>
<p>Real-time prices powered by CoinGecko API β always up to date.</p>
</div>
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>PnL Analytics</h3>
<p>Track profit and loss across all holdings with live calculations.</p>
</div>
</div>
</section>
<!-- Endpoints -->
<section class="endpoints">
<div class="endpoints-inner">
<div class="endpoints-text">
<p class="section-label">// Endpoints</p>
<h2>A clean, predictable REST surface</h2>
<p>Auth, portfolios, holdings, transactions, live prices and analytics β every resource maps to an intuitive endpoint.</p>
</div>
<div class="endpoints-card">
<div class="card-header">
<div class="dot dot-red"></div>
<div class="dot dot-yellow"></div>
<div class="dot dot-green"></div>
<span class="card-url">api.cryptovault.dev</span>
</div>
<div class="endpoint-list">
<div class="endpoint-item"><span class="method post">POST</span><span class="endpoint-path">/auth/register</span></div>
<div class="endpoint-item"><span class="method post">POST</span><span class="endpoint-path">/auth/login</span></div>
<div class="endpoint-item"><span class="method get">GET</span><span class="endpoint-path">/auth/me</span></div>
<div class="endpoint-item"><span class="method get-post">GET/POST</span><span class="endpoint-path">/portfolios</span></div>
<div class="endpoint-item"><span class="method get-post">GET/POST</span><span class="endpoint-path">/portfolios/{id}/holdings</span></div>
<div class="endpoint-item"><span class="method get-post">GET/POST</span><span class="endpoint-path">/transactions</span></div>
<div class="endpoint-item"><span class="method get">GET</span><span class="endpoint-path">/prices/{coin_id}</span></div>
<div class="endpoint-item"><span class="method get">GET</span><span class="endpoint-path">/analytics/{portfolio_id}</span></div>
</div>
</div>
</div>
</section>
<!-- Tech Stack -->
<section class="techstack">
<p class="section-label">// Built With</p>
<div class="tech-badges">
<span class="tech-badge">FastAPI</span>
<span class="tech-badge">PostgreSQL</span>
<span class="tech-badge">SQLAlchemy</span>
<span class="tech-badge">JWT</span>
<span class="tech-badge">CoinGecko</span>
</div>
</section>
<!-- Footer -->
<footer>
<p>Built by <a href="https://github.com/rizalcodes" target="_blank">RIZAL</a> Β· <a href="https://github.com/rizalcodes/cryptovault-api" target="_blank">github.com/rizalcodes/cryptovault-api</a></p>
</footer>
</body>
</html>