Skip to content

Free domain registration and practical DNS learning resources for everyone.

Add set DNS documents and update code

Edward Hsingb863e8051e73
diff --git a/README.md b/README.md
index 8a0b8e9..ffc335c 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-## 🌐 Say Goodbye to Domain Fees
+## 🌐 Welcome to DigitalPlat Domain
+
+<img src="opensource/static/img/logo.jpg" alt="logo" style="zoom: 25%;" />
Welcome to **DigitalPlat FreeDomain**, where we believe everyone deserves a digital identity. Whether you're an individual, or an organization, we’re offering free domain names to bring your ideas to life – no strings attached!
@@ -27,13 +29,13 @@ Jump in and register your domain by visiting our site:
➡️ [DigitalPlat FreeDomain Dashboard](https://dash.domain.digitalplat.org/)
-📝 [Read our full tutorial (work in progress)](./documents/tutorial/getting-started/1-register-account.md)
+📝 [Read our tutorial](./documents/tutorial/index.md)
---
### 🌟 Trusted by Thousands
-With over 350,000 domains already registered, DigitalPlat FreeDomain is a trusted choice for individuals and organizations alike. Join our growing community and claim your own free domain today!
+With over 400,000 domains already registered, DigitalPlat FreeDomain is a trusted choice for individuals and organizations alike. Join our growing community and claim your own free domain today!
---
@@ -45,7 +47,7 @@ Check [FAQ Page](./documents/domains/faq.md)
### 🤝 Join Our Community!
-🆕 Join the official [DigitalPlat FreeDomain Telegram group](https://t.me/digitalplatdomain), [Discord server](https://discord.gg/ma4RZzMmVW) or [GitHub Discussion](https://github.com/DigitalPlatDev/FreeDomain/discussions) today! Be the first to know about the latest updates and happenings! Got questions? Facing challenges? Or simply want to show off your awesome builds? Don’t wait—become part of our community now! 🚀
+🆕 Join the official [DigitalPlat FreeDomain Telegram group](https://t.me/digitalplatdomain), [Discord server](https://discord.gg/ma4RZzMmVW) today! Be the first to know about the latest updates and happenings! Got questions? Facing challenges? Or simply want to show off your awesome builds? Don’t wait—become part of our community now! 🚀
---
@@ -60,4 +62,3 @@ We might introduce more domain options and free hosting in the future to help as
We take domain name abuse seriously and are committed to maintaining a safer and more open internet. Every report is carefully reviewed, and response times may vary from a few hours to several days, depending on the complexity of the case.
-Report Form: [Abuse Report Form](https://docs.google.com/forms/d/e/1FAIpQLSdCuhUBFynK4d2YZXptEhV4QHei9-FAk2WhKovrnZRx01lSIQ/viewform)
diff --git a/documents/tutorial/getting-started/1-register-account.md b/documents/tutorial/getting-started/1-register-account.md
deleted file mode 100644
index 3207e89..0000000
--- a/documents/tutorial/getting-started/1-register-account.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# Registering a DigitalPlat Domain Account
-
-This guide walks you through creating your account — the first step toward managing your free domains.
-
-## Step 1: Open the Registration Page
-
-Visit the following link in your browser:
-
-👉 [https://dash.domain.digitalplat.org/auth/register](https://dash.domain.digitalplat.org/auth/register)
-
-## Step 2: Fill in Your Account Information
-
-Complete the registration form with the following details:
-
-- **Username**: Choose a unique username. It will appear in your dashboard and WHOIS records. Use only alphanumeric characters if possible.
-- **Password**: Set a strong password (recommended: at least 12 characters, including uppercase, lowercase, numbers, and symbols).
-- **Email Address**: Provide a valid and frequently used email address. This will be used for password recovery, notifications, and WHOIS contact.
- ⚠️ Make sure you have access to this email at all times.
-
-## Step 3: Enter WHOIS Information
-
-As required by global domain registration standards, you’ll need to submit basic WHOIS data:
-
-- **Full Name / Organization**
-- **Address**
-- **Phone Number**
-
-> 🔒 This information will be shown publicly in WHOIS queries by default. After registration, you can enable WHOIS Privacy Protection to hide it.
-
-## Step 4: Review and Accept Policies
-
-Before submitting the form, please **read and agree to** the following:
-
-- [Terms of Service](https://domain.digitalplat.org/terms-of-service/)
-- [Privacy Policy](https://domain.digitalplat.org/privacy-policy)
-- [Acceptable Use Policy (AUP)](https://domain.digitalplat.org/acceptable-use-policy/)
-
-Click **Register** only if you fully understand and accept all policies.
-
-## Registration Complete ✅
-
-Once registered, you’ll be redirected to your dashboard. You're now ready to claim and manage your free domains!
diff --git a/documents/tutorial/getting-started/1.1-register-account.md b/documents/tutorial/getting-started/1.1-register-account.md
new file mode 100644
index 0000000..d3cbda1
--- /dev/null
+++ b/documents/tutorial/getting-started/1.1-register-account.md
@@ -0,0 +1,57 @@
+# Creating Your DigitalPlat Domain Account
+
+This is the first step. Once your account is ready, you’ll be able to claim and manage free domains from the dashboard.
+
+## Step 1: Open the Registration Page
+
+Open the registration page in your browser:
+
+👉 https://dash.domain.digitalplat.org/auth/register
+
+No login is required at this stage.
+
+## Step 2: Set Up Your Account
+
+Fill in the registration form with the following information.
+
+**Username**
+ Choose a unique username. This name will appear in your dashboard and in WHOIS records.
+ Stick to letters and numbers to avoid issues later.
+
+**Password**
+ Use a strong password.
+ At least 12 characters is recommended, including uppercase, lowercase, numbers, and symbols.
+
+**Email Address**
+ Use a real, frequently checked email address.
+ It’s required for password recovery, important notifications, and WHOIS contact.
+
+Make sure you keep access to this email. Changing it later requires verification.
+
+## Step 3: Provide WHOIS Information
+
+Domain registration requires basic WHOIS details. Please enter:
+
+- Full name or organization name
+- Address
+- Phone number
+
+By default, this information is publicly visible in WHOIS lookups.
+
+You can enable WHOIS Privacy Protection in the dashboard after registration to hide these details.
+
+## Step 4: Read and Accept the Policies
+
+Before submitting, make sure you’ve read and agreed to the following documents:
+
+- Terms of Service
+- Privacy Policy
+- Acceptable Use Policy
+
+Only click **Register** if you understand and agree to all of them.
+
+## Done 🎉
+
+After registration, you’ll be redirected to the dashboard.
+
+Your account is now ready, and you can start claiming and managing your free domains.
diff --git a/documents/tutorial/getting-started/1.2-dns-hosting.md b/documents/tutorial/getting-started/1.2-dns-hosting.md
new file mode 100644
index 0000000..d588dbf
--- /dev/null
+++ b/documents/tutorial/getting-started/1.2-dns-hosting.md
@@ -0,0 +1,110 @@
+# DNS Hosting
+
+After registering your DigitalPlat account, the next step is choosing a DNS hosting provider.
+
+DigitalPlat works with **any standard DNS provider**, but for beginners, we strongly recommend **Cloudflare**. It’s free, reliable, fast, and easy to use.
+
+This guide walks you through setting up DNS hosting with Cloudflare.
+
+## Why Cloudflare?
+
+Cloudflare is a popular DNS and security platform trusted by millions of websites worldwide.
+
+It’s a good choice because:
+
+- Free plan is enough for most users
+- Clean and beginner-friendly interface
+- Fast global DNS network
+- No hidden limits for basic DNS usage
+
+You can always switch to another provider later.
+
+## Step 1: Create a Cloudflare Account
+
+Go to Cloudflare and create an account:
+
+👉 https://dash.cloudflare.com/sign-up
+
+![cloudflare-account-register](imgs/cloudflare-account-register.png)
+
+Use a real email address. You’ll need it to manage your DNS later.
+
+## Step 2: Add Your Domain to Cloudflare
+
+After logging in, click **Add a site** and enter your domain name.
+
+Example:
+
+```
+example.dpdns.org
+```
+
+![cloudflare-add-domain](imgs/cloudflare-add-domain.png)
+
+Select the **Free** plan when asked.
+
+![cloudflare-choose-plan](imgs/cloudflare-choose-plan.png)
+
+Cloudflare will automatically scan existing DNS records.
+ If your domain is new, this list may be empty. That’s fine.
+
+Continue to the next step.
+
+## Step 3: Update Nameservers
+
+Cloudflare will assign two nameservers to your domain, for example:
+
+```
+alice.ns.cloudflare.com
+bob.ns.cloudflare.com
+```
+
+Go back to the **DigitalPlat dashboard**, open your domain settings, and replace the current nameservers with the Cloudflare ones.
+
+![cloudflare-setns](D:\Documents\GitHub\FreeDomain\documents\tutorial\getting-started\imgs\cloudflare-setns.png)
+
+![digitalplat-register-setns](imgs/digitalplat-register-setns.png)
+
+Save the changes.
+
+DNS propagation usually takes a few minutes, but in some cases it may take up to 24 hours.
+
+## Step 4: Verify DNS Is Active
+
+Once the nameservers are updated, Cloudflare will automatically detect the change.
+
+You’ll see your domain status become **Active** in the Cloudflare dashboard.
+
+At this point, Cloudflare is successfully hosting your DNS.
+
+## Step 5: Manage DNS Records
+
+In Cloudflare, open your domain and go to **DNS → Records**.
+
+![cloudflare-add-record](imgs/cloudflare-add-record.png)
+
+Here you can add records such as:
+
+- **A / AAAA** for pointing to an IP address
+- **CNAME** for linking to another domain
+- **TXT** for verification or services
+
+Changes usually take effect within seconds.
+
+## Alternative DNS Providers
+
+Cloudflare is recommended, but not required.
+
+If you already use another DNS provider, DigitalPlat also works with:
+
+- FreeDNS
+- Hostry
+- Any provider that supports custom nameservers
+
+Advanced users can even run their own DNS servers.
+
+## Next Step
+
+Now that DNS hosting is set up, you’re ready to connect your domain and start using it with services.
+
+Continue to the next guide to configure domain records and activation.
\ No newline at end of file
diff --git a/documents/tutorial/getting-started/imgs/cloudflare-account-register.png b/documents/tutorial/getting-started/imgs/cloudflare-account-register.png
new file mode 100644
index 0000000..b1efe50
Binary files /dev/null and b/documents/tutorial/getting-started/imgs/cloudflare-account-register.png differ
diff --git a/documents/tutorial/getting-started/imgs/cloudflare-add-domain.png b/documents/tutorial/getting-started/imgs/cloudflare-add-domain.png
new file mode 100644
index 0000000..daa6ece
Binary files /dev/null and b/documents/tutorial/getting-started/imgs/cloudflare-add-domain.png differ
diff --git a/documents/tutorial/getting-started/imgs/cloudflare-add-record.png b/documents/tutorial/getting-started/imgs/cloudflare-add-record.png
new file mode 100644
index 0000000..cd53a18
Binary files /dev/null and b/documents/tutorial/getting-started/imgs/cloudflare-add-record.png differ
diff --git a/documents/tutorial/getting-started/imgs/cloudflare-choose-plan.png b/documents/tutorial/getting-started/imgs/cloudflare-choose-plan.png
new file mode 100644
index 0000000..3fd2a81
Binary files /dev/null and b/documents/tutorial/getting-started/imgs/cloudflare-choose-plan.png differ
diff --git a/documents/tutorial/getting-started/imgs/cloudflare-setns.png b/documents/tutorial/getting-started/imgs/cloudflare-setns.png
new file mode 100644
index 0000000..9465b29
Binary files /dev/null and b/documents/tutorial/getting-started/imgs/cloudflare-setns.png differ
diff --git a/documents/tutorial/getting-started/imgs/digitalplat-register-setns.png b/documents/tutorial/getting-started/imgs/digitalplat-register-setns.png
new file mode 100644
index 0000000..939142e
Binary files /dev/null and b/documents/tutorial/getting-started/imgs/digitalplat-register-setns.png differ
diff --git a/documents/tutorial/getting-started/index.md b/documents/tutorial/getting-started/index.md
new file mode 100644
index 0000000..7ddbd1b
--- /dev/null
+++ b/documents/tutorial/getting-started/index.md
@@ -0,0 +1,47 @@
+# Getting Started
+
+This section helps you set up your first DigitalPlat domain from scratch.
+
+If this is your first time using DigitalPlat, follow the guides below in order.
+Each step builds on the previous one.
+
+## What You’ll Set Up
+
+By the end of this section, you will have:
+
+- A DigitalPlat account
+- DNS hosting configured for your domain
+- Everything ready for domain activation and use
+
+No prior domain or DNS experience is required.
+
+## Guides
+
+### 1. Register a DigitalPlat Domain Account
+Create your account and provide the required WHOIS information.
+
+→ [1.1-register-account.md](./1.1-register-account.md)
+
+### 2. Set Up DNS Hosting
+Choose a DNS provider and configure nameservers.
+This guide recommends Cloudflare for beginners.
+
+→ [1.2-dns-hosting.md](./1.2-dns-hosting.md)
+
+## Before You Start
+
+Make sure you have:
+
+- A valid email address
+- Access to a DNS provider (Cloudflare is recommended)
+- Basic understanding of what a domain is
+
+## What’s Next
+
+After completing these guides, you’ll be ready to:
+
+- Activate your domain
+- Add DNS records
+- Use your domain with websites, servers, or services
+
+Additional guides will be added as DigitalPlat evolves.
\ No newline at end of file
diff --git a/documents/tutorial/index.md b/documents/tutorial/index.md
new file mode 100644
index 0000000..1f49a9f
--- /dev/null
+++ b/documents/tutorial/index.md
@@ -0,0 +1,37 @@
+# Tutorials
+
+Welcome to the DigitalPlat documentation tutorials.
+
+These guides walk you through using DigitalPlat step by step, from first registration to advanced usage.
+
+If you’re new to DigitalPlat, start with **Getting Started**.
+
+## Getting Started
+
+This section is for first-time users.
+
+You’ll learn how to:
+
+- Create a DigitalPlat account
+- Set up DNS hosting for your domain
+- Prepare your domain for activation and use
+
+→ Go to: [Getting Started](./getting-started/index.md)
+
+(Other sections are working in progress.)
+
+## Who These Tutorials Are For
+
+These tutorials are designed for:
+
+- First-time domain users
+- Developers hosting personal or project domains
+- Open-source projects and nonprofits
+
+No prior DNS or domain experience is required.
+
+## Notes for Advanced Users
+
+If you already manage your own DNS or infrastructure, you can skip beginner sections and configure DigitalPlat directly.
+
+DigitalPlat works with any standard DNS provider and does not lock you into a specific platform.
\ No newline at end of file
diff --git a/opensource/frontend/domain_view.html b/opensource/frontend/domain_view.html
index d34a989..08464da 100644
--- a/opensource/frontend/domain_view.html
+++ b/opensource/frontend/domain_view.html
@@ -5,221 +5,256 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Manage Your Domain: {{domain_name}}</title>
+ {% include "ga.html" %}
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
-
- <!-- Bootstrap CSS -->
- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
+ <!-- Tailwind CSS -->
+ <script src="https://cdn.tailwindcss.com"></script>
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
- font-family: 'Poppins', sans-serif;
- background-color: #f1f3f4;
- display: flex;
- justify-content: center;
+ font-family: 'Inter', sans-serif;
+ }
+ .tab-btn {
+ background-color: #f1f5f9;
+ color: #475569;
+ padding: 0.55rem 1rem;
+ border-radius: 9999px;
+ font-size: 0.875rem;
+ font-weight: 600;
+ transition: all 0.2s ease;
+ display: inline-flex;
align-items: center;
- min-height: 100vh;
- margin: 0;
- padding: 0;
+ gap: 0.35rem;
}
-
- .container {
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
- padding: 30px;
- width: 100%;
- max-width: 900px;
- margin: 20px;
+ .tab-btn:hover {
+ background-color: #e2e8f0;
+ color: #0f172a;
}
-
- .nav-tabs .nav-link.active {
- background-color: #1a73e8;
+ .active-tab {
+ background-color: #0f172a;
color: #ffffff;
}
-
- .nav-tabs .nav-link {
- border-radius: 8px;
- margin-bottom: 10px;
- font-weight: 500;
- font-size: 1rem;
- }
-
- .tab-content {
- padding: 20px;
- background-color: #f1f3f4;
- border-radius: 8px;
- margin-left: 20px;
- flex-grow: 1;
+ .card {
+ background: #ffffff;
+ border-radius: 24px;
+ border: 1px solid #e2e8f0;
+ box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}
-
- .btn {
- background-color: #1a73e8;
- color: #ffffff;
- padding: 10px 20px;
- border-radius: 8px;
- transition: background-color 0.3s;
+ .input-field {
+ width: 100%;
+ border-radius: 12px;
+ border: 1px solid #e2e8f0;
+ padding: 0.6rem 0.9rem;
+ font-size: 0.95rem;
+ color: #0f172a;
+ background-color: #ffffff;
}
-
- .btn:hover {
- background-color: #185abc;
+ .input-field:focus {
+ outline: none;
+ border-color: #94a3b8;
+ box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}
-
- .btn-warning {
- background-color: #fbbc04;
+ .btn-primary {
+ background-color: #0f172a;
color: #ffffff;
+ border-radius: 12px;
+ padding: 0.6rem 1.25rem;
+ font-weight: 600;
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+ box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}
-
- .btn-warning:hover {
- background-color: #e37400;
+ .btn-primary:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}
-
- .btn-danger {
- background-color: #ea4335;
- color: #ffffff;
+ .btn-outline {
+ border: 1px solid #cbd5e1;
+ color: #1e293b;
+ background: #ffffff;
+ border-radius: 12px;
+ padding: 0.55rem 1.25rem;
+ font-weight: 600;
+ transition: all 0.2s ease;
}
-
- .btn-danger:hover {
- background-color: #c5221f;
+ .btn-outline:hover {
+ border-color: #94a3b8;
+ background: #f8fafc;
+ }
+ .badge {
+ display: inline-flex;
+ align-items: center;
+ padding: 0.2rem 0.6rem;
+ border-radius: 9999px;
+ font-size: 0.75rem;
+ font-weight: 600;
}
</style>
</head>
-<body>
- <div class="container">
- <div class="text-center mb-6">
- <h1 class="text-2xl font-semibold text-gray-900">Manage Your Domain: {{domain_name}}</h1>
- </div>
- <div class="bg-blue-100 text-gray-900 p-4 rounded-lg mb-6">
- <h3 class="font-medium">Your Domain Information:</h3>
- <ul class="list-disc pl-6 mt-2 space-y-2">
- <li><strong>Name:</strong> {{domain_name}}</li>
- <li><strong>Administrator:</strong> {{fullname}} ({{username}})</li>
- <li><strong>Renew:</strong> Always Free, renewal for the next year if there's less than 180 days left until expiry</li>
- <li><strong>Registration Date:</strong> {{regdate_show}}</li>
- <li><strong>Expire Date:</strong> {{expdate_show}}</li>
- </ul>
- </div>
- <div class="d-flex">
- <ul class="nav flex-column nav-tabs" id="myTab" role="tablist" style="width: 180px;">
- <li class="nav-item">
- <a class="nav-link active" id="ns-records-tab" data-toggle="tab" href="#ns-records" role="tab" aria-controls="ns-records" aria-selected="true">NS Records</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" id="renew-tab" data-toggle="tab" href="#renew" role="tab" aria-controls="renew" aria-selected="false">Renew</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" id="whois-privacy-tab" data-toggle="tab" href="#whois-privacy" role="tab" aria-controls="whois-privacy" aria-selected="false">WHOIS Privacy Protection</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" id="cancel-domain-tab" data-toggle="tab" href="#cancel-domain" role="tab" aria-controls="cancel-domain" aria-selected="false">Cancel This Domain</a>
- </li>
- </ul>
- <div class="tab-content" id="myTabContent">
- <div class="tab-pane fade show active" id="ns-records" role="tabpanel" aria-labelledby="ns-records-tab">
- <p>The DNS server needs to be valid for the resolution to take effect and display correctly; otherwise, it will remain blank. Please allow up to several minutes for the NS records to update and appear after submission.</p>
- <form action="/panel/nameserver/update" method="GET">
- <div class="form-group">
- <label for="ns1"><span class="text-red-500">*</span> Name Server 1</label>
- <input type="text" name="ns1" id="ns1" value="{{ns1}}" placeholder="NS1" required class="form-control">
+<body class="bg-slate-50 min-h-screen text-slate-900">
+ <div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
+ <div class="flex flex-col gap-6">
+ <header class="card px-6 py-6 md:px-10 md:py-8">
+ <div class="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
+ <div>
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Domain Management</p>
+ <h1 class="text-2xl md:text-3xl font-semibold text-slate-900">Manage {{domain_name}}</h1>
+ <p class="text-sm text-slate-500 mt-2">Update nameservers, renew your domain, and control WHOIS privacy.</p>
+ </div>
+ <div class="flex flex-wrap items-center gap-3">
+ <span class="badge bg-slate-100 text-slate-600">Owner: {{fullname}}</span>
+ <span class="badge bg-emerald-100 text-emerald-700">WHOIS Privacy Status: {{whois_protection_status}}</span>
+ </div>
+ </div>
+ </header>
+
+ <section class="grid gap-6 lg:grid-cols-[1.05fr_2fr]">
+ <div class="card p-6">
+ <h2 class="text-lg font-semibold text-slate-900">Domain overview</h2>
+ <p class="text-sm text-slate-500 mt-1">Quick access to registration details and timelines.</p>
+ <dl class="mt-6 space-y-4 text-sm">
+ <div>
+ <dt class="text-slate-400">Domain</dt>
+ <dd class="text-base font-semibold text-slate-900">{{domain_name}}</dd>
</div>
- <div class="form-group">
- <label for="ns2"><span class="text-red-500">*</span> Name Server 2</label>
- <input type="text" name="ns2" id="ns2" value="{{ns2}}" placeholder="NS2" required class="form-control">
+ <div>
+ <dt class="text-slate-400">Administrator</dt>
+ <dd class="text-slate-700">{{fullname}} ({{username}})</dd>
</div>
- <div class="form-group">
- <label for="ns3">Name Server 3</label>
- <input type="text" name="ns3" id="ns3" value="{{ns3}}" placeholder="NS3" class="form-control">
+ <div>
+ <dt class="text-slate-400">Registration date</dt>
+ <dd class="text-slate-700">{{regdate_show}}</dd>
</div>
- <div class="form-group">
- <label for="ns4">Name Server 4</label>
- <input type="text" name="ns4" id="ns4" value="{{ns4}}" placeholder="NS4" class="form-control">
+ <div>
+ <dt class="text-slate-400">Expiration date</dt>
+ <dd class="text-slate-700">{{expdate_show}}</dd>
</div>
- <input type="hidden" name="name" value="{{domain_name}}">
- <button type="submit" class="btn">Update</button>
- </form>
- </div>
- <div class="tab-pane fade" id="renew" role="tabpanel" aria-labelledby="renew-tab">
- <form action="/panel/renew/update" method="GET" target="_blank" class="mt-4">
- <input type="hidden" name="name" value="{{domain_name}}">
- <button type="submit" class="btn">Renew (if there's less than 180 days left until expiry)</button>
- </form>
- </div>
- <div class="tab-pane fade" id="whois-privacy" role="tabpanel" aria-labelledby="whois-privacy-tab">
- <p>WHOIS Privacy Protection is a service to protect your personal information from being publicly available through the WHOIS database. If you enable this service, your information won't be accessible through WHOIS queries.</p>
- <h5 class="mt-2">Current Status: <span class="badge text-bg-{{whois_protection_badge}}">{{whois_protection_status}}</span></h5>
- <form action="/panel/manager/enable_whois_protection" method="GET" target="_blank" class="mt-4">
- <input type="hidden" name="domain" value="{{domain_name}}">
- <button type="submit" class="btn btn-warning">Enable (After enabling, your information won't be accessible through WHOIS queries)</button>
- </form>
- <form action="/panel/manager/disable_whois_protection" method="GET" target="_blank" class="mt-4">
- <input type="hidden" name="domain" value="{{domain_name}}">
- <button type="submit" class="btn btn-warning">Disable WHOIS Protection</button>
- </form>
+ <div class="rounded-xl border border-slate-100 bg-slate-50 px-4 py-3 text-slate-600">
+ Free renewals are available within 180 days of expiry. Use a key to extend early by 2 years.
+ </div>
+ </dl>
</div>
- <div class="tab-pane fade" id="cancel-domain" role="tabpanel" aria-labelledby="cancel-domain-tab">
- <p>To free up unused domain names, we're introducing a new feature: you can now cancel domain names that you no longer need (i.e., delete this domain). Once a domain is canceled, your registration limit will be reset, allowing you to register new domains. When you request a cancellation, your domain will be immediately removed from the DNS root. After the global DNS sync completes (typically within 5-30 minutes), the domain name will be available for registration by you or anyone else. Please note that once you cancel a domain name, you will lose all management rights to it. Once released, anyone can register the domain name. Proceed with caution, as we will not be able to help you retrieve the domain name once it is canceled.</p>
- <button type="button" class="btn btn-danger" onclick="showCancelModal()">Danger Zone: Cancel this domain</button>
-
- <!-- Cancel Domain Modal -->
- <div class="modal fade" id="cancelModal" tabindex="-1" role="dialog" aria-labelledby="cancelModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="cancelModalLabel">Confirm Domain Cancellation</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">&times;</span>
- </button>
- </div>
- <div class="modal-body">
- <p>To confirm the cancellation of the domain, please enter the domain name <strong>{{domain_name}}</strong> below:</p>
- <input type="text" id="confirmDomainName" class="form-control" placeholder="Enter domain name">
- <p class="mt-3 text-danger">Warning: This action is irreversible. Once canceled, the domain will be immediately available for registration by others.</p>
- </div>
- <div class="modal-footer">
- <form action="/panel/manager/cancel_domain" method="GET" id="cancelDomainForm" onsubmit="handleCancelDomainSubmit(event)">
- <input type="hidden" name="domain" value="{{domain_name}}">
- <button type="submit" class="btn btn-danger" id="confirmCancelBtn" disabled>Cancel Domain</button>
- </form>
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- </div>
+
+ <div class="card p-6 md:p-8">
+ <div class="flex flex-wrap gap-3 mb-6">
+ <button class="tab-btn active-tab" data-target="#ns-records">Nameservers</button>
+ <button class="tab-btn" data-target="#renew">Renew</button>
+ <button class="tab-btn" data-target="#whois-privacy">WHOIS Privacy</button>
+ </div>
+
+ <div id="ns-records" class="tab-content-box block">
+ <p class="text-sm text-slate-500 mb-6">Changes may take a few minutes to propagate.</p>
+ <form action="/panel/nameserver/update" method="GET" class="grid gap-4 md:grid-cols-2">
+ <div>
+ <label for="ns1" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">* Name Server 1</label>
+ <input type="text" name="ns1" id="ns1" value="{{ns1}}" required placeholder="NS1" class="input-field">
+ </div>
+ <div>
+ <label for="ns2" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">* Name Server 2</label>
+ <input type="text" name="ns2" id="ns2" value="{{ns2}}" required placeholder="NS2" class="input-field">
+ </div>
+ <div>
+ <label for="ns3" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Name Server 3</label>
+ <input type="text" name="ns3" id="ns3" value="{{ns3}}" placeholder="NS3" class="input-field">
+ </div>
+ <div>
+ <label for="ns4" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Name Server 4</label>
+ <input type="text" name="ns4" id="ns4" value="{{ns4}}" placeholder="NS4" class="input-field">
+ </div>
+ <div>
+ <label for="ns5" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Name Server 5</label>
+ <input type="text" name="ns5" id="ns5" value="{{ns5}}" placeholder="NS5" class="input-field">
+ </div>
+ <div>
+ <label for="ns6" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Name Server 6</label>
+ <input type="text" name="ns6" id="ns6" value="{{ns6}}" placeholder="NS6" class="input-field">
+ </div>
+ <div>
+ <label for="ns7" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Name Server 7</label>
+ <input type="text" name="ns7" id="ns7" value="{{ns7}}" placeholder="NS7" class="input-field">
+ </div>
+ <div>
+ <label for="ns8" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Name Server 8</label>
+ <input type="text" name="ns8" id="ns8" value="{{ns8}}" placeholder="NS8" class="input-field">
+ </div>
+ <input type="hidden" name="name" value="{{domain_name}}">
+ <div class="md:col-span-2 flex flex-wrap justify-between items-center gap-3 pt-2">
+ <p class="text-xs text-slate-500">Use valid nameserver hostnames (e.g., ns1.provider.com).</p>
+ <button type="submit" class="btn-primary">Update nameservers</button>
+ </div>
+ </form>
+ </div>
+
+ <div id="renew" class="tab-content-box hidden">
+ <div class="space-y-6">
+ <div class="rounded-2xl border border-slate-200 bg-slate-50 p-4">
+ <h3 class="text-sm font-semibold text-slate-800">Free renewal window</h3>
+ <p class="text-sm text-slate-500 mt-1">Available when less than 180 days remain.</p>
+ <form action="/panel/renew/update" method="GET" target="_blank" class="mt-4">
+ <input type="hidden" name="name" value="{{domain_name}}">
+ <button type="submit" class="btn-primary">Request free renewal</button>
+ </form>
+ </div>
+
+ <div class="rounded-2xl border border-slate-200 bg-white p-4">
+ <h3 class="text-sm font-semibold text-slate-800">Renew early with a KYC key</h3>
+ <p class="text-sm text-slate-500 mt-1">Each key adds 2 years of validity.</p>
+ <form action="/panel/manual_renew" method="POST" class="mt-4 space-y-3">
+ <input type="hidden" name="domain" value="{{domain_name}}">
+ <label for="renewkey" class="block text-xs uppercase tracking-wide text-slate-400">KYC key</label>
+ <input type="text" id="renewkey" name="renewkey" class="input-field" placeholder="Enter your key" required>
+ <button type="submit" class="btn-outline">Manual renewal (+2 years)</button>
+ </form>
+ <p class="text-xs text-slate-500 mt-3">
+ Purchase keys at <a href="https://key.register.us.kg/" class="text-slate-900 underline">https://key.register.us.kg/</a>.
+ </p>
</div>
</div>
</div>
+ <div id="whois-privacy" class="tab-content-box hidden">
+ <div class="rounded-2xl border border-slate-200 bg-slate-50 p-4">
+ <p class="text-sm text-slate-600">WHOIS Privacy hides your personal info in public WHOIS queries.</p>
+ <div class="mt-4 flex flex-wrap items-center gap-3">
+ <span class="text-sm font-semibold text-slate-700">Current status:</span>
+ <span class="badge bg-emerald-100 text-emerald-700">{{whois_protection_status}}</span>
+ </div>
+ </div>
+
+ <div class="mt-6 flex flex-wrap gap-3">
+ <form action="/panel/manager/enable_whois_protection" method="GET" target="_blank">
+ <input type="hidden" name="domain" value="{{domain_name}}">
+ <button type="submit" class="btn-primary">Enable privacy</button>
+ </form>
+
+ <form action="/panel/manager/disable_whois_protection" method="GET" target="_blank">
+ <input type="hidden" name="domain" value="{{domain_name}}">
+ <button type="submit" class="btn-outline">Disable privacy</button>
+ </form>
+ </div>
+ </div>
</div>
- </div>
+ </section>
</div>
</div>
- <!-- Bootstrap JS and dependencies -->
- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
-
<script>
- function showCancelModal() {
- $('#cancelModal').modal('show');
- }
+ const tabButtons = document.querySelectorAll('.tab-btn');
+ const tabContents = document.querySelectorAll('.tab-content-box');
- document.getElementById('confirmDomainName').addEventListener('input', function () {
- const confirmBtn = document.getElementById('confirmCancelBtn');
- if (this.value === '{{domain_name}}') {
- confirmBtn.removeAttribute('disabled');
- } else {
- confirmBtn.setAttribute('disabled', 'true');
- }
- });
+ tabButtons.forEach(button => {
+ button.addEventListener('click', () => {
+ tabButtons.forEach(btn => btn.classList.remove('active-tab'));
+ tabContents.forEach(content => content.classList.add('hidden'));
- function handleCancelDomainSubmit(event) {
- event.preventDefault();
- const confirmBtn = document.getElementById('confirmCancelBtn');
- confirmBtn.setAttribute('disabled', 'true');
- confirmBtn.textContent = 'Please wait...';
- document.getElementById('cancelDomainForm').submit();
- }
+ button.classList.add('active-tab');
+ const target = document.querySelector(button.dataset.target);
+ target.classList.remove('hidden');
+ target.classList.add('block');
+ });
+ });
</script>
</body>
-</html>
+</html>
\ No newline at end of file
diff --git a/opensource/frontend/domainmgr.html b/opensource/frontend/domainmgr.html
index 491eb78..268f49f 100644
--- a/opensource/frontend/domainmgr.html
+++ b/opensource/frontend/domainmgr.html
@@ -1,114 +1,127 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>US.KG Domain Dashboard</title>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <!-- Font Awesome -->
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
-
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>Domain Dashboard</title>
+ {% include "ga.html" %}
+
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
-
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet" />
+
<style>
body {
- font-family: 'Poppins', sans-serif;
- background-color: #f3f4f6;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- }
- .header {
- background-color: #1f2937;
- color: #ffffff;
- padding: 20px;
- text-align: center;
- }
- .container {
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 20px;
+ font-family: 'Inter', sans-serif;
}
.card {
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- padding: 20px;
- width: 100%;
- max-width: 600px;
- }
- .card-header {
- border-bottom: 1px solid #e2e8f0;
- padding-bottom: 10px;
- margin-bottom: 20px;
- text-align: center;
- }
- .card-header h1 {
- font-size: 1.5rem;
- font-weight: 600;
- color: #1a202c;
- }
- .list-group {
- list-style: none;
- padding: 0;
- margin: 0;
- }
- .list-group-item {
- padding: 10px 15px;
+ background: #ffffff;
+ border-radius: 24px;
border: 1px solid #e2e8f0;
- border-radius: 8px;
- margin-bottom: 10px;
- transition: background-color 0.3s, color 0.3s;
- }
- .list-group-item a {
- text-decoration: none;
- color: #1a202c;
- font-weight: 500;
- display: block;
- }
- .list-group-item:hover {
- background-color: #edf2f7;
- color: #2d3748;
- }
- .footer {
- background-color: #1f2937;
- color: #ffffff;
- text-align: center;
- padding: 10px;
+ box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}
</style>
</head>
-<body>
+<body class="bg-slate-50 min-h-screen flex flex-col text-slate-900">
+ <header class="bg-white text-slate-900 py-6 text-center border-b border-slate-200">
+ <h1 class="text-2xl font-semibold">Your domains</h1>
+ <p class="text-sm text-slate-500 mt-1">Manage and search through your registered domains.</p>
+ </header>
- <div class="container">
- <div class="card">
- <div class="card-header">
- <h1>Your Domains</h1>
+ <main class="flex-grow p-6">
+ <div class="max-w-5xl mx-auto card p-6 md:p-8">
+ <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-6">
+ <input
+ type="text"
+ id="searchInput"
+ class="w-full md:w-1/2 border border-slate-200 rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-slate-200"
+ placeholder="Search domains"
+ oninput="filterDomains()"
+ />
+ <div class="flex items-center gap-3">
+ <label for="perPageSelect" class="text-sm text-slate-500">Per page:</label>
+ <select id="perPageSelect" class="border border-slate-200 rounded-lg px-2 py-1 text-sm" onchange="changeItemsPerPage()">
+ <option value="5">5</option>
+ <option value="10" selected>10</option>
+ <option value="50">50</option>
+ <option value="100">100</option>
+ <option value="500">500</option>
+ </select>
+ <div class="text-sm text-slate-500">
+ Showing <span id="domain-count">0</span> domains
+ </div>
+ </div>
</div>
- <ul class="list-group">
+
+ <ul id="domainList" class="space-y-2">
{% for domain in domain_list %}
- <li class="list-group-item">
- <a href="/panel/manager/{{domain}}">{{domain}}</a>
+ <li class="domain-item">
+ <a href="/panel/manager/{{domain}}" class="block px-4 py-3 border border-slate-200 rounded-xl hover:bg-slate-50 font-medium text-slate-800 transition">
+ {{domain}}
+ </a>
</li>
{% endfor %}
</ul>
+
+ <!-- Pagination -->
+ <div class="flex justify-center mt-6" id="pagination"></div>
</div>
- </div>
+ </main>
+
<script>
- window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
-</script>
-<script defer src="/_vercel/insights/script.js"></script>
-<script>
- window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
-</script>
-<script defer src="/_vercel/speed-insights/script.js"></script>
+ let itemsPerPage = 10;
+ let currentPage = 1;
+ let allDomains = [];
+
+ function updateDomainCount() {
+ const visibleItems = document.querySelectorAll('.domain-item:not(.hidden)').length;
+ document.getElementById('domain-count').textContent = visibleItems;
+ }
+
+ function paginateDomains() {
+ const filtered = allDomains.filter(item => !item.classList.contains('hidden'));
+ const totalPages = Math.ceil(filtered.length / itemsPerPage);
+
+ filtered.forEach((item, index) => {
+ item.style.display = (index >= (currentPage - 1) * itemsPerPage && index < currentPage * itemsPerPage) ? '' : 'none';
+ });
+
+ const pagination = document.getElementById('pagination');
+ pagination.innerHTML = '';
+ for (let i = 1; i <= totalPages; i++) {
+ const btn = document.createElement('button');
+ btn.textContent = i;
+ btn.className = `mx-1 px-3 py-1 rounded-lg text-sm font-medium ${i === currentPage ? 'bg-slate-900 text-white' : 'bg-slate-100 text-slate-600'} hover:bg-slate-200`;
+ btn.onclick = () => {
+ currentPage = i;
+ paginateDomains();
+ };
+ pagination.appendChild(btn);
+ }
+ }
+
+ function filterDomains() {
+ const search = document.getElementById('searchInput').value.toLowerCase();
+ allDomains.forEach(item => {
+ const text = item.textContent.toLowerCase();
+ item.classList.toggle('hidden', !text.includes(search));
+ });
+ currentPage = 1;
+ updateDomainCount();
+ paginateDomains();
+ }
+
+ function changeItemsPerPage() {
+ itemsPerPage = parseInt(document.getElementById('perPageSelect').value);
+ currentPage = 1;
+ paginateDomains();
+ }
+
+ document.addEventListener('DOMContentLoaded', () => {
+ allDomains = Array.from(document.querySelectorAll('.domain-item'));
+ updateDomainCount();
+ paginateDomains();
+ });
+ </script>
</body>
</html>
\ No newline at end of file
diff --git a/opensource/frontend/domainreg.html b/opensource/frontend/domainreg.html
index d9f5535..81dcdb1 100644
--- a/opensource/frontend/domainreg.html
+++ b/opensource/frontend/domainreg.html
@@ -1,94 +1,87 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>US.KG Domain Dashboard</title>
-
- <!-- Tailwind CSS -->
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+ <title>DigitalPlat FreeDomain Dashboard</title>
+ {% include "ga.html" %}
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Font Awesome -->
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
- .container {
- width: 100%;
- max-width: 600px;
- margin: auto;
- padding: 20px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- transition: all 0.5s ease;
- }
- .header {
- display: flex;
- align-items: center;
- padding: 10px 20px;
- background-color: #ffffff;
- border-radius: 12px 12px 0 0;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- }
- .footer {
- background-color: #1a202c;
- color: #cbd5e0;
- padding: 20px;
- font-size: 14px;
- border-radius: 0 0 12px 12px;
- margin-top: auto;
- text-align: center;
- }
- footer a {
- color: #63b3ed;
- }
- footer a:hover {
- text-decoration: underline;
- }
- .input-group {
- display: flex;
- align-items: center;
- margin-bottom: 20px;
- }
- .input-group-prepend {
- background-color: #edf2f7;
- border: 1px solid #cbd5e0;
- padding: 10px;
- border-radius: 0 5px 5px 0;
- color: #4a5568;
- }
- </style>
+ {% include "partials/modern_styles.html" %}
</head>
-<body>
- <div class="container mt-5">
+<body class="bg-slate-50 text-slate-900">
+ <div class="page-shell">
+ <header class="page-header">
+ <div class="max-w-4xl mx-auto px-6 py-6">
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Domain registration</p>
<h1 class="text-2xl font-semibold">Get a new domain</h1>
- <p>By continuing you agree to our <a href="https://nic.us.kg/terms-of-service/">Terms of Service</a>, <a href="https://nic.us.kg/privacy-policy/">Privacy Policy</a> and <a href="https://nic.us.kg/acceptable-use-policy/">Acceptable Use Policy</a></p>
- <p>Let's check if your domain name is available</p>
- <form action="/panel/register/check" method="GET">
- <label class="sr-only" for="name">Domain name</label>
- <div class="input-group mb-2">
- <input type="text" name="name" class="form-input block w-full px-4 py-3 mb-3 leading-tight text-gray-700 border rounded-lg focus:outline-none focus:bg-white" id="name" placeholder="Domain name" required>
- <div class="input-group-prepend">.us.kg</div>
+ <p class="text-sm text-slate-500 mt-2">Review the policies below and submit your desired domain name.</p>
+ </div>
+ </header>
+
+ <main class="flex-1">
+ <div class="max-w-3xl mx-auto px-6 py-10">
+ <div class="card p-6 md:p-8 space-y-6">
+ <div>
+ <h2 class="text-lg font-semibold text-slate-900">Required policy acknowledgements</h2>
+ <p class="text-sm text-slate-500 mt-1">You must read and agree to the following terms to proceed.</p>
+ </div>
+
+ <div class="grid gap-2 text-sm text-slate-600">
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://domain.digitalplat.org/terms-of-service/" target="_blank">Terms of Service (TOS)</a>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://domain.digitalplat.org/privacy-policy/" target="_blank">Privacy Policy</a>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://digitalplat.org/privacy-policy/" target="_blank">DigitalPlat Privacy Policy</a>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://domain.digitalplat.org/acceptable-use-policy/" target="_blank">Acceptable Use Policy (AUP)</a>
+ <p class="text-sm font-medium text-slate-500 mt-4">Additional policies for US.KG and XX.KG:</p>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://www.cctld.kg/en/service-regulations" target="_blank">CCLTD.KG Zone Regulations</a>
+ <p class="text-sm font-medium text-slate-500 mt-4">Additional policies for DPDNS.ORG:</p>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://pir.org/our-impact/ngo-ong-policy/" target="_blank">PIR NGO.ONG Policy</a>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://pir.org/anti-abuse-policy/" target="_blank">PIR Anti-Abuse Policy</a>
+ <p class="text-sm font-medium text-slate-500 mt-4">Additional policies for QZZ.IO:</p>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://nic.io/rules.htm" target="_blank">NIC.IO Rules</a>
+ <a class="inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 font-medium text-slate-700 hover:bg-slate-200 transition" href="https://nic.io/terms.htm" target="_blank">NIC.IO Terms and Conditions</a>
+ <p class="text-sm font-semibold text-slate-600 mt-4">Only US.KG and XX.KG require a key.</p>
+ </div>
+
+ <form id="domainForm" action="/panel/register/check" method="GET" class="space-y-5">
+ <div class="grid gap-4">
+ <input type="text" name="name" placeholder="Domain name" required class="input-field" />
+
+ <select name="domain" id="domainSelect" class="input-field">
+ <option value=".dpdns.org">.dpdns.org</option>
+ <option value=".us.kg">.us.kg</option>
+ <option value=".qzz.io">.qzz.io</option>
+ <option value=".xx.kg">.xx.kg</option>
+ </select>
+
+ <label class="inline-flex items-start gap-3 text-sm text-slate-600">
+ <input type="checkbox" id="termsCheckbox" class="mt-1 rounded border-slate-300 text-slate-900">
+ <span>
+ I have carefully read and agree to all applicable policies and service terms listed above. I understand and acknowledge that violation of these terms may result in immediate suspension or deletion of my domain(s) and account, with or without prior notice or explanation, at the sole discretion of the service provider.
+ </span>
+ </label>
</div>
+
<div class="flex justify-center">
- <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Check</button>
+ <button type="submit" id="submitBtn" class="btn-primary">Check Availability</button>
</div>
- </form>
- <br>
- <p>Domain name unavailable? Have a question? Contact: <a href="mailto:[email protected]" class="text-blue-500">[email protected]</a><br>If you encounter any problems, please create a new issue: <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose" class="text-blue-500" target="_blank">Issue Report</a><br></p>
- </div>
+ </form>
+
+ <p id="errorMsg" class="text-red-500 text-sm hidden text-center">
+ Please agree to the terms before continuing.
+ </p>
+ </div>
+ </div>
+ </main>
+ </div>
+
+ <script>
+ document.getElementById('domainForm').addEventListener('submit', function (e) {
+ const agreed = document.getElementById('termsCheckbox').checked;
+ if (!agreed) {
+ e.preventDefault();
+ document.getElementById('errorMsg').classList.remove('hidden');
+ }
+ });
+ </script>
</body>
</html>
diff --git a/opensource/frontend/error.html b/opensource/frontend/error.html
index f29b6d3..a6a0b21 100644
--- a/opensource/frontend/error.html
+++ b/opensource/frontend/error.html
@@ -4,69 +4,30 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Error!</title>
-
- <!-- Tailwind CSS -->
+ <title>Error - DigitalPlat</title>
+ {% include "ga.html" %}
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .container {
- width: 100%;
- max-width: 600px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- padding: 20px;
- text-align: center;
- }
- .header__title h1 {
- font-size: 3rem;
- font-weight: 700;
- margin-bottom: 20px;
- }
- .header__text {
- font-size: 1.25rem;
- margin-bottom: 20px;
- }
- .header__button {
- background-color: #1a202c;
- color: #ffffff;
- padding: 10px 20px;
- border-radius: 5px;
- text-decoration: none;
- font-weight: 500;
- transition: background-color 0.3s;
- }
- .header__button:hover {
- background-color: #2d3748;
- }
- </style>
+ {% include "partials/modern_styles.html" %}
</head>
-<body>
- <main class="container">
- <div class="content">
- <div class="header">
- <div class="header__title">
- <h1 class="header__h1">Error!</h1>
+<body class="bg-slate-50 text-slate-900">
+ <div class="page-shell">
+ <main class="flex-1 flex items-center justify-center px-6 py-12">
+ <div class="card max-w-2xl w-full p-8 text-center space-y-4">
+ <div class="mx-auto text-rose-500">
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 mx-auto" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9 9 4.03 9 9z" />
+ </svg>
+ </div>
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Error</p>
+ <h1 class="text-2xl font-semibold text-rose-600">Error!</h1>
+ <p class="text-slate-600">{{info}}</p>
+ <div>
+ <a class="btn-primary inline-flex" href="javascript:history.back()">Go Back</a>
</div>
- <p class="header__text">{{info}}</p>
- <a class="header__button" href="javascript:history.back()">Back</a>
</div>
- </div>
- </main>
+ </main>
+ </div>
+
<script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-fountain@2/tsparticles.preset.fountain.bundle.min.js"></script>
</body>
</html>
diff --git a/opensource/frontend/info.html b/opensource/frontend/info.html
index 3472112..9d5ca88 100644
--- a/opensource/frontend/info.html
+++ b/opensource/frontend/info.html
@@ -4,70 +4,25 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>INFO!</title>
-
- <!-- Tailwind CSS -->
+ <title>Notice - DigitalPlat FreeDomain</title>
+ {% include "ga.html" %}
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .container {
- width: 100%;
- max-width: 600px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- padding: 20px;
- text-align: center;
- }
- .header__title h1 {
- font-size: 3rem;
- font-weight: 700;
- margin-bottom: 20px;
- }
- .header__text {
- font-size: 1.25rem;
- margin-bottom: 20px;
- }
- .header__button {
- background-color: #1a202c;
- color: #ffffff;
- padding: 10px 20px;
- border-radius: 5px;
- text-decoration: none;
- font-weight: 500;
- transition: background-color 0.3s;
- cursor: pointer;
- }
- .header__button:hover {
- background-color: #2d3748;
- }
- </style>
+ {% include "partials/modern_styles.html" %}
</head>
-<body>
- <main class="container">
- <div class="content">
- <div class="header">
- <div class="header__title">
- <h1 class="header__h1">Woah</h1>
+<body class="bg-slate-50 text-slate-900">
+ <div class="page-shell">
+ <main class="flex-1 flex items-center justify-center px-6 py-12">
+ <div class="card max-w-2xl w-full p-8 text-center space-y-4">
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">System notice</p>
+ <h1 class="text-2xl font-semibold">Notice</h1>
+ <p class="text-slate-600">{{info | safe}}</p>
+ <div>
+ <a class="btn-primary inline-flex" href="#" onclick="history.back(); return false;">Go Back</a>
</div>
- <p class="header__text">{{info}}</p>
- <a class="header__button" href="#" onclick="history.back(); return false;">Back</a>
</div>
- </div>
- </main>
+ </main>
+ </div>
+
<script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-fountain@2/tsparticles.preset.fountain.bundle.min.js"></script>
</body>
</html>
diff --git a/opensource/frontend/login.html b/opensource/frontend/login.html
index e19bc90..3e7df26 100644
--- a/opensource/frontend/login.html
+++ b/opensource/frontend/login.html
@@ -3,210 +3,115 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>DigitalPlat Domain Registry and Management Authority</title>
+ <title>DigitalPlat Domain Dashboard Login</title>
+ {% include "ga.html" %}
<link rel="icon" type="image/jpeg" href="/static/img/logo.jpg">
- <!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
- <!-- Material Icons -->
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
-
- <!-- Cloudflare Turnstile -->
+ {% include "partials/modern_styles.html" %}
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" />
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>
<style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
+ .fade-in {
+ animation: fadeIn 0.5s ease-in-out;
}
- .container {
- width: 100%;
- max-width: 400px;
- margin: auto;
- padding: 20px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- transition: all 0.5s ease;
- }
- .header {
- display: flex;
- align-items: center;
- padding: 10px 20px;
- background-color: #ffffff;
- border-radius: 12px 12px 0 0;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- }
- .logo img {
- width: 80px;
- height: auto;
- border-radius: 50%;
- }
- .title {
- font-size: 1.2rem;
- font-weight: 600;
- margin-left: 20px;
- color: #1a202c;
- }
- .google-button {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- font-weight: 500;
- background-color: #e2e8f0;
- padding: 10px 15px;
- border-radius: 8px;
- transition: background-color 0.3s;
- }
- .google-button:hover {
- background-color: #cbd5e0;
- }
- .footer {
- background-color: #1a202c;
- color: #cbd5e0;
- padding: 20px;
- font-size: 14px;
- border-radius: 0 0 12px 12px;
- margin-top: auto;
- }
- footer a {
- color: #63b3ed;
- }
- footer a:hover {
- text-decoration: underline;
- }
- .loading-animation {
- border: 4px solid #f3f3f3;
- border-top: 4px solid #3498db;
- border-radius: 50%;
- width: 24px;
- height: 24px;
- animation: spin 2s linear infinite;
- margin: 0 auto 20px;
- display: none;
- }
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- .email-display {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- }
- .email-display .material-symbols-outlined {
- font-size: 40px;
- color: #1a202c;
- margin-right: 10px;
- }
- .email-display p {
- flex-grow: 1;
- margin: 0;
- font-size: 1rem;
- color: #1a202c;
- }
- .email-display a {
- color: #3182ce;
- font-size: 0.875rem;
+ @keyframes fadeIn {
+ from { opacity: 0; }
+ to { opacity: 1; }
}
</style>
</head>
-<body>
- <div class="header">
- <div class="logo">
- <img src="/static/img/logo.jpg" alt="DigitalPlat Domain Registry and Management Authority">
- </div>
- <div class="title">DigitalPlat Domain Registry and Management Authority</div>
- </div>
- <div class="container mx-auto px-4">
- <div id="loading" class="loading-animation"></div>
- <form id="loginForm" action="/auth/login" method="POST">
- <div id="step1">
- <div class="mb-4">
- <label for="email" class="block text-gray-700 text-sm font-bold mb-2">E-Mail</label>
- <input type="email" name="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="email" placeholder="Enter your email" required>
- </div>
- <div class="flex items-center justify-between">
- <button type="button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" onclick="nextStep()">Next</button>
+<body class="bg-slate-50 text-slate-900">
+<div class="page-shell">
+ <main class="flex-1 flex items-center justify-center px-6 py-10">
+ <div class="w-full max-w-md card p-8 space-y-6">
+ <div class="flex items-center space-x-4">
+ <img src="/static/img/logo.jpg" alt="Logo" class="brand-mark">
+ <div>
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Welcome back</p>
+ <h1 class="text-xl font-semibold text-slate-900">DigitalPlat Domain Dashboard</h1>
+ <p class="text-sm text-slate-500">Sign in to manage your domains.</p>
</div>
</div>
- <div id="step2" class="hidden opacity-0 transition-opacity duration-500 ease-in-out">
- <div class="email-display">
- <span class="material-symbols-outlined">account_circle</span>
- <p id="displayEmail" class="text-gray-700"></p>
- <a href="javascript:void(0)" onclick="editEmail()">Edit</a>
+
+ <form id="loginForm" action="/auth/login" method="POST" class="space-y-6">
+ <div id="step1" class="grid gap-y-4 fade-in">
+ <div class="rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-600">
+ {{notice | safe}}
+ </div>
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">E-Mail</label>
+ <input type="email" name="email" id="email" required class="input-field" placeholder="[email protected]">
+ </div>
+ <button type="button" onclick="nextStep()" class="btn-primary w-full">Next</button>
</div>
- <div class="mb-4">
- <label for="password" class="block text-gray-700 text-sm font-bold mb-2">Password</label>
- <input type="password" name="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="password" placeholder="Enter your password" required>
+
+ <div id="step2" class="hidden opacity-0 grid gap-y-4 fade-in">
+ <div class="flex items-center space-x-3 rounded-xl border border-slate-200 bg-white px-4 py-3">
+ <span class="material-symbols-outlined text-slate-400 text-4xl">account_circle</span>
+ <p id="displayEmail" class="flex-grow text-slate-700"></p>
+ <button type="button" onclick="editEmail()" class="text-sm font-medium text-slate-600 hover:text-slate-900">Edit</button>
+ </div>
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Password</label>
+ <input type="password" name="password" id="password" required class="input-field" placeholder="Your password">
+ </div>
+ <div class="g-recaptcha mb-2" data-sitekey="0x4AAAAAAAxuMrGCYFcOwd1N"></div>
+ <button type="submit" class="btn-primary w-full">Login</button>
</div>
- <!-- Cloudflare Turnstile reCAPTCHA -->
- <div class="g-recaptcha mb-4" data-sitekey="0x4AAAAAAAxuMrGCYFcOwd1N"></div>
- <div class="flex items-center justify-between">
- <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
- Login
- </button>
+
+ <div class="text-center text-sm text-slate-500 space-y-1">
+ <p>Don't have an account? <a href="/auth/register" class="font-medium text-slate-900 hover:underline">Sign up</a></p>
+ <p>Forgot password? <a href="/auth/reset-password" class="font-medium text-slate-900 hover:underline">Reset Password</a></p>
</div>
+ </form>
+
+ <div class="text-center">
+ <a class="mt-4 inline-flex items-center justify-center w-full border border-slate-200 bg-white text-slate-700 py-3 rounded-xl hover:bg-slate-50 transition" href="/auth/login/google">
+ <img src="/static/img/login/glogo.webp" class="w-5 h-5 mr-3" alt="Google"> Sign in with Google
+ </a>
</div>
- <div class="text-center mt-4">
- <small>Don't have an account? <a href="/auth/register" class="text-blue-500">Sign up</a> now!</small><br>
- <small>Forgot password? <a href="/auth/reset-password" class="text-blue-500">Reset Password</a></small>
- </div>
- </form>
- <div class="text-center mt-4">
- <a class="google-button" href="/auth/login/google" role="button">
- <img width="20px" alt="Google sign-in" src="/static/img/login/glogo.webp" />
- Sign in with Google
- </a>
- </div>
- </div>
- <footer class="footer">
- <div class="text-center">
- <small>
- By continuing you agree to our <a href="https://nic.us.kg/terms-of-service/">Terms of Service</a>, <a href="https://nic.us.kg/privacy-policy/">Privacy Policy</a>, and <a href="https://nic.us.kg/acceptable-use-policy/">Acceptable Use Policy</a>.<br>
- If you encounter any problems, please create a new issue: <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose">Issue Report</a><br>
- The 'Sign in with Google' is currently only accessible for accounts registered with Gmail
- </small>
+
+ <footer class="text-center text-xs text-slate-400 space-y-2">
+ <p>
+ By continuing you agree to our
+ <a href="https://nic.us.kg/terms-of-service/" class="text-slate-600 hover:text-slate-900">Terms</a>,
+ <a href="https://nic.us.kg/privacy-policy/" class="text-slate-600 hover:text-slate-900">Privacy</a>, and
+ <a href="https://nic.us.kg/acceptable-use-policy/" class="text-slate-600 hover:text-slate-900">AUP</a>.
+ </p>
+ <p>Issues? <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose" class="text-slate-600 hover:text-slate-900">Report here</a></p>
+ <button type="button" class="inline-flex items-center space-x-2 text-slate-500 hover:text-slate-900" data-cc="show-preferencesModal">
+ <img src="/static/img/privacyoptions.svg" alt="Privacy Icon" class="w-6 h-6">
+ <span>Do Not Share My Personal Information</span>
+ </button>
+ </footer>
</div>
- </footer>
-
- <script>
- function nextStep() {
- const email = document.getElementById('email').value;
- if (email) {
- document.getElementById('step1').classList.add('hidden');
- document.getElementById('loading').style.display = 'block';
- setTimeout(() => {
- document.getElementById('loading').style.display = 'none';
- const step2 = document.getElementById('step2');
- document.getElementById('displayEmail').innerText = email;
- step2.classList.remove('hidden');
- step2.classList.add('opacity-100');
- }, 600); // Simulate a loading time of 0.6 second
- }
- }
+ </main>
+</div>
- function editEmail() {
- document.getElementById('step2').classList.add('hidden');
- document.getElementById('step1').classList.remove('hidden');
- }
+<script>
+function nextStep() {
+ const email = document.getElementById('email').value;
+ if (email) {
+ document.getElementById('step1').classList.add('hidden');
+ const step2 = document.getElementById('step2');
+ document.getElementById('displayEmail').innerText = email;
+ step2.classList.remove('hidden');
+ setTimeout(() => step2.classList.add('opacity-100'), 100);
+ }
+}
+
+function editEmail() {
+ document.getElementById('step2').classList.add('hidden');
+ document.getElementById('step1').classList.remove('hidden');
+}
- document.getElementById('email').addEventListener('keypress', function(event) {
- if (event.key === 'Enter') {
- event.preventDefault();
- nextStep();
- }
- });
- </script>
+document.getElementById('email').addEventListener('keypress', function(event) {
+ if (event.key === 'Enter') {
+ event.preventDefault();
+ nextStep();
+ }
+});
+</script>
</body>
</html>
diff --git a/opensource/frontend/panel.html b/opensource/frontend/panel.html
index f72235a..e9c0bc5 100644
--- a/opensource/frontend/panel.html
+++ b/opensource/frontend/panel.html
@@ -4,46 +4,62 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/jpeg" href="/static/img/logo.jpg">
- <title>DigitalPlat Domain Panel</title>
-
+ <title>DigitalPlat Domain Dashboard</title>
+ {% include "ga.html" %}
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
-
+
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
-
+
<!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #f3f4f6;
+ :root {
+ color-scheme: light;
+ }
+
+ html, body {
+ font-family: 'Inter', sans-serif;
+ background-color: #f8fafc;
display: flex;
- min-height: 100vh;
flex-direction: column;
+ min-height: 100vh;
+ overflow: auto;
+ scrollbar-width: none;
+ color: #0f172a;
+ }
+
+ html::-webkit-scrollbar,
+ body::-webkit-scrollbar {
+ display: none;
}
.sidebar {
- width: 250px;
- background-color: #111827;
- color: #f9fafb;
- padding: 20px;
+ width: 260px;
+ background-color: #ffffff;
+ color: #0f172a;
+ padding: 24px 16px;
position: fixed;
height: 100vh;
transition: width 0.3s, transform 0.3s;
overflow: hidden;
+ border-right: 1px solid #e2e8f0;
+ box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.sidebar.collapsed {
width: 70px;
}
.sidebar a {
- color: #9ca3af;
+ color: #475569;
text-decoration: none;
- padding: 10px;
+ padding: 10px 12px;
display: flex;
align-items: center;
- border-radius: 0.375rem;
+ gap: 12px;
+ border-radius: 0.75rem;
transition: background-color 0.3s, color 0.3s;
+ font-weight: 500;
}
.sidebar a i {
width: 30px;
@@ -52,23 +68,25 @@
.sidebar.collapsed a {
justify-content: center;
}
- .sidebar.collapsed a:hover {
- background-color: #1f2937;
- color: #ffffff;
+ .sidebar a.active {
+ background-color: #f1f5f9;
+ color: #0f172a;
}
.sidebar a:hover {
- background-color: #1f2937;
- color: #ffffff;
+ background-color: #f1f5f9;
+ color: #0f172a;
}
.sidebar .brand-logo {
display: flex;
align-items: center;
margin-bottom: 20px;
- gap: 15px;
+ gap: 12px;
}
.sidebar .brand-logo img {
- border-radius: 50%;
- width: 50px;
+ border-radius: 16px;
+ width: 44px;
+ height: 44px;
+ box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.sidebar.collapsed .brand-logo {
justify-content: center;
@@ -85,52 +103,64 @@
padding: 10px 0;
border: none;
background: none;
- color: #9ca3af;
+ color: #64748b;
cursor: pointer;
transition: color 0.3s;
margin-bottom: 20px;
}
.collapse-btn:hover {
- color: #ffffff;
+ color: #0f172a;
}
.main-content {
- margin-left: 250px;
- padding: 20px;
+ margin-left: 260px;
+ padding: 24px;
flex-grow: 1;
transition: margin-left 0.3s;
+ background-color: #f8fafc;
}
.main-content.expanded {
margin-left: 70px;
}
.navbar {
background-color: #ffffff;
- border-bottom: 1px solid #e5e7eb;
- padding: 10px 20px;
+ border: 1px solid #e2e8f0;
+ padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
+ border-radius: 16px;
+ box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
+ margin-bottom: 20px;
}
.navbar a {
- color: #1f2937;
+ color: #334155;
text-decoration: none;
- margin-right: 20px;
+ margin-right: 18px;
font-weight: 500;
}
+ .navbar a:hover {
+ color: #0f172a;
+ }
.navbar .dropdown-menu {
background-color: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 10px;
}
- .footer {
- background-color: #111827;
- color: #f9fafb;
- padding: 10px 20px;
- text-align: center;
+ .content-wrapper {
+ background: #ffffff;
+ border-radius: 20px;
+ border: 1px solid #e2e8f0;
+ box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
+ overflow: hidden;
+ }
+ .content-wrapper iframe {
+ display: block;
width: 100%;
- position: fixed;
- bottom: 0;
+ border: none;
}
+
+
@media (max-width: 768px) {
.sidebar {
width: 100%;
@@ -169,7 +199,7 @@
transform: translate(-50%, -50%);
border: 4px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
- border-top: 4px solid #3498db;
+ border-top: 4px solid #2563eb;
width: 40px;
height: 40px;
-webkit-animation: spin 1s linear infinite;
@@ -177,6 +207,18 @@
z-index: 9999;
}
+ .loading-bar {
+ position: fixed;
+ top: 0;
+ left: 0;
+ height: 3px;
+ width: 0%;
+ background-color: #2563eb;
+ z-index: 10000;
+ transition: width 0.3s ease;
+ }
+
+
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
@@ -189,19 +231,25 @@
</style>
</head>
<body>
+ <div id="loading-bar" class="loading-bar"></div>
<div class="overlay" onclick="toggleSidebar()"></div>
<div id="loading-spinner" class="loading-spinner"></div>
- <aside class="sidebar">
- <div class="brand-logo">
- <img src="/static/img/logo.jpg" alt="USKG LOGO">
- <span class="text-lg font-semibold">DigitalPlat FreeDomain Panel</span>
- </div>
+ <aside class="sidebar" style="overflow-y: auto;">
+ <div class="user-section">
+ <div class="brand-logo">
+ <img src="/static/img/logo.jpg" alt="USKG LOGO">
+ <div>
+ <span class="text-lg font-semibold block text-slate-900">DigitalPlat</span>
+ <span class="text-xs uppercase tracking-[0.2em] text-slate-500">Domain Dashboard</span>
+ </div>
+ </div>
+ </div>
<button class="collapse-btn" onclick="toggleSidebar()">
<i class="fas fa-bars"></i>
</button>
<nav>
<a href="#" onclick="loadPage(this, '/panel/overview'); return false;" class="active">
- <i class="fas fa-tachometer-alt"></i> <span class="nav-text">Dashboard</span>
+ <i class="fas fa-tachometer-alt"></i> <span class="nav-text">Overview</span>
</a>
<a href="#" onclick="loadPage(this, '/panel/domains'); return false;">
<i class="fas fa-globe"></i> <span class="nav-text">My Domains</span>
@@ -209,6 +257,9 @@
<a href="#" onclick="loadPage(this, '/panel/register'); return false;">
<i class="fas fa-edit"></i> <span class="nav-text">Domain Registration</span>
</a>
+ <a href="#" onclick="loadPage(this, '/panel/redeem_slot'); return false;">
+ <i class="fas fa-key"></i> <span class="nav-text">More slots - Redeem Key</span>
+ </a>
<a href="#" onclick="loadPage(this, '/auth/user/edit'); return false;">
<i class="fas fa-user"></i> <span class="nav-text">My Account</span>
</a>
@@ -224,8 +275,8 @@
<a href="https://forms.gle/ASrRCviu16wSc7bc6">
<i class="fas fa-arrows-alt"></i> <span class="nav-text">Need more domains?</span>
</a>
- <a href="https://nic.us.kg">
- <i class="fas fa-globe"></i> <span class="nav-text">US.KG NIC</span>
+ <a href="https://domain.digitalplat.org">
+ <i class="fas fa-globe"></i> <span class="nav-text">DigitalPlat Domain</span>
</a>
<a href="/logout">
<i class="fas fa-sign-out-alt"></i> <span class="nav-text">Logout</span>
@@ -234,11 +285,16 @@
</aside>
<div class="main-content">
<nav class="navbar">
- <div>
- <a href="/">US.KG</a>
+ <div class="hidden md:flex items-center">
<a href="/panel/domains">Domain List</a>
<a href="/panel/register">Register</a>
+ <a href="/panel/redeem_slot">Redeem Key</a>
<a href="/auth/user/edit">My Account</a>
+ <a href="#" onclick="event.preventDefault(); openPageInNewTab();">Open in New Tab</a>
+ <button type="button" class="inline-flex items-center space-x-2 text-slate-600 hover:text-slate-900" data-cc="show-preferencesModal">
+ <img src="/static/img/privacyoptions.svg" alt="Privacy Icon" class="w-5 h-5">
+ <span class="text-sm font-medium">Do Not Share My Personal Information</span>
+ </button>
</div>
<button class="collapse-btn navbar-toggle-btn md:hidden" onclick="toggleSidebar()">
<i class="fas fa-bars"></i>
@@ -248,11 +304,6 @@
<iframe src="/panel/overview" id="content-frame" frameborder="0" scrolling="auto" style="width: 100%; height: calc(100vh - 60px);" allowfullscreen onload="hideLoadingSpinner()"></iframe>
</div>
</div>
- <footer class="footer">
- <div>
- <b>US.KG Panel</b> Open in <a href="#" onclick="openPageInNewTab()" class="text-blue-500">New Tab</a> <a href="#" onclick="toggleFullscreen()" class="text-blue-500">Fullscreen</a>
- </div>
- </footer>
<script>
function toggleSidebar() {
@@ -271,16 +322,20 @@
}
function loadPage(link, url) {
+
const navLinks = document.querySelectorAll('.sidebar a');
navLinks.forEach(navLink => navLink.classList.remove('active'));
link.classList.add('active');
+
const contentFrame = document.getElementById('content-frame');
showLoadingSpinner();
-
contentFrame.src = url;
- // Hide sidebar and overlay on mobile after selecting a page
+
+ history.pushState({ url: url }, '', '?page=' + encodeURIComponent(url));
+
+
if (window.innerWidth <= 768) {
const sidebar = document.querySelector('.sidebar');
const overlay = document.querySelector('.overlay');
@@ -289,14 +344,23 @@
}
}
+
function showLoadingSpinner() {
- const loadingSpinner = document.getElementById('loading-spinner');
- loadingSpinner.style.display = 'block';
+ document.getElementById('loading-spinner').style.display = 'block';
+ const bar = document.getElementById('loading-bar');
+ bar.style.width = '0%';
+ setTimeout(() => {
+ bar.style.width = '80%';
+ }, 50);
}
function hideLoadingSpinner() {
- const loadingSpinner = document.getElementById('loading-spinner');
- loadingSpinner.style.display = 'none';
+ document.getElementById('loading-spinner').style.display = 'none';
+ const bar = document.getElementById('loading-bar');
+ bar.style.width = '100%';
+ setTimeout(() => {
+ bar.style.width = '0%';
+ }, 500);
}
function openPageInNewTab() {
@@ -335,23 +399,59 @@
document.addEventListener('DOMContentLoaded', function () {
const contentFrame = document.getElementById('content-frame');
+ const params = new URLSearchParams(window.location.search);
+ const initialPage = params.get('page') || '/panel/overview';
+
showLoadingSpinner();
- if (contentFrame) {
- contentFrame.addEventListener('load', function () {
- hideLoadingSpinner();
- });
+ contentFrame.src = initialPage;
+
+ contentFrame.addEventListener('load', function () {
+ hideLoadingSpinner();
+ });
+ });
+
+ window.addEventListener('popstate', function (event) {
+ const url = (event.state && event.state.url) || new URLSearchParams(window.location.search).get('page');
+ if (url) {
+ const contentFrame = document.getElementById('content-frame');
+ showLoadingSpinner();
+ contentFrame.src = url;
}
});
- </script>
- <script>
- window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/insights/script.js"></script>
- <script>
- window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/speed-insights/script.js"></script>
-</body>
-</html>
+ let lastIframePath = null;
+
+ function pollIframeURL() {
+ const iframe = document.getElementById('content-frame');
+
+ try {
+ const currentPath = iframe.contentWindow.location.pathname;
+
+ if (currentPath !== lastIframePath) {
+ lastIframePath = currentPath;
+
+ history.pushState({ url: currentPath }, '', '?page=' + encodeURIComponent(currentPath));
+ }
+ } catch (err) {
+ console.warn('Cannot access iframe URL due to cross-origin:', err);
+ }
+ }
+
+ setInterval(pollIframeURL, 5000);
+
+ </script>
+<!--Start of Tawk.to Script-->
+<script type="text/javascript">
+ var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
+ (function(){
+ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
+ s1.async=true;
+ s1.src='https://embed.tawk.to/685fdc4c056789190faddab3/1iur792r9';
+ s1.charset='UTF-8';
+ s1.setAttribute('crossorigin','*');
+ s0.parentNode.insertBefore(s1,s0);
+ })();
+ </script>
+<!--End of Tawk.to Script-->
+</body>
\ No newline at end of file
diff --git a/opensource/frontend/partials/modern_styles.html b/opensource/frontend/partials/modern_styles.html
new file mode 100644
index 0000000..7a47df6
--- /dev/null
+++ b/opensource/frontend/partials/modern_styles.html
@@ -0,0 +1,98 @@
+<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
+<style>
+ :root {
+ color-scheme: light;
+ }
+ body {
+ font-family: 'Inter', sans-serif;
+ background-color: #f8fafc;
+ color: #0f172a;
+ }
+ .page-shell {
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+ .page-header {
+ background: #ffffff;
+ border-bottom: 1px solid #e2e8f0;
+ box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
+ }
+ .brand-mark {
+ width: 48px;
+ height: 48px;
+ border-radius: 16px;
+ box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
+ object-fit: cover;
+ }
+ .card {
+ background: #ffffff;
+ border-radius: 24px;
+ border: 1px solid #e2e8f0;
+ box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
+ }
+ .card-muted {
+ background: #f8fafc;
+ border-radius: 20px;
+ border: 1px solid #e2e8f0;
+ }
+ .input-field {
+ width: 100%;
+ border-radius: 12px;
+ border: 1px solid #e2e8f0;
+ padding: 0.65rem 0.9rem;
+ font-size: 0.95rem;
+ color: #0f172a;
+ background-color: #ffffff;
+ }
+ .input-field:focus {
+ outline: none;
+ border-color: #94a3b8;
+ box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
+ }
+ .btn-primary {
+ background-color: #0f172a;
+ color: #ffffff;
+ border-radius: 12px;
+ padding: 0.65rem 1.4rem;
+ font-weight: 600;
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+ box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
+ }
+ .btn-primary:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
+ }
+ .btn-outline {
+ border: 1px solid #cbd5e1;
+ color: #1e293b;
+ background: #ffffff;
+ border-radius: 12px;
+ padding: 0.6rem 1.3rem;
+ font-weight: 600;
+ transition: all 0.2s ease;
+ }
+ .btn-outline:hover {
+ border-color: #94a3b8;
+ background: #f8fafc;
+ }
+ .btn-soft {
+ background: #e2e8f0;
+ color: #0f172a;
+ border-radius: 12px;
+ padding: 0.6rem 1.3rem;
+ font-weight: 600;
+ transition: all 0.2s ease;
+ }
+ .btn-soft:hover {
+ background: #cbd5f5;
+ }
+ .badge {
+ display: inline-flex;
+ align-items: center;
+ padding: 0.2rem 0.65rem;
+ border-radius: 9999px;
+ font-size: 0.75rem;
+ font-weight: 600;
+ }
+</style>
diff --git a/opensource/frontend/register.html b/opensource/frontend/register.html
index 57fb55a..404bfa3 100644
--- a/opensource/frontend/register.html
+++ b/opensource/frontend/register.html
@@ -1,161 +1,100 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/jpeg" href="/static/img/logo.jpg">
- <title>DigitalPlat FreeDomain - Register</title>
-
- <!-- Tailwind CSS -->
- <script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <!-- Cloudflare Turnstile -->
- <script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- }
- .container {
- width: 100%;
- max-width: 400px;
- margin: 5% auto;
- padding: 20px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- }
- .header {
- display: flex;
- align-items: center;
- padding: 10px 20px;
- background-color: #ffffff;
- border-radius: 12px 12px 0 0;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- }
- .logo img {
- width: 80px; /* Adjusted size */
- height: auto;
- border-radius: 50%; /* Circular border */
- }
- .title {
- font-size: 1.2rem;
- font-weight: 600;
- margin-left: 20px;
- color: #1a202c;
- }
- .google-button {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- font-weight: 500;
- background-color: #e2e8f0; /* Subtle background */
- padding: 10px 15px;
- border-radius: 8px;
- transition: background-color 0.3s;
- }
- .google-button:hover {
- background-color: #cbd5e0;
- }
- .footer {
- background-color: #1a202c;
- color: #cbd5e0;
- padding: 20px;
- font-size: 14px;
- border-radius: 0 0 12px 12px;
- }
- footer a {
- color: #63b3ed;
- }
- footer a:hover {
- text-decoration: underline;
- }
- </style>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>DigitalPlat FreeDomain - Register</title>
+<link rel="icon" type="image/jpeg" href="/static/img/logo.jpg">
+{% include "ga.html" %}
+<script src="https://cdn.tailwindcss.com"></script>
+{% include "partials/modern_styles.html" %}
+<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>
</head>
-<body>
- <div class="header">
- <div class="logo">
- <img src="/static/img/logo.jpg" alt="DigitalPlat Domain Registry and Management Authority">
- </div>
- <div class="title">DigitalPlat Domain Registry and Management Authority</div>
- </div>
- <div class="container mx-auto px-4">
- <form id="registerForm" action="/auth/register" method="POST">
- <div class="mb-4">
- <label for="username" class="block text-gray-700 text-sm font-bold mb-2">Username</label>
- <input type="text" name="username" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="username" placeholder="Username" required>
- <small id="usernameError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="fullname" class="block text-gray-700 text-sm font-bold mb-2">Legal full name</label>
- <small class="text-gray-600">Once registered, the legal full name cannot be edited! Please ensure it matches the name on the KYC documents you upload after registration, otherwise, KYC verification will fail!</small>
- <input type="text" name="fullname" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="fullname" placeholder="Your Name" required>
- <small id="fullnameError" class="text-red-500"></small>
+<body class="bg-slate-50 text-slate-900">
+<div class="page-shell">
+ <header class="page-header">
+ <div class="max-w-4xl mx-auto px-6 py-6 flex items-center gap-4">
+ <img src="/static/img/logo.jpg" alt="DigitalPlat Logo" class="brand-mark">
+ <div>
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Create an account</p>
+ <h1 class="text-2xl font-semibold">DigitalPlat Domain Registry</h1>
+ <p class="text-sm text-slate-500">Register once and manage all your free domains.</p>
</div>
- <div class="mb-4">
- <label for="email" class="block text-gray-700 text-sm font-bold mb-2">E-Mail</label>
- <small class="text-gray-600"><b>WARNING:</b> Starting from October 22, 2024, if your email domain is on the following list, you can continue using GitHub's free KYC option. The approved domains are:
+ </div>
+ </header>
- gmail.com,
- zoho.com,
- outlook.com,
- yahoo.com,
- yandex.com,
- hotmail.com,
- icloud.com,
- 163.com,
- 126.com,
- qq.com,
- <b>To use our services for free and prevent misuse, please try to use email addresses with these domains.</b>
- </small>
- <input type="email" name="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="email" placeholder="[email protected]" required>
- <small id="emailError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="phone" class="block text-gray-700 text-sm font-bold mb-2">Phone (format: +1-3100000000)</label>
- <small class="text-gray-600">Please make sure your phone number is correct, we may contact you via SMS</small>
- <input type="text" name="phone" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="phone" placeholder="+X-XXXXXXXXXX" required>
- <small id="phoneError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="address" class="block text-gray-700 text-sm font-bold mb-2">Full Address</label>
- <textarea id="address" name="address" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="1000 Santa Monica Blvd, Santa Monica, CA 90401, United States" required></textarea>
- <small id="addressError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="password" class="block text-gray-700 text-sm font-bold mb-2">Password</label>
- <input type="password" name="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline" id="password" placeholder="Password" autocomplete="off" required>
- <small id="passwordHelp" class="form-text text-gray-600">The password must be more than 8 characters long and include uppercase and lowercase letters as well as numbers. It must not include &, *, ', ", <, >, \, /, or spaces.</small>
- </div>
- <div class="mb-4">
- <label for="confirmPassword" class="block text-gray-700 text-sm font-bold mb-2">Confirm Password</label>
- <input type="password" name="confirmPassword" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline" id="confirmPassword" placeholder="Confirm Password" autocomplete="off" required>
- <small id="confirmPasswordError" class="text-red-500"></small>
- </div>
- <!-- Cloudflare Turnstile Google reCAPTCHA -->
- <div class="g-recaptcha mb-4" data-sitekey="{{ sitekey }}"></div>
- <small class="text-gray-600">Please ensure that the information provided is genuine and valid. Each individual/organization is strictly limited to a maximum of one account.</small>
- <div class="operation flex justify-center mt-4">
- <button type="submit" id="registerButton" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" disabled>Register!</button>
+ <main class="flex-1">
+ <div class="max-w-2xl mx-auto px-6 py-10">
+ <div class="card p-8 space-y-8">
+ <div>
+ <h2 class="text-xl font-semibold text-slate-900">Create your free domain account</h2>
+ <p class="text-sm text-slate-500 mt-2">Please ensure all information is genuine. Only one account per person or organization.</p>
+ </div>
+
+ <form id="registerForm" action="/auth/register" method="POST" class="space-y-6">
+ <div class="grid gap-5">
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Username</label>
+ <input type="text" name="username" id="username" placeholder="Username" required class="input-field">
+ <small id="usernameError" class="text-red-500"></small>
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Full Name</label>
+ <p class="text-xs text-slate-500 mb-2">Your full legal name, you can't edit after registration.</p>
+ <input type="text" name="fullname" id="fullname" placeholder="Your Name" required class="input-field">
+ <small id="fullnameError" class="text-red-500"></small>
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Email</label>
+ <input type="email" name="email" id="email" placeholder="[email protected]" required class="input-field">
+ <small id="emailError" class="text-red-500"></small>
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Phone</label>
+ <p class="text-xs text-slate-500 mb-2">Format: +1-3100000000</p>
+ <input type="text" name="phone" id="phone" placeholder="+X-XXXXXXXXXX" required class="input-field">
+ <small id="phoneError" class="text-red-500"></small>
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Full Address</label>
+ <textarea name="address" id="address" placeholder="1000 Santa Monica Blvd, Santa Monica, CA 90401" required class="input-field"></textarea>
+ <small id="addressError" class="text-red-500"></small>
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Password</label>
+ <input type="password" name="password" id="password" placeholder="Password" required class="input-field">
+ <small id="passwordHelp" class="text-slate-500 block mt-2"></small>
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Confirm Password</label>
+ <input type="password" name="confirmPassword" id="confirmPassword" placeholder="Confirm Password" required class="input-field">
+ <small id="confirmPasswordError" class="text-red-500"></small>
+ </div>
+ </div>
+
+ <div class="g-recaptcha mb-2" data-sitekey="{{ sitekey }}"></div>
+
+ <button type="submit" id="registerButton" class="btn-primary w-full disabled:opacity-50 disabled:cursor-not-allowed" disabled>Register</button>
+ </form>
</div>
- </form>
- </div>
- <footer class="footer">
- <div class="text-center">
- <small>
- By continuing you agree to our <a href="https://nic.us.kg/terms-of-service/">Terms of Service</a>, <a href="https://nic.us.kg/privacy-policy/">Privacy Policy</a>, and <a href="https://nic.us.kg/acceptable-use-policy/">Acceptable Use Policy</a>.<br>
- If you encounter any problems, please create a new issue: <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose">Issue Report</a><br>
- </small>
</div>
+ </main>
+
+ <footer class="text-center text-sm text-slate-400 py-8">
+ By continuing you agree to our
+ <a href="https://domain.digitalplat.org/terms-of-service/" class="text-slate-600 hover:text-slate-900">Terms of Service</a>,
+ <a href="https://domain.digitalplat.org/privacy-policy/" class="text-slate-600 hover:text-slate-900">Privacy Policy</a>, and
+ <a href="https://domain.digitalplat.org/acceptable-use-policy/" class="text-slate-600 hover:text-slate-900">Acceptable Use Policy</a>.
+ <br>
+ Problems? <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose" class="text-slate-600 hover:text-slate-900">Submit an issue</a>.
</footer>
+</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
const usernameInput = document.getElementById('username');
@@ -204,13 +143,9 @@
}
// Validate Email
- const emailRegex = /^[^.+]*@gmail\.com$/;
if (emailInput.value.length > 50) {
document.getElementById('emailError').innerText = 'Email is too long.';
isValid = false;
- } else if (emailInput.value.endsWith('@gmail.com') && !emailRegex.test(emailInput.value)) {
- document.getElementById('emailError').innerText = 'Gmail addresses cannot contain "." or "+" symbols before the "@". Please remove these symbols.';
- isValid = false;
} else {
document.getElementById('emailError').innerText = '';
}
@@ -246,11 +181,11 @@
{ regex: /[A-Z]/, message: 'an uppercase letter' },
{ regex: /[a-z]/, message: 'a lowercase letter' },
{ regex: /\d/, message: 'a number' },
- { regex: /^[^\&\*\''\"<>\\\\/\s]*$/, message: 'must not include &, *, \', ", <, >, \, /, or spaces' }
+ { regex: /^[^\&\*''\"<>\\/\s]*$/, message: 'must not include &, *, \' , ", <, >, \\, /, or spaces' }
];
const unmetRequirements = passwordRequirements.filter(req => !req.regex.test(passwordInput.value));
if (unmetRequirements.length === 0) {
- document.getElementById('passwordHelp').innerHTML = '<span class="text-green-500">Password meets all requirements</span>';
+ document.getElementById('passwordHelp').innerHTML = '<span class="text-emerald-500">Password meets all requirements</span>';
} else {
const messages = unmetRequirements.map(req => req.message).join(', ');
document.getElementById('passwordHelp').innerHTML = `<span class="text-red-500">Password ${messages}</span>`;
@@ -274,14 +209,6 @@
}
});
</script>
- <script>
- window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/insights/script.js"></script>
- <script>
- window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/speed-insights/script.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8599203929590914" crossorigin="anonymous"></script>
</body>
</html>
diff --git a/opensource/frontend/reset_password.html b/opensource/frontend/reset_password.html
index 91b1e99..e4e7112 100644
--- a/opensource/frontend/reset_password.html
+++ b/opensource/frontend/reset_password.html
@@ -3,161 +3,88 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>DigitalPlat Domain Registry and Management Authority</title>
-
- <!-- Tailwind CSS -->
+ <title>DigitalPlat Domain Password Reset</title>
+ {% include "ga.html" %}
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <!-- Cloudflare Turnstile -->
+ {% include "partials/modern_styles.html" %}
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- }
- .container {
- width: 100%;
- max-width: 400px;
- margin: 5% auto;
- padding: 20px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- }
- .header {
- display: flex;
- align-items: center;
- padding: 10px 20px;
- background-color: #ffffff;
- border-radius: 12px 12px 0 0;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- }
- .logo img {
- width: 80px; /* Adjusted size */
- height: auto;
- border-radius: 50%; /* Circular border */
- }
- .title {
- font-size: 1.2rem;
- font-weight: 600;
- margin-left: 20px;
- color: #1a202c;
- }
- .google-button {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- font-weight: 500;
- background-color: #e2e8f0; /* Subtle background */
- padding: 10px 15px;
- border-radius: 8px;
- transition: background-color 0.3s;
- }
- .google-button:hover {
- background-color: #cbd5e0;
- }
- .footer {
- background-color: #1a202c;
- color: #cbd5e0;
- padding: 20px;
- font-size: 14px;
- border-radius: 0 0 12px 12px;
- }
- footer a {
- color: #63b3ed;
- }
- footer a:hover {
- text-decoration: underline;
- }
- </style>
</head>
-<body>
- <div class="header">
- <div class="logo">
- <img src="https://nic.us.kg/wp-content/uploads/2023/05/IMG_20230511_165610.jpg" alt="DigitalPlat Domain Registry and Management Authority">
- </div>
- <div class="title">DigitalPlat Domain Registry and Management Authority</div>
- </div>
- <div class="container mx-auto px-4">
- <form action="/auth/reset-password" method="POST">
- <div class="mb-4">
- <label for="email" class="block text-gray-700 text-sm font-bold mb-2">E-Mail</label>
- <input type="email" name="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="email" placeholder="Enter your email" required>
+<body class="bg-slate-50 text-slate-900">
+<div class="page-shell">
+ <main class="flex-1 flex items-center justify-center px-6 py-10">
+ <div class="w-full max-w-md card p-8 space-y-6">
+ <div class="flex items-center space-x-4">
+ <img src="/static/img/logo.jpg" alt="Logo" class="brand-mark">
+ <div>
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Account recovery</p>
+ <h1 class="text-xl font-semibold text-slate-900">Reset password</h1>
+ </div>
</div>
- <div class="mb-4">
- <label for="password" class="block text-gray-700 text-sm font-bold mb-2">New Password</label>
- <input type="password" name="new_password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="new_password" placeholder="Enter your new password" autocomplete="off" required>
- <small id="passwordHelp" class="form-text text-gray-600">The password must be more than 8 characters long and include uppercase and lowercase letters as well as numbers.</small>
- </div>
- <!-- Cloudflare Turnstile -->
- <div class="g-recaptcha mb-4" data-sitekey="{{ sitekey }}"></div>
- <div class="operation flex justify-center mt-4">
- <button type="submit" id="resetButton" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" disabled>Reset</button>
- </div>
- <div class="text-center mt-4">
- <small>Don't have an account? <a href="/auth/register" class="text-blue-500">Sign up</a></small>
- </div>
- </form>
- </div>
- <footer class="footer">
- <div class="text-center">
- <small>
- By continuing you agree to our <a href="https://nic.us.kg/terms-of-service/">Terms of Service</a>, <a href="https://nic.us.kg/privacy-policy/">Privacy Policy</a>, and <a href="https://nic.us.kg/acceptable-use-policy/">Acceptable Use Policy</a>.<br>
- If you encounter any problems, please create a new issue: <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose">Issue Report</a><br>
- The 'Sign in with Google' is currently only accessible for accounts registered with Gmail
- </small>
+
+ <form action="/auth/reset-password" method="POST" class="space-y-6">
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">E-Mail</label>
+ <input type="email" name="email" required class="input-field" placeholder="Enter your email">
+ </div>
+
+ <div>
+ <label class="block text-xs uppercase tracking-wide text-slate-400 mb-2">New Password</label>
+ <input type="password" name="new_password" id="new_password" required autocomplete="off" class="input-field" placeholder="Enter your new password">
+ <p id="passwordHelp" class="text-xs text-slate-500 mt-2">Password must be at least 8 characters and contain uppercase, lowercase and a number.</p>
+ </div>
+
+ <div class="g-recaptcha mb-4" data-sitekey="{{ sitekey }}"></div>
+
+ <button type="submit" id="resetButton" disabled class="btn-primary w-full disabled:opacity-50">Reset Password</button>
+
+ <div class="text-center text-sm text-slate-500">
+ <p>Don't have an account? <a href="/auth/register" class="text-slate-900 font-medium hover:underline">Sign up</a></p>
+ </div>
+ </form>
+
+ <footer class="text-center text-xs text-slate-400 pt-4 border-t border-slate-200">
+ <p>By continuing you agree to our
+ <a href="https://nic.us.kg/terms-of-service/" class="text-slate-600 hover:text-slate-900">Terms</a>,
+ <a href="https://nic.us.kg/privacy-policy/" class="text-slate-600 hover:text-slate-900">Privacy</a>, and
+ <a href="https://nic.us.kg/acceptable-use-policy/" class="text-slate-600 hover:text-slate-900">AUP</a>.</p>
+ <p>Problems? <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose" class="text-slate-600 hover:text-slate-900">Report here</a></p>
+ </footer>
</div>
- </footer>
- <script>
- document.addEventListener('DOMContentLoaded', function () {
- const passwordInput = document.getElementById('new_password');
- const resetButton = document.getElementById('resetButton');
+ </main>
+</div>
- passwordInput.addEventListener('input', validatePassword);
+<script>
+document.addEventListener('DOMContentLoaded', function () {
+ const passwordInput = document.getElementById('new_password');
+ const resetButton = document.getElementById('resetButton');
+ const passwordHelp = document.getElementById('passwordHelp');
- function validatePassword() {
- let isValid = true;
+ passwordInput.addEventListener('input', validatePassword);
- // Validate Password
- const passwordRequirements = [
- { regex: /.{8,}/, message: 'at least 8 characters long' },
- { regex: /[A-Z]/, message: 'an uppercase letter' },
- { regex: /[a-z]/, message: 'a lowercase letter' },
- { regex: /\d/, message: 'a number' }
- ];
- const unmetRequirements = passwordRequirements.filter(req => !req.regex.test(passwordInput.value));
- if (unmetRequirements.length === 0) {
- document.getElementById('passwordHelp').innerHTML = '<span class="text-green-500">Password meets all requirements</span>';
- } else {
- const messages = unmetRequirements.map(req => req.message).join(', ');
- document.getElementById('passwordHelp').innerHTML = `<span class="text-red-500">Password must include: ${messages}</span>`;
- isValid = false;
- }
+ function validatePassword() {
+ let isValid = true;
+ const password = passwordInput.value;
+ const requirements = [
+ { regex: /.{8,}/, message: 'at least 8 characters' },
+ { regex: /[A-Z]/, message: 'an uppercase letter' },
+ { regex: /[a-z]/, message: 'a lowercase letter' },
+ { regex: /\d/, message: 'a number' }
+ ];
- if (passwordInput.value.length > 128) {
- document.getElementById('passwordHelp').innerHTML = '<span class="text-red-500">Password is too long.</span>';
- isValid = false;
- }
+ const failed = requirements.filter(r => !r.regex.test(password));
+ if (password.length > 128) {
+ passwordHelp.innerHTML = '<span class="text-red-500">Password is too long.</span>';
+ isValid = false;
+ } else if (failed.length === 0) {
+ passwordHelp.innerHTML = '<span class="text-emerald-500">Password meets all requirements.</span>';
+ } else {
+ passwordHelp.innerHTML = '<span class="text-red-500">Must include: ' + failed.map(r => r.message).join(', ') + '.</span>';
+ isValid = false;
+ }
- resetButton.disabled = !isValid;
- }
- });
- </script>
- <script>
- window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/insights/script.js"></script>
- <script>
- window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/speed-insights/script.js"></script>
+ resetButton.disabled = !isValid;
+ }
+});
+</script>
</body>
</html>
diff --git a/opensource/frontend/success.html b/opensource/frontend/success.html
index 72b1458..ce25e4b 100644
--- a/opensource/frontend/success.html
+++ b/opensource/frontend/success.html
@@ -4,69 +4,30 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Successful!</title>
-
- <!-- Tailwind CSS -->
+ <title>Success - DigitalPlat</title>
+ {% include "ga.html" %}
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .container {
- width: 100%;
- max-width: 600px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- padding: 20px;
- text-align: center;
- }
- .header__title h1 {
- font-size: 3rem;
- font-weight: 700;
- margin-bottom: 20px;
- }
- .header__text {
- font-size: 1.25rem;
- margin-bottom: 20px;
- }
- .header__button {
- background-color: #1a202c;
- color: #ffffff;
- padding: 10px 20px;
- border-radius: 5px;
- text-decoration: none;
- font-weight: 500;
- transition: background-color 0.3s;
- }
- .header__button:hover {
- background-color: #2d3748;
- }
- </style>
+ {% include "partials/modern_styles.html" %}
</head>
-<body>
- <main class="container">
- <div class="content">
- <div class="header">
- <div class="header__title">
- <h1 class="header__h1">Successful!</h1>
+<body class="bg-slate-50 text-slate-900">
+ <div class="page-shell">
+ <main class="flex-1 flex items-center justify-center px-6 py-12">
+ <div class="card max-w-2xl w-full p-8 text-center space-y-4">
+ <div class="mx-auto text-emerald-500">
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 mx-auto" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
+ </svg>
+ </div>
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Success</p>
+ <h1 class="text-2xl font-semibold text-emerald-600">Success!</h1>
+ <p class="text-slate-600">{{info}}</p>
+ <div>
+ <a class="btn-primary inline-flex" href="javascript:history.back()">Go Back</a>
</div>
- <p class="header__text">{{info}}</p>
- <a class="header__button" href="javascript:history.back()">Back</a>
</div>
- </div>
- </main>
+ </main>
+ </div>
+
<script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-fountain@2/tsparticles.preset.fountain.bundle.min.js"></script>
</body>
</html>
diff --git a/opensource/frontend/usermgr.html b/opensource/frontend/usermgr.html
index 3e3e9ba..7f8d294 100644
--- a/opensource/frontend/usermgr.html
+++ b/opensource/frontend/usermgr.html
@@ -4,139 +4,92 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>US.KG Account Management System</title>
-
- <!-- Tailwind CSS -->
+ {% include "ga.html" %}
<script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <!-- Google reCAPTCHA -->
+ {% include "partials/modern_styles.html" %}
<script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
- .container {
- width: 100%;
- max-width: 400px;
- margin: auto;
- padding: 20px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- transition: all 0.5s ease;
- }
- .header {
- display: flex;
- align-items: center;
- padding: 10px 20px;
- background-color: #ffffff;
- border-radius: 12px 12px 0 0;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- }
- .logo img {
- width: 80px;
- height: auto;
- border-radius: 50%;
- }
- .title {
- font-size: 1.2rem;
- font-weight: 600;
- margin-left: 20px;
- color: #1a202c;
- }
- .footer {
- background-color: #1a202c;
- color: #cbd5e0;
- padding: 20px;
- font-size: 14px;
- border-radius: 0 0 12px 12px;
- margin-top: auto;
- }
- footer a {
- color: #63b3ed;
- }
- footer a:hover {
- text-decoration: underline;
- }
- .loading-animation {
- border: 4px solid #f3f3f3;
- border-top: 4px solid #3498db;
- border-radius: 50%;
- width: 24px;
- height: 24px;
- animation: spin 2s linear infinite;
- margin: 0 auto 20px;
- display: none;
- }
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- </style>
</head>
-<body>
- <div class="container mx-auto px-4">
- <div class="alert alert-light" role="alert">
- <strong>Current full name: </strong> <span>{{fullname}}</span><br>
- <strong>Current username: </strong> <span>{{username}}</span><br>
- <strong>Current E-Mail: </strong> <span>{{email}}</span><br>
- <strong>Current phone: </strong> <span>{{phone}}</span><br>
- <strong>Current address: </strong> <span>{{address}}</span>
- </div>
- <form id="userEditForm" action="/auth/user/edit" method="POST">
- <div class="mb-4">
- <label for="username" class="block text-gray-700 text-sm font-bold mb-2">Username</label>
- <input type="text" name="username" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="username" placeholder="Username" value="{{username}}" required disabled>
- <small id="usernameError" class="text-red-500"></small>
+<body class="bg-slate-50 text-slate-900">
+ <div class="page-shell">
+ <header class="page-header">
+ <div class="max-w-4xl mx-auto px-6 py-6">
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">Account settings</p>
+ <h1 class="text-2xl font-semibold">Manage your profile</h1>
+ <p class="text-sm text-slate-500 mt-2">Review and update your account details.</p>
</div>
- <div class="mb-4">
- <label for="fullname" class="block text-gray-700 text-sm font-bold mb-2">Legal full name</label>
- <input type="text" name="fullname" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="fullname" placeholder="Michael Johnson" value="{{fullname}}" required disabled>
- <small id="fullnameError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="email" class="block text-gray-700 text-sm font-bold mb-2">E-Mail</label>
- <small class="text-gray-600">Using a temporary email may result in the suspension of your account.</small>
- <input type="email" name="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="email" placeholder="[email protected]" value="{{email}}" required>
- </div>
- <div class="mb-4">
- <label for="phone" class="block text-gray-700 text-sm font-bold mb-2">Phone (format: +1-8559805959)</label>
- <input type="text" name="phone" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="phone" placeholder="+1-8559805959" value="{{phone}}" required>
- <small id="phoneError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="address" class="block text-gray-700 text-sm font-bold mb-2">Full Address</label>
- <textarea id="address" name="address" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="1000 Santa Monica Blvd, Santa Monica, CA 90401, United States" required>{{address}}</textarea>
- <small id="addressError" class="text-red-500"></small>
- </div>
- <div class="mb-4">
- <label for="password" class="block text-gray-700 text-sm font-bold mb-2">Password</label>
- <input type="password" name="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline" id="password" placeholder="Password" autocomplete="off" required>
- <small id="passwordHelp" class="form-text text-gray-600">The password must be more than 8 characters long and include uppercase and lowercase letters as well as numbers.</small>
- </div>
- <div class="flex items-center justify-between">
- <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" id="updateButton" disabled>Update</button>
+ </header>
+
+ <main class="flex-1">
+ <div class="max-w-3xl mx-auto px-6 py-10 space-y-6">
+ <div class="card p-6">
+ <h2 class="text-lg font-semibold">Current account details</h2>
+ <dl class="mt-4 space-y-3 text-sm text-slate-600">
+ <div>
+ <dt class="text-slate-400 uppercase tracking-wide text-xs">Full name</dt>
+ <dd class="text-slate-700">{{fullname}}</dd>
+ </div>
+ <div>
+ <dt class="text-slate-400 uppercase tracking-wide text-xs">Username</dt>
+ <dd class="text-slate-700">{{username}}</dd>
+ </div>
+ <div>
+ <dt class="text-slate-400 uppercase tracking-wide text-xs">E-mail</dt>
+ <dd class="text-slate-700">{{email}}</dd>
+ </div>
+ <div>
+ <dt class="text-slate-400 uppercase tracking-wide text-xs">Phone</dt>
+ <dd class="text-slate-700">{{phone}}</dd>
+ </div>
+ <div>
+ <dt class="text-slate-400 uppercase tracking-wide text-xs">Address</dt>
+ <dd class="text-slate-700">{{address}}</dd>
+ </div>
+ </dl>
+ </div>
+
+ <div class="card p-6">
+ <h2 class="text-lg font-semibold">Update account</h2>
+ <p class="text-sm text-slate-500 mt-1">Some fields are locked for security reasons.</p>
+
+ <form id="userEditForm" action="/auth/user/edit" method="POST" class="mt-6 space-y-5">
+ <div>
+ <label for="username" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Username</label>
+ <input type="text" name="username" class="input-field" id="username" placeholder="Username" value="{{username}}" required disabled>
+ <small id="usernameError" class="text-red-500"></small>
+ </div>
+ <div>
+ <label for="fullname" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Legal full name</label>
+ <input type="text" name="fullname" class="input-field" id="fullname" placeholder="Michael Johnson" value="{{fullname}}" required disabled>
+ <small id="fullnameError" class="text-red-500"></small>
+ </div>
+ <div>
+ <label for="email" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">E-Mail</label>
+ <p class="text-xs text-slate-500 mb-2">Using a temporary email may result in the suspension of your account.</p>
+ <input type="email" name="email" class="input-field" id="email" placeholder="[email protected]" value="{{email}}" required>
+ </div>
+ <div>
+ <label for="phone" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Phone (format: +1-8559805959)</label>
+ <input type="text" name="phone" class="input-field" id="phone" placeholder="+1-8559805959" value="{{phone}}" required>
+ <small id="phoneError" class="text-red-500"></small>
+ </div>
+ <div>
+ <label for="address" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Full Address</label>
+ <textarea id="address" name="address" class="input-field" placeholder="1000 Santa Monica Blvd, Santa Monica, CA 90401, United States" required>{{address}}</textarea>
+ <small id="addressError" class="text-red-500"></small>
+ </div>
+ <div>
+ <label for="password" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Password</label>
+ <input type="password" name="password" class="input-field" id="password" placeholder="Password" autocomplete="off" required>
+ <small id="passwordHelp" class="text-xs text-slate-500">The password must be more than 8 characters long and include uppercase and lowercase letters as well as numbers.</small>
+ </div>
+ <div class="flex justify-end">
+ <button type="submit" class="btn-primary" id="updateButton" disabled>Update</button>
+ </div>
+ </form>
+ </div>
</div>
- </form>
+ </main>
</div>
- <footer class="footer">
- <div class="text-center">
- <small>
- By continuing you agree to our <a href="https://nic.us.kg/terms-of-service/">Terms of Service</a>, <a href="https://nic.us.kg/privacy-policy/">Privacy Policy</a>, and <a href="https://nic.us.kg/acceptable-use-policy/">Acceptable Use Policy</a>.<br>
- If you encounter any problems, please create a new issue: <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose" target="_blank">Issue Report</a><br>
- </small>
- </div>
- </footer>
<script>
document.addEventListener('DOMContentLoaded', function () {
const usernameInput = document.getElementById('username');
@@ -198,7 +151,7 @@
];
const unmetRequirements = passwordRequirements.filter(req => !req.regex.test(passwordInput.value));
if (unmetRequirements.length === 0) {
- document.getElementById('passwordHelp').innerHTML = '<span class="text-green-500">Password meets all requirements</span>';
+ document.getElementById('passwordHelp').innerHTML = '<span class="text-emerald-500">Password meets all requirements</span>';
} else {
const messages = unmetRequirements.map(req => req.message).join(', ');
document.getElementById('passwordHelp').innerHTML = `<span class="text-red-500">Password must include: ${messages}</span>`;
diff --git a/opensource/frontend/whois.html b/opensource/frontend/whois.html
index 98c03cb..91e9fe8 100644
--- a/opensource/frontend/whois.html
+++ b/opensource/frontend/whois.html
@@ -1,130 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>US.KG WHOIS Lookup</title>
-
- <!-- Tailwind CSS -->
- <script src="https://cdn.tailwindcss.com"></script>
-
- <!-- Google Fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
-
- <style>
- body {
- font-family: 'Poppins', sans-serif;
- background-color: #edf2f7;
- padding: 0;
- margin: 0;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
- .container {
- width: 100%;
- max-width: 600px;
- margin: auto;
- padding: 20px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
- transition: all 0.5s ease;
- }
- .header {
- display: flex;
- align-items: center;
- padding: 10px 20px;
- background-color: #ffffff;
- border-radius: 12px 12px 0 0;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- }
- .logo {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .logo img {
- width: 80px;
- height: auto;
- border-radius: 50%;
- }
- .title {
- font-size: 1.5rem;
- font-weight: 600;
- color: #1a202c;
- margin-left: 20px;
- }
- .footer {
- background-color: #1a202c;
- color: #cbd5e0;
- padding: 20px;
- font-size: 14px;
- border-radius: 0 0 12px 12px;
- margin-top: auto;
- text-align: center;
- }
- footer a {
- color: #63b3ed;
- }
- footer a:hover {
- text-decoration: underline;
- }
- .input-group {
- display: flex;
- align-items: center;
- margin-bottom: 20px;
- }
- .input-group-prepend {
- background-color: #edf2f7;
- border: 1px solid #cbd5e0;
- padding: 10px;
- border-radius: 0 5px 5px 0;
- color: #4a5568;
- }
- </style>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>DigitalPlat FreeDomain WHOIS Lookup</title>
+{% include "ga.html" %}
+<script src="https://cdn.tailwindcss.com"></script>
+{% include "partials/modern_styles.html" %}
</head>
-<body>
- <nav class="bg-white shadow p-4">
- <div class="container mx-auto">
- <span class="text-lg font-semibold">US.KG WHOIS Lookup</span>
+<body class="bg-slate-50 text-slate-900">
+<div class="page-shell">
+ <header class="page-header">
+ <div class="max-w-4xl mx-auto px-6 py-6">
+ <p class="text-xs uppercase tracking-[0.3em] text-slate-400">WHOIS tools</p>
+ <h1 class="text-2xl font-semibold">WHOIS Lookup</h1>
+ <p class="text-sm text-slate-500 mt-2">Search for domain ownership and registration details.</p>
</div>
- </nav>
- <div class="container">
- <form action="/whois" method="GET">
- <div class="input-group">
- <input type="text" name="name" class="form-input block w-full px-4 py-3 mb-3 leading-tight text-gray-700 border rounded-lg focus:outline-none focus:bg-white" id="name" placeholder="Domain name" required>
- <div class="input-group-prepend">.us.kg</div>
+ </header>
+
+ <main class="flex-1">
+ <div class="max-w-3xl mx-auto px-6 py-10 space-y-6">
+ <div class="card p-6">
+ <form action="/whois" method="GET" class="space-y-5">
+ <div>
+ <label for="name" class="block text-xs uppercase tracking-wide text-slate-400 mb-2">Domain Name</label>
+ <input type="text" id="name" name="name" placeholder="example.us.kg, foo.dpdns.org..." class="input-field" required>
+ </div>
+
+ <div class="flex justify-end">
+ <button type="submit" class="btn-primary">Lookup</button>
+ </div>
+ </form>
</div>
- <div class="flex justify-center">
- <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Lookup</button>
- </div>
- </form>
- </div>
- <div class="container mt-5">
- <div class="row">
- <div class="col">
- <h5 class="text-xl font-semibold">Query WHOIS via command line (CLI)</h5>
- <p class="text-gray-700 mt-3">When querying WHOIS via command line, even though US.KG adheres to the RFC 2782 WHOIS server lookup standard, many clients may not support or accept it. This is because, in most cases, you cannot directly query WHOIS by using 'whois example.us.kg'. We are currently working on or preparing to submit support for WHOIS server lookup to mainstream WHOIS clients (such as RFC 1036 WHOIS clients). Until WHOIS clients directly support it, please search for WHOIS information for US.KG domains by specifying the WHOIS server (for example, in RFC 1036 WHOIS clients, you can search by adding the '-h' parameter to specification the 'whois.us.kg' server, like this: 'whois -h whois.us.kg example.us.kg').</p>
- <p class="mt-3"><code class="bg-gray-100 text-gray-800 px-2 py-1 rounded">whois -h whois.us.kg "domainname"</code></p>
+
+ <div class="card p-6">
+ <h2 class="text-lg font-semibold mb-3">Query WHOIS via Command Line (CLI)</h2>
+ <p class="text-slate-600">
+ Although US.KG follows the RFC 2782 WHOIS server lookup standard, many clients may not yet support it.
+ Queries like <code class="rounded bg-slate-100 px-2 py-1 text-sm">whois example.us.kg</code> may not work directly.
+ </p>
+ <p class="text-slate-600 mt-3">
+ Until mainstream WHOIS clients support this, please manually specify the WHOIS server. For RFC 1036 clients, use the <code class="rounded bg-slate-100 px-2 py-1 text-sm">-h</code> flag like this:
+ </p>
+ <p class="bg-slate-100 text-slate-800 px-3 py-2 rounded-xl mt-3 font-mono text-sm">
+ whois -h whois.digitalplat.org "domainname"
+ </p>
</div>
</div>
- </div>
- <footer class="footer mt-5">
- <small>
- Enter a domain name to query
- <br>
- If you encounter any problems, please create a new issue: <a href="https://github.com/DigitalPlatDev/US.KG-Issues/issues/new/choose" target="_blank">Issue Report</a><br>
- </small>
- </footer>
- <script>
- window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/insights/script.js"></script>
- <script>
- window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
- </script>
- <script defer src="/_vercel/speed-insights/script.js"></script>
+ </main>
+</div>
</body>
</html>
diff --git a/opensource/readme.md b/opensource/readme.md
index 9f45351..653561d 100644
--- a/opensource/readme.md
+++ b/opensource/readme.md
@@ -1,6 +1,12 @@
# DigitalPlat FreeDomain Open Source
-This folder contains portions of the front-end and back-end code we’ve made open-source.
+This folder contains selected parts of our front-end and back-end code that are currently open-sourced.
-DigitalPlat is a nonprofit charitable organization that supports open-source and free software. While we fully embrace the principles of transparency and community collaboration, we’ve taken a cautious approach by not yet fully open-sourcing our back-end code. This decision is based on security considerations and the need to mitigate potential vulnerabilities and hacking risks.
+DigitalPlat is a nonprofit organization dedicated to supporting open-source and free software. We strongly believe in transparency and community collaboration. However, due to limited engineering resources and the lack of comprehensive security audits, our back-end codebase has not yet been fully open-sourced.
+
+At the current stage, fully opening the back-end without sufficient review and maintenance capacity could introduce avoidable security risks. For this reason, we are taking a cautious, phased approach to open-sourcing, prioritizing safety and long-term sustainability.
+
+We plan to gradually open-source more components as audits are completed and additional engineering capacity becomes available. The files in this folder represent the portions of the project that are safe and ready for public release at this time.
+
+DigitalPlat Domain Home Website front-end open-source code is available at:
+ https://github.com/DigitalPlatDev/digitalplat-domain-website
-However, we are committed to gradually open-sourcing more of our codebase over time. This will help us optimize the project and foster greater community involvement. The files in this folder represent the parts of the project that are currently open to the public.
\ No newline at end of file
diff --git a/opensource/static/config/cookieconsent-config.js b/opensource/static/config/cookieconsent-config.js
new file mode 100644
index 0000000..c065e12
--- /dev/null
+++ b/opensource/static/config/cookieconsent-config.js
@@ -0,0 +1,73 @@
+import 'https://cdn.jsdelivr.net/gh/orestbida/[email protected]/dist/cookieconsent.umd.js';
+
+CookieConsent.run({
+ guiOptions: {
+ consentModal: {
+ layout: "bar inline",
+ position: "bottom",
+ equalWeightButtons: true,
+ flipButtons: false
+ },
+ preferencesModal: {
+ layout: "bar",
+ position: "left",
+ equalWeightButtons: true,
+ flipButtons: false
+ }
+ },
+ categories: {
+ necessary: {
+ readOnly: true
+ },
+ functionality: {},
+ analytics: {}
+ },
+ language: {
+ default: "en",
+ translations: {
+ en: {
+ consentModal: {
+ title: "We value your privacy",
+ description: "We use cookies to provide essential website functions, enhance your browsing experience, improve our website and analyze our traffic. By clicking Accept All, you consent to our use of cookies.",
+ acceptAllBtn: "Accept all",
+ acceptNecessaryBtn: "Only allow necessary",
+ showPreferencesBtn: "Manage preferences",
+ footer: "<a href=\"https://digitalplat.org/privacy-policy/\">Privacy Policy</a> <a href=\"https://digitalplat.org/cookie-policy/\">Cookie Policy</a>"
+ },
+ preferencesModal: {
+ title: "Manage Cookie Preferences",
+ acceptAllBtn: "Accept all",
+ acceptNecessaryBtn: "Reject all",
+ savePreferencesBtn: "Save preferences",
+ closeIconLabel: "Close modal",
+ serviceCounterLabel: "Service|Services",
+ sections: [
+ {
+ title: "About Cookies",
+ description: "We use cookies to make our site work properly, provide essential features, personalize your experience, and gather anonymous statistics about website usage."
+ },
+ {
+ title: "Strictly Necessary Cookies <span class=\"pm__badge\">Always Enabled</span>",
+ description: "These cookies are necessary for core functionalities such as domain registration, account login, and security. You cannot disable them.",
+ linkedCategory: "necessary"
+ },
+ {
+ title: "Functionality Cookies",
+ description: "These cookies allow us to remember your preferences and enhance website functionality. Disabling them may impact your experience.",
+ linkedCategory: "functionality"
+ },
+ {
+ title: "Analytics Cookies",
+ description: "Analytics cookies help us understand how visitors interact with our site, so we can improve and offer a better service. Data collected is anonymized and never shared with third parties for advertising.",
+ linkedCategory: "analytics"
+ },
+ {
+ title: "More Information",
+ description: "For any inquiries about our privacy and cookie practices, please refer to our <a href=\"https://digitalplat.org/privacy-policy/\">Privacy Policy</a> or <a href=\"https://digitalplat.org/cookie-policy/\">Cookie Policy</a>."
+ }
+ ]
+ }
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/opensource/static/img/completed.png b/opensource/static/img/completed.png
new file mode 100644
index 0000000..9b29c8f
Binary files /dev/null and b/opensource/static/img/completed.png differ
diff --git a/opensource/static/img/logo.jpg b/opensource/static/img/logo.jpg
new file mode 100644
index 0000000..46db05a
Binary files /dev/null and b/opensource/static/img/logo.jpg differ