index.html in wrong place
This commit is contained in:
649
index.html
649
index.html
@@ -1,649 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Health History Tracker</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary: #4361ee;
|
||||
--secondary: #3a0ca3;
|
||||
--accent: #f72585;
|
||||
--light: #f8f9fa;
|
||||
--dark: #212529;
|
||||
--success: #4cc9f0;
|
||||
--warning: #f72585;
|
||||
--gray: #6c757d;
|
||||
--light-gray: #e9ecef;
|
||||
}
|
||||
|
||||
body {
|
||||
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
header {
|
||||
background: linear-gradient(to right, var(--primary), var(--secondary));
|
||||
color: white;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 30px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.logo i {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.logo h1 {
|
||||
font-size: 2.2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.user-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.user-info h3 {
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.user-info p {
|
||||
font-size: 0.9rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 2px solid var(--primary);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--secondary);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.dashboard {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 3fr;
|
||||
gap: 25px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
padding: 25px;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.sidebar h2 {
|
||||
margin-bottom: 20px;
|
||||
color: var(--secondary);
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 2px solid var(--light-gray);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.nav-links li {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
text-decoration: none;
|
||||
color: var(--dark);
|
||||
padding: 12px 15px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.nav-links a:hover, .nav-links a.active {
|
||||
background: var(--light-gray);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.main-content {
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
padding: 25px;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.content-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 25px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 2px solid var(--light-gray);
|
||||
}
|
||||
|
||||
.content-header h2 {
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.stats-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--light);
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.stat-card i {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 15px;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.stat-card h3 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 5px;
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.stat-card p {
|
||||
color: var(--gray);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.record-form {
|
||||
background: var(--light);
|
||||
border-radius: 10px;
|
||||
padding: 25px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.form-title {
|
||||
margin-bottom: 20px;
|
||||
color: var(--secondary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 600;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group textarea,
|
||||
.form-group select {
|
||||
width: 100%;
|
||||
padding: 12px 15px;
|
||||
border: 1px solid var(--light-gray);
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
transition: border-color 0.3s ease;
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group textarea:focus,
|
||||
.form-group select:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
|
||||
}
|
||||
|
||||
.records-container {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.records-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.records-list {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.record-item {
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
margin-bottom: 15px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
|
||||
border-left: 5px solid var(--primary);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.record-item:hover {
|
||||
transform: translateX(5px);
|
||||
}
|
||||
|
||||
.record-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.record-title {
|
||||
font-size: 1.3rem;
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.record-date {
|
||||
background: var(--light-gray);
|
||||
padding: 5px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.record-details {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.detail-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.detail-item i {
|
||||
color: var(--primary);
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
.record-description {
|
||||
line-height: 1.6;
|
||||
color: var(--gray);
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.actions button {
|
||||
padding: 8px 15px;
|
||||
border-radius: 5px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.edit-btn {
|
||||
background: var(--light-gray);
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.delete-btn {
|
||||
background: #ffebee;
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
color: var(--gray);
|
||||
}
|
||||
|
||||
.empty-state i {
|
||||
font-size: 4rem;
|
||||
margin-bottom: 20px;
|
||||
color: var(--light-gray);
|
||||
}
|
||||
|
||||
.empty-state h3 {
|
||||
margin-bottom: 15px;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
color: var(--gray);
|
||||
font-size: 0.9rem;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.dashboard {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
header {
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.user-section {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.content-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="logo">
|
||||
<i class="fas fa-heartbeat"></i>
|
||||
<h1>Health History Tracker</h1>
|
||||
</div>
|
||||
<div class="user-section">
|
||||
<div class="user-info">
|
||||
<h3>Alex Johnson</h3>
|
||||
<p>Member since Jan 2023</p>
|
||||
</div>
|
||||
<button class="btn btn-outline">
|
||||
<i class="fas fa-user"></i> Profile
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="dashboard">
|
||||
<div class="sidebar">
|
||||
<h2>Navigation</h2>
|
||||
<ul class="nav-links">
|
||||
<li><a href="#" class="active"><i class="fas fa-home"></i> Dashboard</a></li>
|
||||
<li><a href="#"><i class="fas fa-plus-circle"></i> Add Record</a></li>
|
||||
<li><a href="#"><i class="fas fa-history"></i> History</a></li>
|
||||
<li><a href="#"><i class="fas fa-chart-line"></i> Statistics</a></li>
|
||||
<li><a href="#"><i class="fas fa-cog"></i> Settings</a></li>
|
||||
<li><a href="#"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="content-header">
|
||||
<h2>Your Health Records</h2>
|
||||
<button class="btn btn-primary">
|
||||
<i class="fas fa-plus"></i> Add New Record
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="stats-container">
|
||||
<div class="stat-card">
|
||||
<i class="fas fa-heartbeat"></i>
|
||||
<h3>12</h3>
|
||||
<p>Total Illnesses</p>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<i class="fas fa-calendar-check"></i>
|
||||
<h3>8</h3>
|
||||
<p>Recovered</p>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<i class="fas fa-clipboard-list"></i>
|
||||
<h3>4</h3>
|
||||
<p>Active Conditions</p>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<i class="fas fa-calendar-alt"></i>
|
||||
<h3>2.5y</h3>
|
||||
<p>Average Duration</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="record-form">
|
||||
<h3 class="form-title"><i class="fas fa-file-medical"></i> Add New Health Record</h3>
|
||||
<div class="form-grid">
|
||||
<div class="form-group">
|
||||
<label for="illness-name">Illness Name</label>
|
||||
<input type="text" id="illness-name" placeholder="e.g., Influenza, Migraine...">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="diagnosis-date">Diagnosis Date</label>
|
||||
<input type="date" id="diagnosis-date">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="severity">Severity</label>
|
||||
<select id="severity">
|
||||
<option value="mild">Mild</option>
|
||||
<option value="moderate">Moderate</option>
|
||||
<option value="severe">Severe</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="treatment">Treatment</label>
|
||||
<input type="text" id="treatment" placeholder="Medication, therapy, etc.">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description">Description</label>
|
||||
<textarea id="description" rows="3" placeholder="Describe symptoms, treatment, and recovery process..."></textarea>
|
||||
</div>
|
||||
<button class="btn btn-primary">
|
||||
<i class="fas fa-save"></i> Save Record
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="records-container">
|
||||
<div class="records-header">
|
||||
<h3>Recent Health Records</h3>
|
||||
<div>
|
||||
<button class="btn btn-outline"><i class="fas fa-filter"></i> Filter</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="records-list">
|
||||
<li class="record-item">
|
||||
<div class="record-header">
|
||||
<h4 class="record-title">Influenza (Flu)</h4>
|
||||
<span class="record-date">Jan 15, 2023</span>
|
||||
</div>
|
||||
<div class="record-details">
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-heart"></i>
|
||||
<span>Severity: Moderate</span>
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-pills"></i>
|
||||
<span>Treatment: Antiviral medication</span>
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-clock"></i>
|
||||
<span>Duration: 7 days</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="record-description">Sudden onset with high fever, body aches, and fatigue. Recovered fully after 7 days with rest and antiviral medication.</p>
|
||||
<div class="actions">
|
||||
<button class="edit-btn"><i class="fas fa-edit"></i> Edit</button>
|
||||
<button class="delete-btn"><i class="fas fa-trash"></i> Delete</button>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="record-item">
|
||||
<div class="record-header">
|
||||
<h4 class="record-title">Migraine Headache</h4>
|
||||
<span class="record-date">Mar 3, 2023</span>
|
||||
</div>
|
||||
<div class="record-details">
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-heart"></i>
|
||||
<span>Severity: Severe</span>
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-pills"></i>
|
||||
<span>Treatment: Triptans, rest in dark room</span>
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-clock"></i>
|
||||
<span>Duration: 2 days</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="record-description">Severe throbbing pain on one side of head, nausea, sensitivity to light. Managed with prescribed triptans and rest.</p>
|
||||
<div class="actions">
|
||||
<button class="edit-btn"><i class="fas fa-edit"></i> Edit</button>
|
||||
<button class="delete-btn"><i class="fas fa-trash"></i> Delete</button>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="record-item">
|
||||
<div class="record-header">
|
||||
<h4 class="record-title">Seasonal Allergies</h4>
|
||||
<span class="record-date">Apr 12, 2023</span>
|
||||
</div>
|
||||
<div class="record-details">
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-heart"></i>
|
||||
<span>Severity: Mild</span>
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-pills"></i>
|
||||
<span>Treatment: Antihistamines</span>
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<i class="fas fa-clock"></i>
|
||||
<span>Duration: 3 weeks</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="record-description">Runny nose, sneezing, itchy eyes during spring season. Managed with over-the-counter antihistamines and avoiding allergens.</p>
|
||||
<div class="actions">
|
||||
<button class="edit-btn"><i class="fas fa-edit"></i> Edit</button>
|
||||
<button class="delete-btn"><i class="fas fa-trash"></i> Delete</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>Health History Tracker © 2023 | All your health records in one place</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Simple JavaScript for demo purposes
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Set today's date as default for diagnosis date
|
||||
const today = new Date().toISOString().split('T')[0];
|
||||
document.getElementById('diagnosis-date').value = today;
|
||||
|
||||
// Add event listeners to buttons
|
||||
const saveBtn = document.querySelector('.btn-primary');
|
||||
const editButtons = document.querySelectorAll('.edit-btn');
|
||||
const deleteButtons = document.querySelectorAll('.delete-btn');
|
||||
|
||||
saveBtn.addEventListener('click', function() {
|
||||
alert('Health record saved successfully!');
|
||||
});
|
||||
|
||||
editButtons.forEach(button => {
|
||||
button.addEventListener('click', function() {
|
||||
alert('Edit functionality would open here');
|
||||
});
|
||||
});
|
||||
|
||||
deleteButtons.forEach(button => {
|
||||
button.addEventListener('click', function() {
|
||||
if(confirm('Are you sure you want to delete this record?')) {
|
||||
alert('Record deleted successfully!');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user