-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
275 lines (239 loc) · 8.6 KB
/
index.html
File metadata and controls
275 lines (239 loc) · 8.6 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>API2Cart TypeScript Angular SDK — Integration Overview</title>
<!-- Example Google Font (Open Sans) -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet" />
<!-- Inline styles mimicking API2Cart-like design -->
<style>
/* Base reset / setup */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Open Sans', Arial, sans-serif;
}
body {
color: #333;
background-color: #fff;
line-height: 1.6;
}
a {
text-decoration: none;
color: #2abd68; /* Primary accent color (green) */
}
/* Header (Navigation Bar) */
header {
width: 100%;
background: #fff;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
}
/* Logo or Title */
.logo {
font-size: 1.25rem;
font-weight: 600;
color: #2abd68;
}
.nav-links ul {
display: flex;
gap: 1.5rem;
list-style: none;
}
.nav-links a {
color: #333;
font-weight: 600;
transition: color 0.2s ease;
}
.nav-links a:hover {
color: #2abd68;
}
/* Hero / Intro Section */
.hero {
text-align: center;
padding: 3rem 2rem 2rem;
background: #fafafa;
border-bottom: 1px solid #eee;
}
.hero h1 {
font-size: 2rem;
margin-bottom: 1rem;
color: #333;
}
.hero p {
font-size: 1.1rem;
max-width: 600px;
margin: 0 auto 1.5rem;
color: #555;
}
/* CTA Button (shared style) */
.cta-btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 4px;
background: #2abd68;
color: #fff;
font-weight: 600;
transition: background 0.3s ease;
margin: 0.5rem 0.25rem; /* small spacing if we have multiple buttons */
}
.cta-btn:hover {
background: #279a58;
}
/* Main content area */
main {
padding: 2rem 1rem;
max-width: 1200px;
margin: 0 auto;
}
/* Sections */
section {
margin-bottom: 3rem;
}
section h2 {
font-size: 1.5rem;
color: #333;
margin-bottom: 1rem;
}
section p {
margin-bottom: 1rem;
color: #555;
}
.benefits-list {
list-style: disc;
padding-left: 1.5rem;
}
.benefits-list li {
margin-bottom: 0.5rem;
}
pre {
background: #f5f5f5;
padding: 1rem;
overflow: auto;
border-radius: 4px;
margin-bottom: 1.5rem;
}
/* Footer */
footer {
background: #f9f9f9;
border-top: 1px solid #eee;
text-align: center;
padding: 1rem;
}
footer p {
color: #777;
}
/* Media queries for responsiveness */
@media (min-width: 768px) {
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1.125rem;
}
}
</style>
</head>
<body>
<!-- HEADER -->
<header>
<div class="logo">API2Cart TypeScript Angular SDK</div>
<nav class="nav-links">
<ul>
<li><a href="#description">Overview</a></li>
<li><a href="#benefits">Benefits</a></li>
<li><a href="#quickstart">Quick Start</a></li>
<li><a href="#docs">Documentation</a></li>
</ul>
</nav>
</header>
<!-- HERO SECTION -->
<section class="hero">
<h1>API2Cart TypeScript Angular SDK for eCommerce Integration</h1>
<p>
Seamlessly integrate Angular applications with multiple eCommerce platforms using the API2Cart unified API in TypeScript.
</p>
<a href="https://api2cart.com/book-a-demo/?utm_source=github&utm_medium=referral&utm_campaign=typescript-angular-sdk"
class="cta-btn"
target="_blank"
rel="noopener noreferrer">
Book a Demo
</a>
</section>
<!-- MAIN CONTENT -->
<main>
<!-- Section 1: Description -->
<section id="description">
<h2>Overview</h2>
<p>
The <strong>API2Cart TypeScript Angular SDK</strong> allows developers to integrate Angular applications with multiple
eCommerce platforms like Shopify, WooCommerce, Magento, PrestaShop, BigCommerce, and more. This SDK provides a unified
API that simplifies managing products, orders, customers, and other eCommerce data across different platforms.
</p>
<p>
TypeScript and Angular provide a robust environment for building dynamic, scalable web applications. With the API2Cart SDK,
you can leverage Angular's power to manage eCommerce stores and perform tasks like product synchronization and order retrieval.
</p>
</section>
<!-- Section 2: Benefits -->
<section style="background: #fafafa; padding: 2rem;" id="benefits">
<h2>Key Benefits</h2>
<ul class="benefits-list">
<li><strong>Unified API Access:</strong> Access multiple eCommerce platforms via a single API endpoint.</li>
<li><strong>Angular Framework:</strong> Utilize Angular's features to build scalable and dynamic eCommerce integrations.</li>
<li><strong>Seamless Integration:</strong> Easily integrate eCommerce functionality into your Angular applications.</li>
<li><strong>Efficient Data Management:</strong> Retrieve and manage products, orders, and customers with ease.</li>
</ul>
</section>
<!-- Section 3: Quick Start (Code Example) -->
<section id="quickstart">
<h2>Quick Start</h2>
<p>
Below is a simple TypeScript Angular example that demonstrates how to make a GET request to the API2Cart status endpoint.
Replace the placeholder values with your actual API key.
</p>
<pre><code>import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class Api2CartService {
private apiKey: string = 'YOUR_API2CART_KEY';
private apiUrl: string = 'https://api.api2cart.com/v1.0/status';
constructor(private http: HttpClient) {}
getStatus(): Observable<any> {
return this.http.get(`${this.apiUrl}?api_key=${this.apiKey}`);
}
}</code></pre>
<p>
This Angular service uses **`HttpClient`** to make a GET request to the **API2Cart status endpoint** and retrieve the response.
You can modify this service to interact with other API2Cart endpoints for retrieving orders, products, or customer data.
</p>
</section>
<!-- Section 4: Documentation -->
<section id="docs">
<h2>Documentation</h2>
<p>
For more details on how to integrate the API2Cart TypeScript Angular SDK, check the full
<a href="https://api2cart.com/docs/?utm_source=github&utm_medium=referral&utm_campaign=typescript-angular-sdk"
target="_blank" rel="noopener noreferrer">API2Cart Documentation</a>.
</p>
<p>
You can also visit our <a href="https://github.com/api2cart" target="_blank" rel="noopener noreferrer">GitHub repository</a>
for more code examples and SDK updates.
</p>
</section>
</main>
<!-- FOOTER -->
<footer>
<p>© 2025 API2Cart. All rights reserved.</p>
</footer>
</body>
</html>