Welcome
+Please select a template from the top-right menu to begin.
+diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..d6e6929 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,67 @@ +body { + font-family: 'Inter', sans-serif; + background-color: #F8F9FA; +} + +.main-container { + display: flex; + padding-top: 56px; /* Height of navbar */ + height: 100vh; +} + +.sidebar { + width: 280px; + flex-shrink: 0; + transition: width 0.3s ease; +} + +.main-content { + flex-grow: 1; + overflow-y: auto; +} + +.navbar-brand { + letter-spacing: -0.5px; +} + +.btn { + border-radius: 0.375rem; + font-weight: 500; + padding: 0.5rem 1rem; +} + +.btn-primary { + background: linear-gradient(145deg, #0D6EFD, #0A58CA); + border: none; + transition: transform 0.2s ease; +} + +.btn-primary:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +.content-placeholder { + border: 2px dashed #e0e0e0; +} + +.sidebar .list-group-item { + background-color: transparent; + border: none; + font-weight: 500; + color: #495057; + padding: 0.75rem 0; +} + +.sidebar .list-group-item i { + margin-right: 10px; + color: #6C757D; +} + +.sidebar .list-group-item:hover { + color: #0D6EFD; +} + +.sidebar .list-group-item:hover i { + color: #0D6EFD; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..1704573 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,69 @@ +document.addEventListener('DOMContentLoaded', function () { + const templates = { + 'Kotlin': { + name: 'Kotlin App', + tools: [ + { name: 'Project', icon: 'bi-folder' }, + { name: 'Dependencies', icon: 'bi-puzzle' }, + { name: 'Build Variants', icon: 'bi-toggles' }, + { name: 'Signing', icon: 'bi-pen' } + ] + }, + 'Java': { + name: 'Java App', + tools: [ + { name: 'Project', icon: 'bi-folder' }, + { name: 'Dependencies', icon: 'bi-puzzle' }, + { name: 'Manifest', icon: 'bi-file-earmark-code' }, + { name: 'Build Config', icon: 'bi-gear' } + ] + }, + 'Empty': { + name: 'Empty Activity', + tools: [ + { name: 'Layout', icon: 'bi-layout-split' }, + { name: 'Code', icon: 'bi-file-code' }, + { name: 'Resources', icon: 'bi-archive' } + ] + } + }; + + const templateLinks = document.querySelectorAll('.template-select'); + const toolsList = document.getElementById('tools-list'); + const projectTitle = document.getElementById('project-title'); + const contentPlaceholder = document.querySelector('.content-placeholder'); + const syncBtn = document.getElementById('sync-btn'); + + templateLinks.forEach(link => { + link.addEventListener('click', function (e) { + e.preventDefault(); + const templateKey = this.getAttribute('data-template'); + const selectedTemplate = templates[templateKey]; + + if (selectedTemplate) { + // Update project title + projectTitle.textContent = selectedTemplate.name; + + // Update tools sidebar + toolsList.innerHTML = ''; // Clear existing tools + selectedTemplate.tools.forEach(tool => { + const toolItem = document.createElement('a'); + toolItem.href = '#'; + toolItem.className = 'list-group-item list-group-item-action'; + toolItem.innerHTML = ` ${tool.name}`; + toolsList.appendChild(toolItem); + }); + + // Update main content placeholder + contentPlaceholder.innerHTML = ` + +
Template ${selectedTemplate.name} loaded.
+You can now sync your project.
+ `; + + // Enable Sync button + syncBtn.disabled = false; + } + }); + }); +}); diff --git a/index.php b/index.php index 7205f3d..134ae11 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,83 @@ - - + - - -= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.
-This page will update automatically as the plan is implemented.
-Runtime: PHP = htmlspecialchars($phpVersion) ?> — UTC = htmlspecialchars($now) ?>
Please select a template from the top-right menu to begin.
+