diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..d691591 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,72 @@ +body { + background-color: #F4F7F6; + font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + color: #333; +} + +.sidebar { + position: fixed; + top: 0; + left: 0; + height: 100%; + width: 250px; + background-color: #fff; + padding: 1.5rem; + box-shadow: 0 0 2rem rgba(0, 0, 0, 0.05); +} + +.sidebar h3 { + font-weight: 700; + margin-bottom: 2rem; + background: linear-gradient(45deg, #4A90E2, #50E3C2); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.sidebar .nav-link { + color: #555; + font-weight: 500; + padding: 0.75rem 0; + transition: all 0.2s ease; +} + +.sidebar .nav-link:hover, +.sidebar .nav-link.active { + color: #4A90E2; + transform: translateX(5px); +} + +.main-content { + margin-left: 250px; + padding: 2rem; +} + +.stat-card { + background-color: #fff; + border-radius: 0.5rem; + padding: 1.5rem; + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05); + transition: all 0.3s ease; +} + +.stat-card:hover { + transform: translateY(-5px); + box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.08); +} + +.stat-card .stat-title { + font-size: 1rem; + color: #777; + font-weight: 500; +} + +.stat-card .stat-value { + font-size: 2.5rem; + font-weight: 700; + color: #333; +} + +.stat-card .stat-icon { + font-size: 2rem; + color: #4A90E2; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..40d83c4 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1 @@ +// Future JavaScript will go here diff --git a/contact_form.php b/contact_form.php new file mode 100644 index 0000000..5dcb6f8 --- /dev/null +++ b/contact_form.php @@ -0,0 +1,99 @@ +prepare('SELECT * FROM contacts WHERE id = ?'); + $stmt->execute([$id]); + $contact = $stmt->fetch(); + if ($contact) { + $name = $contact['name']; + $email = $contact['email']; + } else { + die('Contact not found.'); + } +} + +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + $name = $_POST['name'] ?? ''; + $email = $_POST['email'] ?? ''; + + if (empty($name) || empty($email)) { + $error = 'Name and email are required.'; + } else { + if ($is_edit) { + $stmt = db()->prepare('UPDATE contacts SET name = ?, email = ? WHERE id = ?'); + $stmt->execute([$name, $email, $id]); + } else { + $stmt = db()->prepare('INSERT INTO contacts (name, email) VALUES (?, ?)'); + $stmt->execute([$name, $email]); + } + header('Location: contacts.php'); + exit; + } +} +?> + + +
+ + +| Name | +Created At | +Actions | +|
|---|---|---|---|
| No contacts found. | +|||
| = htmlspecialchars($contact['name']) ?> | += htmlspecialchars($contact['email']) ?> | += date('M d, Y', strtotime($contact['created_at'])) ?> | ++ + Edit + + + Delete + + | +
This is the deals page. Content will be added soon.
+= ($_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) ?>
Total Contacts
+Open Deals
+Won Deals
+Total Revenue
+