1658 lines
47 KiB
HTML
1658 lines
47 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<script>
|
|
console.log("DEBUG: ansible-sandbox.html is being loaded");
|
|
// You can check this in your browser's developer console
|
|
</script>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Argobox | Ansible Sandbox</title>
|
|
|
|
<!-- SEO Meta Tags -->
|
|
<meta name="description" content="Interactive Ansible playbook testing environment. Deploy test configurations and see infrastructure automation in action.">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22256%22 height=%22256%22 viewBox=%220 0 100 100%22><rect width=%22100%22 height=%22100%22 rx=%2220%22 fill=%22%230f172a%22></rect><path fill=%22%233b82f6%22 d=%22M30 40L50 20L70 40L50 60L30 40Z%22></path><path fill=%22%233b82f6%22 d=%22M50 60L70 40L70 70L50 90L30 70L30 40L50 60Z%22 fill-opacity=%220.6%22></path></svg>">
|
|
|
|
<!-- Google Fonts -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
|
|
<!-- FontAwesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
|
|
|
<style>
|
|
:root {
|
|
/* Main Colors */
|
|
--primary-bg: #0f172a;
|
|
--secondary-bg: #1e293b;
|
|
--accent: #3b82f6;
|
|
--accent-darker: #2563eb;
|
|
--accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
|
|
--accent-red: #ef4444;
|
|
--accent-green: #10b981;
|
|
--accent-yellow: #f59e0b;
|
|
--accent-glow: 0 0 15px rgba(59, 130, 246, 0.5);
|
|
|
|
/* Text Colors */
|
|
--text-primary: #e2e8f0;
|
|
--text-secondary: #94a3b8;
|
|
--text-accent: #3b82f6;
|
|
|
|
/* Status Colors */
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--error: #ef4444;
|
|
--info: #0ea5e9;
|
|
|
|
/* UI Elements */
|
|
--border: rgba(71, 85, 105, 0.5);
|
|
--card-bg: rgba(30, 41, 59, 0.8);
|
|
--card-hover-bg: rgba(30, 41, 59, 0.95);
|
|
--card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
|
|
--glass-effect: saturate(180%) blur(10px);
|
|
|
|
/* Animation Timing */
|
|
--transition-fast: 0.2s ease;
|
|
--transition-normal: 0.3s ease;
|
|
--transition-slow: 0.5s ease;
|
|
}
|
|
|
|
/* Reset & Base Styles */
|
|
*, *::before, *::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
background-color: var(--primary-bg);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
min-height: 100vh;
|
|
background-image:
|
|
radial-gradient(circle at 20% 35%, rgba(29, 78, 216, 0.15) 0%, transparent 50%),
|
|
radial-gradient(circle at 75% 60%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
/* Navigation Bar */
|
|
.navbar {
|
|
background-color: rgba(15, 23, 42, 0.9);
|
|
backdrop-filter: var(--glass-effect);
|
|
-webkit-backdrop-filter: var(--glass-effect);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000;
|
|
padding: 1rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.navbar .container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo a {
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.logo-text-glow {
|
|
background: var(--accent-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
|
|
position: relative;
|
|
}
|
|
|
|
.logo-text-glow::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -5px;
|
|
background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 60%);
|
|
z-index: -1;
|
|
filter: blur(5px);
|
|
}
|
|
|
|
.logo-dot-glow {
|
|
color: var(--text-secondary);
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
gap: 2.5rem;
|
|
}
|
|
|
|
.nav-link {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
transition: all var(--transition-normal);
|
|
position: relative;
|
|
}
|
|
|
|
.nav-link::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -5px;
|
|
left: 0;
|
|
width: 0;
|
|
height: 2px;
|
|
background: var(--accent-gradient);
|
|
transition: width var(--transition-normal);
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-link:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-link.active::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.back-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
border: 1px solid rgba(59, 130, 246, 0.3);
|
|
border-radius: 0.5rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.back-link:hover {
|
|
background-color: rgba(59, 130, 246, 0.2);
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.live-indicator {
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: var(--success);
|
|
border-radius: 50%;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.menu-toggle {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Sandbox Specific Styles */
|
|
.sandbox-container {
|
|
padding: 5rem 0 2rem;
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.sandbox-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.sandbox-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.sandbox-title h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sandbox-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.sandbox-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.5rem;
|
|
background-color: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.sandbox-btn:hover {
|
|
background-color: var(--card-hover-bg);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.sandbox-btn i {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-gradient);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
box-shadow: var(--accent-glow);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.sandbox-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.playbook-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
padding-right: 0.5rem;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border) transparent;
|
|
}
|
|
|
|
.playbook-list::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.playbook-list::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.playbook-list::-webkit-scrollbar-thumb {
|
|
background-color: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.playbook-card {
|
|
background-color: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.75rem;
|
|
padding: 1.25rem;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.playbook-card:hover {
|
|
transform: translateY(-3px);
|
|
border-color: var(--accent);
|
|
box-shadow: var(--card-shadow);
|
|
}
|
|
|
|
.playbook-card.active {
|
|
border-color: var(--accent);
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.playbook-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.playbook-title {
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.playbook-tag {
|
|
font-size: 0.75rem;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 9999px;
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.playbook-description {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.playbook-details {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.playbook-detail {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.playbook-detail i {
|
|
font-size: 0.85rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.sandbox-preview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 80vh;
|
|
}
|
|
|
|
.preview-container {
|
|
background-color: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.75rem;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.preview-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.preview-title {
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.preview-tabs {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.preview-tab {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
padding-bottom: 0.25rem;
|
|
border-bottom: 2px solid transparent;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.preview-tab:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.preview-tab.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.preview-content {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.code-editor {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
overflow: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.code-line {
|
|
display: flex;
|
|
}
|
|
|
|
.line-number {
|
|
width: 3rem;
|
|
text-align: right;
|
|
padding-right: 1rem;
|
|
user-select: none;
|
|
color: var(--text-secondary);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.line-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.code-comment {
|
|
color: #6b7280;
|
|
font-style: italic;
|
|
}
|
|
|
|
.code-key {
|
|
color: #93c5fd;
|
|
}
|
|
|
|
.code-value {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.code-string {
|
|
color: #a3be8c;
|
|
}
|
|
|
|
.preview-form {
|
|
padding: 1.5rem;
|
|
overflow: auto;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
background-color: var(--primary-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.5rem;
|
|
color: var(--text-primary);
|
|
font-family: 'Inter', sans-serif;
|
|
font-size: 0.9rem;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.form-select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 1rem center;
|
|
background-size: 1em;
|
|
}
|
|
|
|
.form-text {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.form-check {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.form-check-input {
|
|
margin-right: 0.75rem;
|
|
appearance: none;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
background-color: var(--primary-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.25rem;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
position: relative;
|
|
}
|
|
|
|
.form-check-input:checked {
|
|
background-color: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.form-check-input:checked::after {
|
|
content: '✓';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: white;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.form-check-label {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.terminal {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
padding: 1.5rem;
|
|
background-color: #1a1a1a;
|
|
color: #e2e8f0;
|
|
overflow: auto;
|
|
height: 100%;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.terminal-line {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.terminal-success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.terminal-error {
|
|
color: var(--error);
|
|
}
|
|
|
|
.terminal-warning {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.terminal-command {
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.preview-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.preview-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-ready {
|
|
background-color: var(--info);
|
|
}
|
|
|
|
.status-running {
|
|
background-color: var(--warning);
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
.status-success {
|
|
background-color: var(--success);
|
|
}
|
|
|
|
.status-error {
|
|
background-color: var(--error);
|
|
}
|
|
|
|
.preview-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.vm-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
padding: 1.5rem;
|
|
display: none;
|
|
}
|
|
|
|
.vm-status.active {
|
|
display: flex;
|
|
}
|
|
|
|
.vm-card {
|
|
background-color: rgba(30, 41, 59, 0.5);
|
|
border-radius: 0.5rem;
|
|
padding: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.vm-icon {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
background-color: var(--secondary-bg);
|
|
border-radius: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.vm-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.vm-name {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.vm-details {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.vm-progress {
|
|
flex: 1;
|
|
height: 4px;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.vm-progress-bar {
|
|
height: 100%;
|
|
background-color: var(--accent);
|
|
border-radius: 2px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.vm-state {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.vm-state-provisioning {
|
|
background-color: rgba(245, 158, 11, 0.1);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.vm-state-running {
|
|
background-color: rgba(16, 185, 129, 0.1);
|
|
color: var(--success);
|
|
}
|
|
|
|
.vm-state-stopping {
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
color: var(--error);
|
|
}
|
|
|
|
.time-remaining {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.time-progress {
|
|
width: 100%;
|
|
height: 4px;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.time-progress-bar {
|
|
height: 100%;
|
|
background-color: var(--accent);
|
|
border-radius: 2px;
|
|
transition: width 1s linear;
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background-color: var(--secondary-bg);
|
|
border-top: 1px solid var(--border);
|
|
padding: 3rem 0 1.5rem;
|
|
margin-top: 5rem;
|
|
}
|
|
|
|
.footer-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.footer-logo {
|
|
font-weight: 600;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.footer-links {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.footer-links a {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
transition: color var(--transition-normal);
|
|
}
|
|
|
|
.footer-links a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.footer-social {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.footer-social a {
|
|
color: var(--text-secondary);
|
|
font-size: 1.25rem;
|
|
transition: color var(--transition-normal);
|
|
}
|
|
|
|
.footer-social a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.footer-bottom {
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--border);
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Animation */
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 992px) {
|
|
.sandbox-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.playbook-list {
|
|
max-height: initial;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
}
|
|
|
|
.nav-menu {
|
|
position: fixed;
|
|
top: 75px;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: var(--primary-bg);
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 2rem 0;
|
|
gap: 1.5rem;
|
|
transition: transform var(--transition-normal);
|
|
transform: translateY(-150%);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.nav-menu.show {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.menu-toggle {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sandbox-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.sandbox-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.preview-tabs {
|
|
display: none;
|
|
}
|
|
|
|
.footer-content {
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.footer-links {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 1.5rem;
|
|
row-gap: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Documentation Specific Styles */
|
|
.docs-container {
|
|
display: grid;
|
|
grid-template-columns: 300px 1fr;
|
|
gap: 2rem;
|
|
max-width: 1400px;
|
|
margin: 2rem auto;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
.sidebar {
|
|
position: sticky;
|
|
top: 100px;
|
|
height: calc(100vh - 120px);
|
|
overflow-y: auto;
|
|
background-color: var(--sidebar-bg);
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-header {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.sidebar-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.back-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
transition: color var(--transition-normal);
|
|
}
|
|
|
|
.back-link:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.sidebar-section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.sidebar-section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
list-style: none;
|
|
}
|
|
|
|
.sidebar-nav-item {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.sidebar-nav-link {
|
|
display: block;
|
|
padding: 0.5rem;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
border-radius: 0.375rem;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.sidebar-nav-link:hover,
|
|
.sidebar-nav-link.active {
|
|
color: var(--accent);
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.main-content {
|
|
background-color: var(--card-bg);
|
|
border-radius: 0.75rem;
|
|
padding: 2rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.docs-header {
|
|
margin-bottom: 3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.docs-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
background: var(--accent-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
.docs-subtitle {
|
|
font-size: 1.125rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.docs-section {
|
|
margin-bottom: 4rem;
|
|
}
|
|
|
|
.docs-section-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.docs-subsection {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.docs-subsection-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.docs-text {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1.5rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.docs-list {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1.5rem;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.docs-list li {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.docs-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.docs-table th,
|
|
.docs-table td {
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.docs-table th {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
background-color: rgba(30, 41, 59, 0.5);
|
|
}
|
|
|
|
.docs-table td {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.docs-code {
|
|
background-color: rgba(15, 23, 42, 0.6);
|
|
border-radius: 0.5rem;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.docs-code pre {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.docs-warning,
|
|
.docs-note {
|
|
background-color: rgba(245, 158, 11, 0.1);
|
|
border: 1px solid var(--warning);
|
|
border-radius: 0.5rem;
|
|
padding: 1.25rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.docs-note {
|
|
background-color: rgba(14, 165, 233, 0.1);
|
|
border-color: var(--info);
|
|
}
|
|
|
|
.docs-warning-title,
|
|
.docs-note-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 600;
|
|
color: var(--warning);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.docs-note-title {
|
|
color: var(--info);
|
|
}
|
|
|
|
.docs-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.5rem;
|
|
background: var(--accent-gradient);
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
border-radius: 0.5rem;
|
|
font-weight: 500;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.docs-button:hover {
|
|
box-shadow: var(--accent-glow);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.docs-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
left: -300px;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 300px;
|
|
z-index: 1000;
|
|
transition: left var(--transition-normal);
|
|
}
|
|
|
|
.sidebar.active {
|
|
left: 0;
|
|
}
|
|
|
|
.mobile-menu-toggle {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 50%;
|
|
background: var(--accent-gradient);
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 1001;
|
|
box-shadow: var(--card-shadow);
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.mobile-menu-toggle:hover {
|
|
box-shadow: var(--accent-glow);
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
|
|
/* Sandbox Specific Styles */
|
|
.sandbox-content {
|
|
padding-top: 8rem;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.sandbox-title {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
color: var(--text-primary);
|
|
background: var(--accent-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
.sandbox-description {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 3rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.sandbox-tabs {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.preview-tabs {
|
|
display: flex;
|
|
gap: 2rem;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 0.5rem;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.preview-tab {
|
|
font-size: 1.1rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
position: relative;
|
|
padding: 0.5rem 1rem;
|
|
transition: color var(--transition-normal);
|
|
}
|
|
|
|
.preview-tab::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 0;
|
|
width: 0;
|
|
height: 3px;
|
|
background: var(--accent-gradient);
|
|
transition: width var(--transition-normal);
|
|
}
|
|
|
|
.preview-tab:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.preview-tab.active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.preview-tab.active::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.preview-content {
|
|
background-color: var(--card-bg);
|
|
border-radius: 0.75rem;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
margin-bottom: 2rem;
|
|
box-shadow: var(--card-shadow);
|
|
min-height: 400px;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.tab-content h3 {
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.preview-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-ready {
|
|
background-color: var(--info);
|
|
box-shadow: 0 0 5px var(--info);
|
|
}
|
|
|
|
.status-running {
|
|
background-color: var(--warning);
|
|
box-shadow: 0 0 5px var(--warning);
|
|
animation: pulse 1.5s infinite;
|
|
}
|
|
|
|
.status-success {
|
|
background-color: var(--success);
|
|
box-shadow: 0 0 5px var(--success);
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 0.6;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.time-remaining {
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.time-progress {
|
|
height: 8px;
|
|
background-color: rgba(71, 85, 105, 0.2);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.time-progress-bar {
|
|
height: 100%;
|
|
background: var(--accent-gradient);
|
|
width: 0;
|
|
transition: width 1s ease-in-out;
|
|
}
|
|
|
|
.sandbox-controls {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
border: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-gradient);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
box-shadow: var(--accent-glow);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-outline {
|
|
background-color: transparent;
|
|
border: 1px solid var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Code editor styles */
|
|
.code-editor {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
background-color: rgba(15, 23, 42, 0.3);
|
|
border-radius: 0.5rem;
|
|
padding: 1.5rem;
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Responsive styles */
|
|
@media (max-width: 768px) {
|
|
.sandbox-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.preview-tabs {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.preview-tab {
|
|
font-size: 0.9rem;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.sandbox-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Navigation Bar -->
|
|
<nav class="navbar">
|
|
<div class="container">
|
|
<div class="logo">
|
|
<a href="index.html">
|
|
<span class="logo-text-glow">ArgoBox</span><span class="logo-dot-glow">.com</span>
|
|
</a>
|
|
</div>
|
|
<div class="nav-buttons">
|
|
<a href="index.html" class="back-link">
|
|
<i class="fas fa-arrow-left"></i>
|
|
<span>Back to Home</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="construction-warning">
|
|
<i class="fas fa-hard-hat"></i>
|
|
<div>
|
|
<h3>Under Construction</h3>
|
|
<p>This page is still being developed. Check back soon for updates!</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="sandbox-content">
|
|
<h1 class="sandbox-title">Ansible Sandbox</h1>
|
|
<p class="sandbox-description">Deploy infrastructure with Ansible playbooks in an isolated environment.</p>
|
|
|
|
<div class="sandbox-tabs">
|
|
<div class="preview-tabs">
|
|
<div class="preview-tab active" data-tab="code">Code</div>
|
|
<div class="preview-tab" data-tab="output">Output</div>
|
|
<div class="preview-tab" data-tab="status">Status</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="preview-content">
|
|
<div id="code-tab" class="tab-content active">
|
|
<div class="code-editor">
|
|
<h3>Ansible Playbook Editor</h3>
|
|
<p>Edit your playbook here...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="output-tab" class="tab-content">
|
|
<h3>Deployment Output</h3>
|
|
<p>Output will appear here when you deploy...</p>
|
|
</div>
|
|
|
|
<div id="status-tab" class="tab-content">
|
|
<h3>Deployment Status</h3>
|
|
<div class="preview-status">
|
|
<div class="status-dot status-ready"></div>
|
|
<span>Ready to deploy</span>
|
|
</div>
|
|
<div class="time-remaining">
|
|
<div>Sandbox environment ready</div>
|
|
</div>
|
|
<div class="time-progress">
|
|
<div class="time-progress-bar"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sandbox-controls">
|
|
<button id="deploy-btn" class="btn btn-primary">
|
|
<i class="fas fa-play"></i> Deploy Playbook
|
|
</button>
|
|
<button id="reset-btn" class="btn btn-outline">
|
|
<i class="fas fa-redo"></i> Reset Environment
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="mobile-menu-toggle">
|
|
<i class="fas fa-bars"></i>
|
|
</button>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="footer-content">
|
|
<div class="footer-logo">
|
|
<span class="logo-text-glow">Argobox</span>
|
|
<span class="logo-dot-glow">.com</span>
|
|
</div>
|
|
|
|
<div class="footer-links">
|
|
<a href="index.html">Home</a>
|
|
<a href="index.html#services">Services</a>
|
|
<a href="index.html#lab">Live Lab</a>
|
|
<a href="index.html#projects">Projects</a>
|
|
<a href="index.html#experience">Experience</a>
|
|
<a href="index.html#contact">Contact</a>
|
|
</div>
|
|
|
|
<div class="footer-social">
|
|
<a href="https://linkedin.com/in/danlaforce" target="_blank"><i class="fab fa-linkedin"></i></a>
|
|
<a href="https://github.com/keyargo" target="_blank"><i class="fab fa-github"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer-bottom">
|
|
<p>© <span id="current-year">2025</span> All rights reserved. Inovin LLC</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- JavaScript -->
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
// Get the tabs and tab contents
|
|
const tabs = document.querySelectorAll('.preview-tab');
|
|
const tabContents = document.querySelectorAll('.tab-content');
|
|
|
|
// Tab switching functionality
|
|
tabs.forEach(tab => {
|
|
tab.addEventListener('click', () => {
|
|
const target = tab.getAttribute('data-tab');
|
|
|
|
// Hide all tabs and show the selected one
|
|
tabs.forEach(t => t.classList.remove('active'));
|
|
tabContents.forEach(tc => tc.classList.remove('active'));
|
|
|
|
tab.classList.add('active');
|
|
document.getElementById(`${target}-tab`).classList.add('active');
|
|
});
|
|
});
|
|
|
|
// Deploy button
|
|
const deployBtn = document.getElementById('deploy-btn');
|
|
const resetBtn = document.getElementById('reset-btn');
|
|
const statusIndicator = document.querySelector('.preview-status');
|
|
|
|
if (deployBtn) {
|
|
deployBtn.addEventListener('click', function() {
|
|
// Show the "running" tab
|
|
if (tabs && tabs.length > 0) {
|
|
tabs.forEach(t => t.classList.remove('active'));
|
|
}
|
|
if (tabContents && tabContents.length > 0) {
|
|
tabContents.forEach(tc => tc.classList.remove('active'));
|
|
}
|
|
|
|
const outputTab = document.querySelector('[data-tab="output"]');
|
|
const outputTabContent = document.getElementById('output-tab');
|
|
if (outputTab) outputTab.classList.add('active');
|
|
if (outputTabContent) outputTabContent.classList.add('active');
|
|
|
|
// Update status to "running"
|
|
if (statusIndicator) {
|
|
statusIndicator.innerHTML = '<div class="status-dot status-running"></div><span>Deploying...</span>';
|
|
}
|
|
|
|
// Disable the deploy button while "running"
|
|
deployBtn.disabled = true;
|
|
deployBtn.style.opacity = "0.7";
|
|
deployBtn.style.cursor = "not-allowed";
|
|
|
|
// Simulate a delay for deployment
|
|
setTimeout(function() {
|
|
// Update status to "success"
|
|
if (statusIndicator) {
|
|
statusIndicator.innerHTML = '<div class="status-dot status-success"></div><span>Deployment successful</span>';
|
|
}
|
|
|
|
// Re-enable the deploy button
|
|
deployBtn.disabled = false;
|
|
deployBtn.style.opacity = "1";
|
|
deployBtn.style.cursor = "pointer";
|
|
|
|
// Switch to the VM status tab
|
|
if (tabs && tabs.length > 0) {
|
|
tabs.forEach(t => t.classList.remove('active'));
|
|
}
|
|
if (tabContents && tabContents.length > 0) {
|
|
tabContents.forEach(tc => tc.classList.remove('active'));
|
|
}
|
|
|
|
const statusTab = document.querySelector('[data-tab="status"]');
|
|
const statusTabContent = document.getElementById('status-tab');
|
|
if (statusTab) statusTab.classList.add('active');
|
|
if (statusTabContent) statusTabContent.classList.add('active');
|
|
|
|
// Start the countdown timer simulation
|
|
const timeRemainingDiv = document.querySelector('.time-remaining div');
|
|
const timeProgressBar = document.querySelector('.time-progress-bar');
|
|
|
|
// For demo purposes, we'll just set the initial values
|
|
if (timeRemainingDiv) {
|
|
timeRemainingDiv.textContent = "Sandbox environment active for 15 more minutes";
|
|
}
|
|
if (timeProgressBar) {
|
|
timeProgressBar.style.width = "100%";
|
|
}
|
|
}, 3000); // Simulate 3 second deployment
|
|
});
|
|
}
|
|
|
|
// Reset button
|
|
if (resetBtn) {
|
|
resetBtn.addEventListener('click', function() {
|
|
// Reset status
|
|
if (statusIndicator) {
|
|
statusIndicator.innerHTML = '<div class="status-dot status-ready"></div><span>Ready to deploy</span>';
|
|
}
|
|
|
|
// Switch back to code tab
|
|
if (tabs && tabs.length > 0) {
|
|
tabs.forEach(t => t.classList.remove('active'));
|
|
}
|
|
if (tabContents && tabContents.length > 0) {
|
|
tabContents.forEach(tc => tc.classList.remove('active'));
|
|
}
|
|
|
|
const codeTab = document.querySelector('[data-tab="code"]');
|
|
const codeTabContent = document.getElementById('code-tab');
|
|
if (codeTab) codeTab.classList.add('active');
|
|
if (codeTabContent) codeTabContent.classList.add('active');
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |