Polish AnchorHost.eu neobrutalist interface

This commit is contained in:
wfalkowski committed 2026-10-18 20:07:15 +00:00
1 parent 6d1ee3c128
commit bc4542d0fb
25 files changed
+1488 -2854

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ const AdminPage = () => {
];
return (
<div className="flex h-screen overflow-hidden bg-dash-surface font-sans selection:bg-brightRed/30 text-dash-textMuted antialiased">
<div className="admin-app flex h-screen overflow-hidden bg-dash-surface font-sans selection:bg-primary/30 text-dash-textMuted antialiased">
{/* Sidebar */}
<aside
className={`fixed inset-y-0 left-0 z-50 w-72 transform transition-transform duration-300 ease-in-out md:relative md:translate-x-0 border-r border-dash-border bg-dash-surfaceElevated/50 backdrop-blur-md pt-[env(safe-area-inset-top,0px)] ${
+55 -80
View File
@@ -1855,10 +1855,8 @@ const handleWebSocketMessage = useCallback((data) => {
const tooltipContent = isVisible ? (
<div
className="fixed w-72 p-4 rounded-lg border text-sm z-[9999] shadow-lg"
className="ah-tooltip ah-tooltip-detail fixed w-72 max-w-[calc(100vw-2rem)] p-4 text-sm z-[9999]"
style={{
backgroundColor: colors.backgroundSecondary, borderColor: colors.blue,
color: colors.foreground,
top: `${position.top}px`,
left: `${position.left}px`,
transform: 'translate(-50%, calc(-100% - 8px))'
@@ -1866,9 +1864,9 @@ const handleWebSocketMessage = useCallback((data) => {
onMouseEnter={handleTooltipMouseEnter}
onMouseLeave={handleTooltipMouseLeave}
>
<div className="font-semibold mb-2 text-base" style={{ color: colors.blue }}>{portTooltip.name}</div>
<div className="mb-3">{portTooltip.description}</div>
<div className="font-mono text-sm p-2 rounded" style={{ backgroundColor: colors.brightBlack, color: colors.brightWhite }}>{portTooltip.connection}</div>
<div className="ah-tooltip-heading">{portTooltip.name}</div>
<div className="ah-tooltip-description">{portTooltip.description}</div>
<div className="ah-tooltip-code">{portTooltip.connection}</div>
</div>
) : null;
@@ -1887,7 +1885,7 @@ const handleWebSocketMessage = useCallback((data) => {
);
};
// Modern Server Card Component
// Server tiles keep the name and status in separate columns so long names cannot hide state.
const ServerCard = ({ server }) => {
const statusInfo = getServerStatusInfo(server.status);
const serverTypeIcons = {
@@ -1949,116 +1947,93 @@ const handleWebSocketMessage = useCallback((data) => {
return (
<div
className="group relative rounded-3xl border transition-all duration-500 hover:scale-[1.02] hover:-translate-y-1 overflow-hidden h-full bg-brightBlack/20 backdrop-blur-md shadow-2xl shadow-black/20"
className="ah-server-card relative h-full"
style={{
borderColor: `${serverColor}25`,
'--server-accent': serverColor,
}}
>
{/* Hover Glow */}
<div className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"
style={{ background: `radial-gradient(circle at top right, ${serverColor}10 0%, transparent 60%)` }} />
<div className="p-0 h-full flex flex-col relative z-10">
<div className="p-6 border-b border-white/5 bg-white/[0.01]">
<div className="flex justify-between items-start">
<div className="flex items-center space-x-4">
<div className="p-3.5 rounded-2xl shadow-lg border transition-transform duration-500 group-hover:rotate-3"
style={{ backgroundColor: `${serverColor}15`, borderColor: `${serverColor}30` }}>
<ServerIcon className="w-6 h-6" style={{ color: serverColor }} />
<div className="ah-server-card-content">
<div className="ah-server-card-header">
<div className="ah-server-card-identity">
<div className="ah-server-type-icon" aria-hidden="true">
<ServerIcon className="w-5 h-5" style={{ color: serverColor }} />
</div>
<div className="min-w-0">
<div className="ah-server-card-heading">
<div className="flex items-center gap-2 flex-wrap">
<h3 className="text-xl font-black tracking-tight truncate" style={{ color: colors.brightWhite }}>{server.name}</h3>
<h3 className="ah-server-name" title={server.name}>{server.name}</h3>
{isDemo && (
<span className="px-2 py-0.5 rounded-full text-[9px] font-black uppercase tracking-widest border border-yellow-500/30"
style={{ backgroundColor: `${colors.brightYellow}15`, color: colors.brightYellow }}>
<span className="ah-server-demo-tag">
DEMO
</span>
)}
</div>
<p className="text-[10px] font-black uppercase tracking-widest opacity-40 mt-1" style={{ color: colors.foreground }}>
<p className="ah-server-type-label">
{isDatabase ? `${dbType} db` : `${server.type} node`}
</p>
{isDemo && timeRemaining && (
<div className="flex items-center gap-1.5 mt-2 px-2 py-1 rounded-lg bg-yellow-500/10 border border-yellow-500/20 w-fit">
<div className="ah-server-demo-time">
<Clock className="w-3 h-3" style={{ color: colors.brightYellow }} />
<p className="text-[10px] font-black tracking-tighter" style={{ color: colors.brightYellow }}>
<p>
{timeRemaining === 'Expired' ? 'EXPIRED' : timeRemaining}
</p>
</div>
)}
</div>
</div>
<div className="flex flex-col items-end gap-2">
<span
className="px-3 py-1.5 rounded-full text-[10px] font-black uppercase tracking-widest border"
<div className="ah-server-status"
aria-label={`Server status: ${statusInfo.label}`}
style={{
backgroundColor: `${statusInfo.color}15`,
borderColor: `${statusInfo.color}30`,
borderColor: statusInfo.color,
color: statusInfo.color,
boxShadow: `0 0 15px ${statusInfo.color}10`
}}
>
{statusInfo.label}
</span>
</div>
</div>
</div>
<div className="p-6 flex-1 bg-gradient-to-b from-transparent to-black/20">
<div className="grid grid-cols-2 gap-4 text-sm">
<div className="p-4 rounded-2xl border border-white/5 bg-black/40 shadow-inner group/stat hover:border-primary/30 transition-all duration-300">
<div className="flex items-center gap-2 mb-2">
<Cpu className="w-3.5 h-3.5 opacity-40 transition-all" />
<span className="text-[10px] font-black uppercase tracking-widest opacity-30">Compute</span>
<div className="ah-server-resource-grid">
<div className="ah-server-resource">
<div className="ah-server-resource-label">
<Cpu className="w-4 h-4" aria-hidden="true" />
<span>CPU</span>
</div>
<p className="font-black text-lg tracking-tight truncate" style={{ color: colors.brightWhite }}>{server.cpu}</p>
<p>{server.cpu}</p>
</div>
<div className="p-4 rounded-2xl border border-white/5 bg-black/40 shadow-inner group/stat hover:border-primary/30 transition-all duration-300">
<div className="flex items-center gap-2 mb-2">
<MemoryStick className="w-3.5 h-3.5 opacity-40 transition-all" />
<span className="text-[10px] font-black uppercase tracking-widest opacity-30">Memory</span>
<div className="ah-server-resource">
<div className="ah-server-resource-label">
<MemoryStick className="w-4 h-4" aria-hidden="true" />
<span>Memory</span>
</div>
<p className="font-black text-lg tracking-tight truncate" style={{ color: colors.brightWhite }}>{server.ram}</p>
<p>{server.ram}</p>
</div>
<div className="p-4 rounded-2xl border border-white/5 bg-black/40 shadow-inner group/stat hover:border-primary/30 transition-all duration-300">
<div className="flex items-center gap-2 mb-2">
<HardDrive className="w-3.5 h-3.5 opacity-40 transition-all" />
<span className="text-[10px] font-black uppercase tracking-widest opacity-30">Storage</span>
<div className="ah-server-resource">
<div className="ah-server-resource-label">
<HardDrive className="w-4 h-4" aria-hidden="true" />
<span>Storage</span>
</div>
<p className="font-black text-lg tracking-tight truncate" style={{ color: colors.brightWhite }}>{server.storage}</p>
<p>{server.storage}</p>
</div>
<div className="p-4 rounded-2xl border border-white/5 bg-black/40 shadow-inner group/stat transition-all duration-500 hover:border-primary/60 relative overflow-hidden cursor-pointer"
onClick={() => setActiveTab('store')}>
<div className="transition-all duration-500 group-hover/stat:opacity-0 group-hover/stat:scale-95 group-hover/stat:-translate-y-2">
<div className="flex items-center gap-2 mb-2">
<Coins className="w-3.5 h-3.5 opacity-40 transition-all" />
<span className="text-[10px] font-black uppercase tracking-widest opacity-30">Monthly Cost</span>
<div className="ah-server-resource ah-server-cost">
<div className="ah-server-resource-label">
<Coins className="w-4 h-4" aria-hidden="true" />
<span>Monthly cost</span>
</div>
<p className="font-black text-lg tracking-tight truncate" style={{ color: colors.brightWhite }}>
<p className="ah-server-cost-value">
{isDemo ? 'FREE' : `${calculateCurrencyValue(serverMonthlyCost)} ${getCurrencySymbol()}`}
</p>
</div>
<div className="absolute inset-0 p-4 flex flex-col items-center justify-center transition-all duration-500 opacity-0 scale-110 translate-y-2 group-hover/stat:opacity-100 group-hover/stat:scale-100 group-hover/stat:translate-y-0 bg-primary/10">
<p className="text-[10px] font-black uppercase tracking-widest text-primary mb-1">Low Balance?</p>
<div className="flex items-center gap-1 text-[10px] font-bold text-white uppercase tracking-tighter">
<span>Refill Credits</span>
<ArrowRight className="w-3 h-3" />
</div>
</div>
</div>
</div>
</div>
<div className="p-6 border-t border-white/5 flex gap-3 bg-black/40">
<div className="ah-server-card-actions">
{isDemo && user?.role !== 'admin' ? (
<ActionButton
variant="primary"
onClick={() => handleConvertDemoToPaid(server.id)}
className="flex-1 !min-h-0 !py-3 shadow-xl shadow-yellow-500/10"
className="ah-server-action-button flex-1 !min-h-0 !py-3"
style={{ backgroundColor: colors.brightYellow, borderColor: colors.brightYellow, color: colors.black }}
>
<Coins className="w-4 h-4" />
@@ -2073,7 +2048,7 @@ const handleWebSocketMessage = useCallback((data) => {
setActiveServerDetailTab('overview');
fetchServerLogs(server.id);
}}
className="flex-1 !min-h-0 !py-3 hover:border-primary/40"
className="ah-server-action-button flex-1 !min-h-0 !py-3"
>
<Terminal className="w-4 h-4" />
<span className="font-black uppercase tracking-widest text-[10px]">Console</span>
@@ -2083,7 +2058,7 @@ const handleWebSocketMessage = useCallback((data) => {
<ActionButton
variant="warning"
onClick={() => handleConvertDemoToPaid(server.id)}
className="aspect-square !p-0 !min-w-[48px]"
className="ah-server-action-button aspect-square !p-0 !min-w-[48px]"
title="Convert demo to paid"
>
<Coins className="w-4 h-4 text-yellow-400" />
@@ -2094,7 +2069,7 @@ const handleWebSocketMessage = useCallback((data) => {
<ActionButton
variant="danger"
onClick={() => handleServerAction(server.id, 'stop')}
className="aspect-square !p-0 !min-w-[48px]"
className="ah-server-action-button aspect-square !p-0 !min-w-[48px]"
>
<Square className="w-4 h-4 fill-current" />
</ActionButton>
@@ -2102,7 +2077,7 @@ const handleWebSocketMessage = useCallback((data) => {
<ActionButton
variant="success"
onClick={() => handleServerAction(server.id, 'start')}
className="aspect-square !p-0 !min-w-[48px]"
className="ah-server-action-button aspect-square !p-0 !min-w-[48px]"
>
<Play className="w-4 h-4 fill-current" />
</ActionButton>
@@ -2133,7 +2108,7 @@ const handleWebSocketMessage = useCallback((data) => {
return (
<div
className="flex h-screen overflow-hidden bg-dash-surface font-sans selection:bg-primary/30 text-dash-text antialiased"
className="dashboard-app flex h-screen overflow-hidden bg-dash-surface font-sans selection:bg-primary/30 text-dash-text antialiased"
>
<aside
className={`fixed inset-y-0 left-0 z-50 w-72 transform transition-all duration-300 ease-in-out md:relative md:translate-x-0 border-r border-dash-border bg-dash-surfaceElevated/50 backdrop-blur-xl pt-[env(safe-area-inset-top,0px)] ${
@@ -2573,7 +2548,7 @@ const handleWebSocketMessage = useCallback((data) => {
<div className="rounded-lg border border-dash-border bg-brightBlack/40 px-3 py-2.5 text-sm">
{user?.google_id ? (
<p className="text-dash-textMuted">
No AnchorHost password — you sign in with Google.
No AnchorHost.eu password — you sign in with Google.
</p>
) : (
<>
@@ -2589,7 +2564,7 @@ const handleWebSocketMessage = useCallback((data) => {
<UnifiedTooltip
content={
user?.google_id
? 'Google sign-in accounts do not use an AnchorHost password. Manage security in Google.'
? 'Google sign-in accounts do not use an AnchorHost.eu password. Manage security in Google.'
: 'Choose a new password. You will need your current password to confirm.'
}
multiline
@@ -3605,7 +3580,7 @@ const handleWebSocketMessage = useCallback((data) => {
<div className="px-5 sm:px-6 pb-6 border-t border-white/5 animate-in slide-in-from-top-2 duration-200">
<p className="text-sm leading-relaxed opacity-60 mb-6 mt-5 max-w-3xl">
Your server listens on an <span className="text-white font-semibold">internal port</span> inside its container.
AnchorHost maps it to a unique <span className="text-white font-semibold">external port</span> on our public IP so people on the internet can reach it — without exposing your server directly.
AnchorHost.eu maps it to a unique <span className="text-white font-semibold">external port</span> on our public IP so people on the internet can reach it — without exposing your server directly.
</p>
<div className="flex flex-col lg:flex-row items-stretch justify-center gap-3 lg:gap-4">
<div className="flex-1 p-5 rounded-2xl border text-center" style={{ backgroundColor: colors.brightBlack, borderColor: colors.brightBlack }}>
@@ -3617,7 +3592,7 @@ const handleWebSocketMessage = useCallback((data) => {
<ArrowRight className="w-5 h-5 text-primary rotate-90 lg:rotate-0 shrink-0 opacity-60" />
</div>
<div className="flex-1 p-5 rounded-2xl border text-center" style={{ backgroundColor: `${colors.primary}10`, borderColor: `${colors.primary}25` }}>
<p className="text-[10px] font-black uppercase tracking-widest text-primary mb-3">AnchorHost gateway</p>
<p className="text-[10px] font-black uppercase tracking-widest text-primary mb-3">AnchorHost.eu gateway</p>
<NetworkIcon className="w-6 h-6 mx-auto text-primary mb-1" />
<p className="text-[10px] opacity-50 mt-2 leading-relaxed">Secure NodePort + firewall</p>
</div>
@@ -3678,7 +3653,7 @@ const handleWebSocketMessage = useCallback((data) => {
icon: Shield,
iconColor: colors.brightGreen,
title: 'Firewall opens automatically',
body: 'When you expose a port, AnchorHost opens it on the edge firewall in real time — no manual rules needed.',
body: 'When you expose a port, AnchorHost.eu opens it on the edge firewall in real time — no manual rules needed.',
},
{
icon: Lock,
@@ -3875,7 +3850,7 @@ const handleWebSocketMessage = useCallback((data) => {
<div className="p-6 sm:p-8 rounded-2xl border-2 border-dashed flex flex-col items-center justify-center space-y-5 w-full" style={{ borderColor: `${colors.primary}25`, backgroundColor: `${colors.primary}05` }}>
<div className="text-center">
<h5 className="text-sm font-black uppercase tracking-[0.2em] mb-2" style={{ color: colors.primary }}>Expose New Port</h5>
<p className="text-xs opacity-45 font-medium max-w-md">Enter the port your app listens on inside the server. AnchorHost assigns a public external port automatically.</p>
<p className="text-xs opacity-45 font-medium max-w-md">Enter the port your app listens on inside the server. AnchorHost.eu assigns a public external port automatically.</p>
</div>
<form
onSubmit={(e) => { e.preventDefault(); submitNetworkExposePort(); }}
+11 -11
View File
@@ -45,7 +45,7 @@ function DocumentationPage() {
title: 'Creating Your Account',
content: `# Creating Your Account
Creating an account on AnchorHost gives you access to our Kubernetes-based cloud hosting platform.
Creating an account on AnchorHost.eu gives you access to our Kubernetes-based cloud hosting platform.
## Step 1: Registration
Navigate to AnchorHost.eu and click the Register button. You can also sign up using Google or Apple for a faster experience.
@@ -69,7 +69,7 @@ When you click "Create Account":
title: 'Authentication and Security',
content: `# Authentication and Security
AnchorHost utilizes a hybrid approach of REST and WebSockets for secure, real-time management.
AnchorHost.eu utilizes a hybrid approach of REST and WebSockets for secure, real-time management.
## Authentication Flow
1. Credentials are verified via secure hash comparison.
@@ -112,7 +112,7 @@ Think of our main server as a **Large Apartment Building**.
**Without the Apartment Number (Port), you are just standing at the front door of a building with 10,000 people. You will never find your room!**
## The Format
When connecting to anything on AnchorHost, you will almost always use this format:
When connecting to anything on AnchorHost.eu, you will almost always use this format:
\`85.237.179.121:PORT\`
> **Idiot-Proof Tip**: Look at your Server Card in the Dashboard. The number after the colon (\`:\`) is your unique Port. You **MUST** include it.`
@@ -258,7 +258,7 @@ Imagine a large apartment building. The building itself is the physical server.
- You have your own kitchen and bathroom (dedicated resources like CPU and RAM).
- What you do in your apartment doesn't affect your neighbors, and vice-versa.
On AnchorHost, our VPS instances are powered by **KubeVirt**, giving you a real virtual machine with its own kernel, allowing you to install any OS or software you need with full root access.`
On AnchorHost.eu, our VPS instances are powered by **KubeVirt**, giving you a real virtual machine with its own kernel, allowing you to install any OS or software you need with full root access.`
},
{
id: 'server-types',
@@ -290,7 +290,7 @@ Managed containers for application stacks.
title: 'How Billing Works',
content: `# How Billing Works
AnchorHost operates on a transparent **pre-paid credit system**. There are no hidden fees or surprise invoices.
AnchorHost.eu operates on a transparent **pre-paid credit system**. There are no hidden fees or surprise invoices.
## Credits and Value
- **100 credits = 1.00 EUR**.
@@ -337,7 +337,7 @@ If you wish to host **Minecraft Bedrock** (for Console, Mobile, or Windows 10 Ed
title: 'Installing and Managing Minecraft',
content: `# Minecraft Server Management
AnchorHost provides a specialized environment for Minecraft servers using high-performance containers.
AnchorHost.eu provides a specialized environment for Minecraft servers using high-performance containers.
## Installation
1. Go to **Create Server**.
@@ -479,7 +479,7 @@ We provide an integrated **Plugin Store** powered by the Modrinth API.
title: 'Network Architecture',
content: `# Network Architecture
All servers deployed on AnchorHost share a high-performance static IP but utilize unique entry points.
All servers deployed on AnchorHost.eu share a high-performance static IP but utilize unique entry points.
## External Connectivity
- **Global IP**: \`85.237.179.121\`
@@ -607,7 +607,7 @@ Managing the state of your Virtual Machine is done directly through the dashboar
title: 'Scaling Resources',
content: `# Scaling Resources
AnchorHost allows you to adjust your VPS specifications as your needs grow.
AnchorHost.eu allows you to adjust your VPS specifications as your needs grow.
## CPU and RAM
You can increase or decrease your allocated CPU cores and RAM from the **Settings** tab.
@@ -673,7 +673,7 @@ passwd
title: 'Getting Started with Databases',
content: `# Managed Database Hosting
AnchorHost provides pre-configured database containers for rapid development.
AnchorHost.eu provides pre-configured database containers for rapid development.
## Supported Engines
- **MySQL**: The world's most popular open-source database.
@@ -754,7 +754,7 @@ Use these templates to connect your applications. Replace \`IP\`, \`PORT\`, and
title: 'Managing Subdomains',
content: `# Managing Your Subdomains
Every user on AnchorHost has their own personal network space based on their username.
Every user on AnchorHost.eu has their own personal network space based on their username.
## How to create a Subdomain
1. Go to the **Domains** tab.
@@ -775,7 +775,7 @@ Once a domain is created, you can "point" it to one of your active servers.
If you see a warning saying **"No NS records found for child domain"** or **"DNSSEC configuration issues"**, don't panic!
## Why is this happening?
AnchorHost uses high-security DNSSEC to protect your subdomains from being hijacked. For this to work, our main system needs to confirm that your specific "child" space is ready.
AnchorHost.eu uses high-security DNSSEC to protect your subdomains from being hijacked. For this to work, our main system needs to confirm that your specific "child" space is ready.
## How to Fix
Usually, this is handled automatically within 5-10 minutes of creating your account. If the warning persists:
+351 -1965
View File
File diff suppressed because it is too large. Load diff