feat: implement hybrid landing page and developer api section

This commit is contained in:
dyzulk
2026-01-08 20:35:47 +07:00
parent 3533d630d8
commit b376dd6620
9 changed files with 152 additions and 13 deletions

View File

@@ -1,6 +1,15 @@
{
"index": {
"title": "Home",
"type": "page",
"display": "hidden"
},
"guide": {
"title": "Documentation",
"title": "User Guide",
"type": "page"
},
"developer": {
"title": "Developer API",
"type": "page"
}
}

View File

@@ -0,0 +1,4 @@
{
"index": "Overview",
"endpoints": "Endpoints"
}

View File

@@ -0,0 +1,16 @@
# Endpoints
## Certificates
### List Certificates
`GET /certificates`
### Request Certificate
`POST /certificates`
```json
{
"csr": "-----BEGIN CERTIFICATE REQUEST-----...",
"validity_days": 365
}
```

18
pages/developer/index.mdx Normal file
View File

@@ -0,0 +1,18 @@
# Developer API
Welcome to the TrustLab API documentation.
You can use our REST API to automate certificate issuance, revocation, and retrieval for your internal services.
## Base URL
```http
https://trustlab.dyzulk.com/api/v1
```
## Authentication
All API requests must include your API Key in the `Authorization` header.
```bash
Authorization: Bearer <YOUR_API_KEY>
```

View File

@@ -21,7 +21,7 @@ The fastest way to log in. Click **Continue with Google** or **Continue with Git
<Callout type="info" emoji={<Info className="w-5 h-5" />}>
**SSO Behavior:**
* **Existing Users:** You can only Log In via SSO if your social email address is already registered/linked to your account.
* **Existing Users:** You can only Log In via SSO if your email address is already registered.
* **New Users:** You can **Register** a new account instantly by clicking the Social Login buttons on the *Sign In* or *Register* page.
</Callout>
@@ -63,7 +63,7 @@ New users can create an account to start managing certificates.
<Steps>
### Option A: Social Registration (Instant)
1. Click **Continue with Google** or **Continue with GitHub**.
2. **Set Password:** For security, you will be asked to create a password for your account.
2. **Set Password:** First, ensure you have [**Installed the Root CA**](/guide/getting-started/install-root-ca) on your device.count.
![Set Password Screen](/images/guide/set-password-after-social-screen.png)

3
pages/index.mdx Normal file
View File

@@ -0,0 +1,3 @@
import { LandingPage } from '../components/LandingPage'
<LandingPage />