Can we deploy this app right now please and website
Browse files- components/navbar.js +4 -6
- create.html +2 -1
- favicon.svg +26 -0
- help.html +2 -1
- index.html +3 -2
- projects.html +2 -1
- script.js +1 -32
- style.css +2 -16
components/navbar.js
CHANGED
|
@@ -68,15 +68,13 @@ ul {
|
|
| 68 |
<nav>
|
| 69 |
<a href="/" class="logo">
|
| 70 |
<i data-feather="pen-tool" class="logo-icon"></i>
|
| 71 |
-
<span>
|
| 72 |
</a>
|
| 73 |
<ul>
|
| 74 |
<li><a href="/" class="active"><i data-feather="home"></i> Dashboard</a></li>
|
| 75 |
-
<li><a href="/
|
| 76 |
-
<li><a href="/
|
| 77 |
-
<li><a href="/
|
| 78 |
-
<li><a href="/calendar"><i data-feather="calendar"></i> Calendar</a></li>
|
| 79 |
-
<li><a href="/tracking.html"><i data-feather="map-pin"></i> Tracking</a></li>
|
| 80 |
</ul>
|
| 81 |
</nav>
|
| 82 |
`;
|
|
|
|
| 68 |
<nav>
|
| 69 |
<a href="/" class="logo">
|
| 70 |
<i data-feather="pen-tool" class="logo-icon"></i>
|
| 71 |
+
<span>Simple Canvas</span>
|
| 72 |
</a>
|
| 73 |
<ul>
|
| 74 |
<li><a href="/" class="active"><i data-feather="home"></i> Dashboard</a></li>
|
| 75 |
+
<li><a href="/create.html"><i data-feather="plus"></i> Create</a></li>
|
| 76 |
+
<li><a href="/projects.html"><i data-feather="folder"></i> Projects</a></li>
|
| 77 |
+
<li><a href="/help.html"><i data-feather="help-circle"></i> Help</a></li>
|
|
|
|
|
|
|
| 78 |
</ul>
|
| 79 |
</nav>
|
| 80 |
`;
|
create.html
CHANGED
|
@@ -4,7 +4,8 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Create New Project | Simple Canvas</title>
|
| 7 |
-
<link rel="
|
|
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
</head>
|
| 10 |
<body class="min-h-screen flex flex-col">
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Create New Project | Simple Canvas</title>
|
| 7 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
</head>
|
| 11 |
<body class="min-h-screen flex flex-col">
|
favicon.svg
ADDED
|
|
help.html
CHANGED
|
@@ -4,7 +4,8 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Help Center | Simple Canvas</title>
|
| 7 |
-
<link rel="
|
|
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
</head>
|
| 10 |
<body class="min-h-screen flex flex-col">
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Help Center | Simple Canvas</title>
|
| 7 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
</head>
|
| 11 |
<body class="min-h-screen flex flex-col">
|
index.html
CHANGED
|
@@ -3,8 +3,9 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
<link rel="
|
|
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
<script src="https://unpkg.com/feather-icons"></script>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Simple Canvas</title>
|
| 7 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
<script src="https://unpkg.com/feather-icons"></script>
|
projects.html
CHANGED
|
@@ -4,7 +4,8 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>My Projects | Simple Canvas</title>
|
| 7 |
-
<link rel="
|
|
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
</head>
|
| 10 |
<body class="min-h-screen flex flex-col">
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>My Projects | Simple Canvas</title>
|
| 7 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
</head>
|
| 11 |
<body class="min-h-screen flex flex-col">
|
script.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
// Initialize tooltips
|
| 3 |
document.addEventListener('DOMContentLoaded', function() {
|
| 4 |
// Any shared JavaScript functionality can go here
|
|
@@ -10,34 +9,4 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 10 |
document.body.style.transition = 'opacity 0.5s ease-in';
|
| 11 |
document.body.style.opacity = '1';
|
| 12 |
}, 100);
|
| 13 |
-
|
| 14 |
-
// Check for geolocation permission
|
| 15 |
-
if (navigator.geolocation && window.location.pathname === '/tracking.html') {
|
| 16 |
-
navigator.geolocation.getCurrentPosition(
|
| 17 |
-
position => {
|
| 18 |
-
console.log('Location access granted', position);
|
| 19 |
-
},
|
| 20 |
-
error => {
|
| 21 |
-
console.warn('Location access denied', error);
|
| 22 |
-
}
|
| 23 |
-
);
|
| 24 |
-
}
|
| 25 |
-
});
|
| 26 |
-
|
| 27 |
-
// Device tracking functions
|
| 28 |
-
function watchDevicePosition(deviceId, callback) {
|
| 29 |
-
// In a real app, this would connect to your device tracking API
|
| 30 |
-
// This is a mock implementation that simulates movement
|
| 31 |
-
if (typeof deviceId !== 'string') return;
|
| 32 |
-
|
| 33 |
-
const interval = setInterval(() => {
|
| 34 |
-
const lat = 51.505 + (Math.random() * 0.02 - 0.01);
|
| 35 |
-
const lng = -0.09 + (Math.random() * 0.02 - 0.01);
|
| 36 |
-
callback({
|
| 37 |
-
coords: { latitude: lat, longitude: lng },
|
| 38 |
-
timestamp: Date.now()
|
| 39 |
-
});
|
| 40 |
-
}, 3000);
|
| 41 |
-
|
| 42 |
-
return () => clearInterval(interval);
|
| 43 |
-
}
|
|
|
|
|
|
|
| 1 |
// Initialize tooltips
|
| 2 |
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
// Any shared JavaScript functionality can go here
|
|
|
|
| 9 |
document.body.style.transition = 'opacity 0.5s ease-in';
|
| 10 |
document.body.style.opacity = '1';
|
| 11 |
}, 100);
|
| 12 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style.css
CHANGED
|
@@ -11,21 +11,7 @@ body {
|
|
| 11 |
50% { transform: translateY(-15px); }
|
| 12 |
100% { transform: translateY(0px); }
|
| 13 |
}
|
|
|
|
| 14 |
.floating {
|
| 15 |
animation: float 6s ease-in-out infinite;
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
/* Map styles */
|
| 19 |
-
#map {
|
| 20 |
-
z-index: 1;
|
| 21 |
-
}
|
| 22 |
-
|
| 23 |
-
/* Device list styles */
|
| 24 |
-
#device-list div {
|
| 25 |
-
transition: all 0.2s;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
#device-list div:hover {
|
| 29 |
-
transform: translateY(-2px);
|
| 30 |
-
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
| 31 |
-
}
|
|
|
|
| 11 |
50% { transform: translateY(-15px); }
|
| 12 |
100% { transform: translateY(0px); }
|
| 13 |
}
|
| 14 |
+
|
| 15 |
.floating {
|
| 16 |
animation: float 6s ease-in-out infinite;
|
| 17 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|