diff --git a/components/LandingPage.tsx b/components/LandingPage.tsx new file mode 100644 index 0000000..2b3abf5 --- /dev/null +++ b/components/LandingPage.tsx @@ -0,0 +1,99 @@ +import { ArrowRight, Shield, Globe, Lock, Server, Zap, ChevronRight } from "lucide-react"; +import Link from 'next/link'; + +export function LandingPage() { + return ( +
+ {/* Hero Section */} +
+
+
+ +
+
+ + + + + v1.0 is Live +
+ +

+ Secure Your Private Network +

+ +

+ TrustLab is the definitive Private Certificate Authority (CA) for your internal infrastructure. Issue military-grade SSL/TLS certificates for Intranets, IoT, and Dev environments. +

+ +
+ + Get Started + + + Generate Certificate + +
+
+
+ + {/* Features Grid */} +
+ } + title="Private Root CA" + description="Your own sovereign Certificate Authority. Trusted by your devices, unreachable by the public internet." + link="/guide/concepts" + /> + } + title="Internal Domains" + description="Issue certificates for .local, .corp, and private IP addresses (192.168.x.x) that Public CAs reject." + link="/guide/certificates/request-new" + /> + } + title="S/MIME Encryption" + description="Secure internal email communication with employee-to-employee encryption." + link="/guide/integrations/smime" + /> + } + title="Infrastructure" + description="Seamless integration guides for Nginx, IIS, Apache, and containerized environments." + link="/guide/integrations/web-servers" + /> + } + title="Instant Issuance" + description="No validation delays. Certificates are issued instantly via our modern dashboard." + link="/guide/getting-started/access-dashboard" + /> + } + title="Start Now" + description="Follow the Setup Guide to install the Root CA and go green in minutes." + link="/guide/getting-started/install-root-ca" + isAction + /> +
+
+ ); +} + +function FeatureCard({ icon, title, description, link, isAction }: any) { + return ( + +
+ {icon} +
+

{title}

+

+ {description} +

+
+ Learn more +
+ + ) +} diff --git a/next.config.js b/next.config.js index 27ca1f9..f84b98c 100644 --- a/next.config.js +++ b/next.config.js @@ -8,13 +8,4 @@ module.exports = withNextra({ images: { unoptimized: true, }, - async redirects() { - return [ - { - source: '/', - destination: '/guide', - permanent: true, - }, - ] - }, }) diff --git a/pages/_meta.json b/pages/_meta.json index 5b22f03..b75a405 100644 --- a/pages/_meta.json +++ b/pages/_meta.json @@ -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" } } \ No newline at end of file diff --git a/pages/developer/_meta.json b/pages/developer/_meta.json new file mode 100644 index 0000000..b26aaa9 --- /dev/null +++ b/pages/developer/_meta.json @@ -0,0 +1,4 @@ +{ + "index": "Overview", + "endpoints": "Endpoints" +} \ No newline at end of file diff --git a/pages/developer/endpoints.mdx b/pages/developer/endpoints.mdx new file mode 100644 index 0000000..b5f61cd --- /dev/null +++ b/pages/developer/endpoints.mdx @@ -0,0 +1,16 @@ +# Endpoints + +## Certificates + +### List Certificates +`GET /certificates` + +### Request Certificate +`POST /certificates` + +```json +{ + "csr": "-----BEGIN CERTIFICATE REQUEST-----...", + "validity_days": 365 +} +``` diff --git a/pages/developer/index.mdx b/pages/developer/index.mdx new file mode 100644 index 0000000..f19c7d2 --- /dev/null +++ b/pages/developer/index.mdx @@ -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 +``` diff --git a/pages/guide/getting-started/access-dashboard.mdx b/pages/guide/getting-started/access-dashboard.mdx index f65bd8c..52e294b 100644 --- a/pages/guide/getting-started/access-dashboard.mdx +++ b/pages/guide/getting-started/access-dashboard.mdx @@ -21,7 +21,7 @@ The fastest way to log in. Click **Continue with Google** or **Continue with Git }> **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. @@ -63,7 +63,7 @@ New users can create an account to start managing certificates. ### 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) diff --git a/pages/index.mdx b/pages/index.mdx new file mode 100644 index 0000000..ce1d4b4 --- /dev/null +++ b/pages/index.mdx @@ -0,0 +1,3 @@ +import { LandingPage } from '../components/LandingPage' + + diff --git a/public/_redirects b/public/_redirects deleted file mode 100644 index 6f1a4f2..0000000 --- a/public/_redirects +++ /dev/null @@ -1 +0,0 @@ -/ /guide 301