Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3de525bbb5 | ||
|
|
4c2cfe8edd |
113
assets/css/custom.css
Normal file
113
assets/css/custom.css
Normal file
@ -0,0 +1,113 @@
|
||||
/* TeamSync Custom Styles */
|
||||
|
||||
:root {
|
||||
--primary-color: #4F46E5;
|
||||
--secondary-color: #10B981;
|
||||
--background-color: #F3F4F6;
|
||||
--surface-color: #FFFFFF;
|
||||
--text-color: #111827;
|
||||
--muted-text-color: #6B7280;
|
||||
--warning-color: #F59E0B;
|
||||
--danger-color: #EF4444;
|
||||
--ooo-color: #3B82F6;
|
||||
--border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
background: linear-gradient(90deg, rgba(79, 70, 229, 0.95) 0%, rgba(79, 70, 229, 1) 100%);
|
||||
padding: 1rem 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-weight: 700;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.team-name {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.record-btn {
|
||||
background-color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
font-weight: 500;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.record-btn svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.status-board-card {
|
||||
border: none;
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
}
|
||||
|
||||
.status-board-card .card-header {
|
||||
background-color: var(--surface-color);
|
||||
border-bottom: 1px solid #E5E7EB;
|
||||
font-weight: 500;
|
||||
border-top-left-radius: var(--border-radius);
|
||||
border-top-right-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.list-group-item {
|
||||
padding: 1rem 1.5rem;
|
||||
}
|
||||
|
||||
.list-group-item:hover {
|
||||
background-color: #F9FAFB;
|
||||
}
|
||||
|
||||
.member-name {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.status-icon svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.status-icon.submitted {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.status-icon.pending {
|
||||
background-color: var(--warning-color);
|
||||
}
|
||||
|
||||
.status-icon.missed {
|
||||
background-color: var(--danger-color);
|
||||
}
|
||||
|
||||
.status-icon.ooo {
|
||||
background-color: var(--ooo-color);
|
||||
}
|
||||
1
assets/icons/check.svg
Normal file
1
assets/icons/check.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5" /></svg>
|
||||
|
After Width: | Height: | Size: 200 B |
1
assets/icons/clock.svg
Normal file
1
assets/icons/clock.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
|
||||
|
After Width: | Height: | Size: 224 B |
1
assets/icons/palm.svg
Normal file
1
assets/icons/palm.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z" /></svg>
|
||||
|
After Width: | Height: | Size: 476 B |
1
assets/icons/video.svg
Normal file
1
assets/icons/video.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 10.5l4.72-4.72a.75.75 0 011.28.53v11.38a.75.75 0 01-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 002.25-2.25v-9a2.25 2.25 0 00-2.25-2.25h-9A2.25 2.25 0 002.25 7.5v9A2.25 2.25 0 004.5 18.75z" /></svg>
|
||||
|
After Width: | Height: | Size: 373 B |
1
assets/icons/x.svg
Normal file
1
assets/icons/x.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>
|
||||
|
After Width: | Height: | Size: 199 B |
9
assets/js/main.js
Normal file
9
assets/js/main.js
Normal file
@ -0,0 +1,9 @@
|
||||
// Main JavaScript for TeamSync
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
console.log('TeamSync dashboard loaded.');
|
||||
|
||||
// Future interactivity can be added here.
|
||||
// For example, handling the click on the 'Record Update' button
|
||||
// when it's no longer disabled.
|
||||
});
|
||||
231
index.php
231
index.php
@ -1,150 +1,91 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@error_reporting(E_ALL);
|
||||
@date_default_timezone_set('UTC');
|
||||
|
||||
$phpVersion = PHP_VERSION;
|
||||
$now = date('Y-m-d H:i:s');
|
||||
?>
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Style</title>
|
||||
<?php
|
||||
// Read project preview data from environment
|
||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||
?>
|
||||
<?php if ($projectDescription): ?>
|
||||
<!-- Meta description -->
|
||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||
<!-- Open Graph meta tags -->
|
||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<!-- Twitter meta tags -->
|
||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($projectImageUrl): ?>
|
||||
<!-- Open Graph image -->
|
||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<!-- Twitter image -->
|
||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<?php endif; ?>
|
||||
<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@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
@keyframes bg-pan {
|
||||
0% { background-position: 0% 0%; }
|
||||
100% { background-position: 100% 100%; }
|
||||
}
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.loader {
|
||||
margin: 1.25rem auto 1.25rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.hint {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; border: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
code {
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>TeamSync Dashboard</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<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@400;500;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your website…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
</div>
|
||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||
</footer>
|
||||
|
||||
<?php
|
||||
// --- Static Data ---
|
||||
$team_name = "Frontend Engineers";
|
||||
$current_user = [
|
||||
'full_name' => 'Alex Doe',
|
||||
'avatar_url' => 'https://i.pravatar.cc/40?u=alex'
|
||||
];
|
||||
$team_members = [
|
||||
['full_name' => 'Samantha Bright', 'avatar_url' => 'https://i.pravatar.cc/40?u=samantha', 'status' => 'submitted'],
|
||||
['full_name' => 'Leo Valdez', 'avatar_url' => 'https://i.pravatar.cc/40?u=leo', 'status' => 'pending', 'detail' => '2h 15m remaining'],
|
||||
['full_name' => 'Mei Lin', 'avatar_url' => 'https://i.pravatar.cc/40?u=mei', 'status' => 'missed'],
|
||||
['full_name' => 'Kenji Tanaka', 'avatar_url' => 'https://i.pravatar.cc/40?u=kenji', 'status' => 'ooo'],
|
||||
['full_name' => 'Fatima Ahmed', 'avatar_url' => 'https://i.pravatar.cc/40?u=fatima', 'status' => 'submitted'],
|
||||
];
|
||||
|
||||
function getStatusIndicator($status) {
|
||||
$icon_path = __DIR__ . '/assets/icons/';
|
||||
switch ($status) {
|
||||
case 'submitted':
|
||||
return '<span class="status-icon submitted">' . file_get_contents($icon_path . "check.svg") . '</span>';
|
||||
case 'pending':
|
||||
return '<span class="status-icon pending">' . file_get_contents($icon_path . "clock.svg") . '</span>';
|
||||
case 'missed':
|
||||
return '<span class="status-icon missed">' . file_get_contents($icon_path . "x.svg") . '</span>';
|
||||
case 'ooo':
|
||||
return '<span class="status-icon ooo">' . file_get_contents($icon_path . "palm.svg") . '</span>';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<header class="app-header">
|
||||
<div class="container-fluid d-flex justify-content-between align-items-center">
|
||||
<div class="logo">TeamSync</div>
|
||||
<div class="user-profile">
|
||||
<img src="<?php echo htmlspecialchars($current_user['avatar_url']); ?>" alt="<?php echo htmlspecialchars($current_user['full_name']); ?>" class="avatar">
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container mt-5">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4 flex-wrap">
|
||||
<h1 class="h2 team-name"><?php echo htmlspecialchars($team_name); ?></h1>
|
||||
<button class="btn btn-primary btn-lg record-btn" disabled>
|
||||
<?php echo file_get_contents(__DIR__ . "/assets/icons/video.svg"); ?>
|
||||
Record Update
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card status-board-card">
|
||||
<div class="card-header">
|
||||
Daily Standup Status
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($team_members as $member): ?>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="<?php echo htmlspecialchars($member['avatar_url']); ?>" alt="<?php echo htmlspecialchars($member['full_name']); ?>" class="avatar me-3">
|
||||
<span class="member-name"><?php echo htmlspecialchars($member['full_name']); ?></span>
|
||||
</div>
|
||||
<div class="d-flex align-items-center">
|
||||
<?php if (!empty($member['detail'])): ?>
|
||||
<small class="text-muted me-3"><?php echo htmlspecialchars($member['detail']); ?></small>
|
||||
<?php endif; ?>
|
||||
<?php echo getStatusIndicator($member['status']); ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user