QuantEngine MudBlazor UI: Complete Phase 1-8 Implementation #14
@@ -0,0 +1,250 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="light">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Login | SmartAdmin</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link rel="icon" href="img/favicon-32x32.png" type="image/png">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="css/base.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/components.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/forms.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/layout.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/darkmode.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/responsive.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/utilities.css">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="plugins/waves/waves.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/smartapp.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/fontawesome/fontawesome.css">
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] body {
|
||||
background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
|
||||
}
|
||||
|
||||
.login-container {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-radius: var(--bs-border-radius-xl);
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
||||
padding: 2.5rem;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.login-header h1 {
|
||||
font-size: 1.75rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.login-header p {
|
||||
color: var(--bs-gray-600);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.login-footer {
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
color: var(--bs-gray-600);
|
||||
}
|
||||
|
||||
.login-footer a {
|
||||
color: #667eea;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.login-footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.divider {
|
||||
position: relative;
|
||||
margin: 1.5rem 0;
|
||||
text-align: center;
|
||||
color: var(--bs-gray-600);
|
||||
}
|
||||
|
||||
.divider::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background-color: var(--bs-gray-300);
|
||||
}
|
||||
|
||||
.divider span {
|
||||
background-color: var(--bs-body-bg);
|
||||
padding: 0 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.social-login {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.social-btn {
|
||||
padding: 0.75rem;
|
||||
border: 1px solid var(--bs-gray-300);
|
||||
border-radius: var(--bs-border-radius);
|
||||
background-color: var(--bs-body-bg);
|
||||
color: var(--bs-body-color);
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
transition: all 0.3s;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.social-btn:hover {
|
||||
border-color: #667eea;
|
||||
color: #667eea;
|
||||
background-color: rgba(102, 126, 234, 0.05);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
background: none;
|
||||
border: none;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
font-size: 1.5rem;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .theme-toggle {
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button class="theme-toggle" id="themeToggle" title="Toggle Dark Mode">
|
||||
<i class="fa-solid fa-moon"></i>
|
||||
</button>
|
||||
|
||||
<div class="login-container">
|
||||
<div class="login-card">
|
||||
<div class="login-header">
|
||||
<h1><i class="fa-solid fa-shield me-2"></i>SmartAdmin</h1>
|
||||
<p>Sign in to your account</p>
|
||||
</div>
|
||||
|
||||
<form id="loginForm">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Email Address</label>
|
||||
<input type="email" class="form-control" placeholder="Enter your email" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Password</label>
|
||||
<input type="password" class="form-control" placeholder="Enter your password" required>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-3">
|
||||
<input type="checkbox" class="form-check-input" id="remember">
|
||||
<label class="form-check-label" for="remember">Remember me</label>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary w-100 py-2">
|
||||
<i class="fa-solid fa-sign-in-alt me-2"></i>Sign In
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="divider"><span>or</span></div>
|
||||
|
||||
<div class="social-login">
|
||||
<a href="#" class="social-btn">
|
||||
<i class="fa-brands fa-google"></i>Google
|
||||
</a>
|
||||
<a href="#" class="social-btn">
|
||||
<i class="fa-brands fa-github"></i>GitHub
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="login-footer mt-4">
|
||||
<p>Don't have an account? <a href="#">Sign up here</a></p>
|
||||
<p><a href="#">Forgot your password?</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const themeToggle = document.getElementById('themeToggle');
|
||||
const html = document.documentElement;
|
||||
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
html.setAttribute('data-bs-theme', savedTheme);
|
||||
updateThemeIcon();
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
||||
html.setAttribute('data-bs-theme', newTheme);
|
||||
localStorage.setItem('theme', newTheme);
|
||||
updateThemeIcon();
|
||||
});
|
||||
|
||||
function updateThemeIcon() {
|
||||
const icon = themeToggle.querySelector('i');
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
if (currentTheme === 'dark') {
|
||||
icon.classList.remove('fa-moon');
|
||||
icon.classList.add('fa-sun');
|
||||
} else {
|
||||
icon.classList.add('fa-moon');
|
||||
icon.classList.remove('fa-sun');
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById('loginForm').addEventListener('submit', (e) => {
|
||||
e.preventDefault();
|
||||
alert('Login form submitted! This is a demo.');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,398 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="light">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Control Center Dashboard | SmartAdmin</title>
|
||||
<meta name="description" content="SmartAdmin Dashboard">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=5">
|
||||
|
||||
<link rel="icon" href="img/favicon-32x32.png" type="image/png" sizes="32x32">
|
||||
|
||||
<!-- SmartAdmin Bootstrap 5 - Modular CSS -->
|
||||
<link rel="stylesheet" media="screen, print" href="css/base.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/components.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/forms.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/tables.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/layout.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/darkmode.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/responsive.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/utilities.css">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="plugins/waves/waves.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/smartapp.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/smartadmin/sa-icons.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/fontawesome/fontawesome.css">
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-color: var(--bs-gray-50);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] body {
|
||||
background-color: var(--bs-gray-900);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-bottom: 1px solid var(--bs-gray-200);
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
box-shadow: var(--bs-box-shadow);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.app-logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--bs-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background-color: var(--bs-body-bg);
|
||||
border: 1px solid var(--bs-gray-200);
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
padding: 1.5rem;
|
||||
text-align: center;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
box-shadow: var(--bs-box-shadow-lg);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--bs-primary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
color: var(--bs-gray-600);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.chart-placeholder {
|
||||
background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
padding: 3rem;
|
||||
text-align: center;
|
||||
color: var(--bs-gray-600);
|
||||
border: 2px dashed var(--bs-gray-300);
|
||||
}
|
||||
|
||||
.recent-activity {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.activity-item {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--bs-gray-200);
|
||||
}
|
||||
|
||||
.activity-item:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.activity-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
background-color: var(--bs-gray-100);
|
||||
color: var(--bs-primary);
|
||||
}
|
||||
|
||||
.activity-content h6 {
|
||||
margin: 0 0 0.25rem 0;
|
||||
}
|
||||
|
||||
.activity-time {
|
||||
color: var(--bs-gray-600);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.nav-top {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
margin-left: auto;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-top a {
|
||||
color: var(--bs-body-color);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.nav-top a:hover {
|
||||
color: var(--bs-primary);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--bs-body-color);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.page-title {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.nav-top {
|
||||
gap: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<header class="app-header">
|
||||
<a href="index-new.html" class="app-logo">
|
||||
<i class="fa-solid fa-chart-line me-2"></i>SmartAdmin
|
||||
</a>
|
||||
<nav>
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="index-new.html">Home</a></li>
|
||||
<li class="breadcrumb-item active">Dashboard</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<ul class="nav-top">
|
||||
<li><a href="components-showcase.html">Components</a></li>
|
||||
<li><a href="auth-login-new.html">Login</a></li>
|
||||
</ul>
|
||||
<button class="theme-toggle" id="themeToggle" title="Toggle Dark Mode">
|
||||
<i class="fa-solid fa-moon"></i>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main style="padding: 2rem;">
|
||||
<div class="container-xxl">
|
||||
<div class="page-title">Control Center Dashboard</div>
|
||||
|
||||
<!-- Statistics Cards -->
|
||||
<div class="row mb-4">
|
||||
<div class="col-12 col-sm-6 col-md-3 mb-3">
|
||||
<div class="stat-card">
|
||||
<div class="stat-value">$45,230</div>
|
||||
<div class="stat-label">Total Revenue</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-3 mb-3">
|
||||
<div class="stat-card">
|
||||
<div class="stat-value">1,234</div>
|
||||
<div class="stat-label">New Users</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-3 mb-3">
|
||||
<div class="stat-card">
|
||||
<div class="stat-value">89.2%</div>
|
||||
<div class="stat-label">Conversion Rate</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-3 mb-3">
|
||||
<div class="stat-card">
|
||||
<div class="stat-value">412</div>
|
||||
<div class="stat-label">Active Sessions</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Charts Row -->
|
||||
<div class="row mb-4">
|
||||
<div class="col-12 col-lg-8 mb-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fa-solid fa-chart-line me-2"></i>Revenue Trend
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="chart-placeholder">
|
||||
<i class="fa-solid fa-chart-area" style="font-size: 3rem; opacity: 0.3;"></i>
|
||||
<p style="margin-top: 1rem;">Chart visualization goes here</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-4 mb-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fa-solid fa-chart-pie me-2"></i>Distribution
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="chart-placeholder">
|
||||
<i class="fa-solid fa-circle-notch" style="font-size: 3rem; opacity: 0.3;"></i>
|
||||
<p style="margin-top: 1rem;">Pie chart goes here</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Recent Activity -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 mb-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fa-solid fa-history me-2"></i>Recent Activity
|
||||
</div>
|
||||
<div class="recent-activity">
|
||||
<div class="activity-item">
|
||||
<div class="activity-icon">
|
||||
<i class="fa-solid fa-user-check"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h6>New user registered</h6>
|
||||
<p>John Doe joined the platform</p>
|
||||
<span class="activity-time">2 minutes ago</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="activity-item">
|
||||
<div class="activity-icon" style="background-color: rgba(76, 175, 80, 0.1); color: var(--bs-success);">
|
||||
<i class="fa-solid fa-check-circle"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h6>Payment processed</h6>
|
||||
<p>$2,450 transaction completed</p>
|
||||
<span class="activity-time">15 minutes ago</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="activity-item">
|
||||
<div class="activity-icon" style="background-color: rgba(244, 67, 54, 0.1); color: var(--bs-danger);">
|
||||
<i class="fa-solid fa-exclamation-circle"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h6>High server load detected</h6>
|
||||
<p>CPU usage at 85%</p>
|
||||
<span class="activity-time">1 hour ago</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="activity-item">
|
||||
<div class="activity-icon" style="background-color: rgba(255, 152, 0, 0.1); color: var(--bs-warning);">
|
||||
<i class="fa-solid fa-bell"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h6>System update available</h6>
|
||||
<p>Version 2.5.0 is ready to install</p>
|
||||
<span class="activity-time">3 hours ago</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-6 mb-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fa-solid fa-list me-2"></i>Top Performing Pages
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<table class="table table-hover mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Page</th>
|
||||
<th>Views</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>/dashboard</td>
|
||||
<td>12,450</td>
|
||||
<td><span class="badge badge-success">Active</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/products</td>
|
||||
<td>8,230</td>
|
||||
<td><span class="badge badge-success">Active</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/analytics</td>
|
||||
<td>6,120</td>
|
||||
<td><span class="badge badge-success">Active</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/settings</td>
|
||||
<td>3,450</td>
|
||||
<td><span class="badge badge-warning">Moderate</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/help</td>
|
||||
<td>1,220</td>
|
||||
<td><span class="badge badge-info">Low</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
const themeToggle = document.getElementById('themeToggle');
|
||||
const html = document.documentElement;
|
||||
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
html.setAttribute('data-bs-theme', savedTheme);
|
||||
updateThemeIcon();
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
||||
html.setAttribute('data-bs-theme', newTheme);
|
||||
localStorage.setItem('theme', newTheme);
|
||||
updateThemeIcon();
|
||||
});
|
||||
|
||||
function updateThemeIcon() {
|
||||
const icon = themeToggle.querySelector('i');
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
if (currentTheme === 'dark') {
|
||||
icon.classList.remove('fa-moon');
|
||||
icon.classList.add('fa-sun');
|
||||
} else {
|
||||
icon.classList.add('fa-moon');
|
||||
icon.classList.remove('fa-sun');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,309 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="light">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Form Inputs | SmartAdmin</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link rel="icon" href="img/favicon-32x32.png" type="image/png">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="css/base.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/components.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/forms.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/layout.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/darkmode.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/responsive.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/utilities.css">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="plugins/waves/waves.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/smartapp.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/smartadmin/sa-icons.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/fontawesome/fontawesome.css">
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-color: var(--bs-gray-50);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] body {
|
||||
background-color: var(--bs-gray-900);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-bottom: 1px solid var(--bs-gray-200);
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
box-shadow: var(--bs-box-shadow);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.app-logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--bs-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
border: 1px solid var(--bs-gray-200);
|
||||
padding: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.form-section h3 {
|
||||
margin-bottom: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 2px solid var(--bs-gray-200);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--bs-body-color);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.form-section {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<header class="app-header">
|
||||
<a href="index-new.html" class="app-logo">
|
||||
<i class="fa-solid fa-chart-line me-2"></i>SmartAdmin
|
||||
</a>
|
||||
<button class="theme-toggle" id="themeToggle">
|
||||
<i class="fa-solid fa-moon"></i>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main style="padding: 2rem;">
|
||||
<div class="container-lg">
|
||||
<h1 class="page-title">Form Inputs & Validation</h1>
|
||||
|
||||
<!-- Basic Inputs -->
|
||||
<div class="form-section">
|
||||
<h3>Basic Input Fields</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="form-label required">First Name</label>
|
||||
<input type="text" class="form-control" placeholder="John">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="form-label required">Last Name</label>
|
||||
<input type="text" class="form-control" placeholder="Doe">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label required">Email Address</label>
|
||||
<input type="email" class="form-control" placeholder="john.doe@example.com">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Phone Number</label>
|
||||
<input type="tel" class="form-control" placeholder="+1 (555) 123-4567">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Select & Textarea -->
|
||||
<div class="form-section">
|
||||
<h3>Dropdowns & Textarea</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Country</label>
|
||||
<select class="form-select">
|
||||
<option>Select a country...</option>
|
||||
<option>United States</option>
|
||||
<option>Canada</option>
|
||||
<option>United Kingdom</option>
|
||||
<option>Australia</option>
|
||||
<option>Germany</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Category</label>
|
||||
<select class="form-select">
|
||||
<option>Select...</option>
|
||||
<option>Business</option>
|
||||
<option>Personal</option>
|
||||
<option>Enterprise</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Message</label>
|
||||
<textarea class="form-control" rows="4" placeholder="Enter your message here..."></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Checkboxes & Radio -->
|
||||
<div class="form-section">
|
||||
<h3>Checkboxes & Radio Buttons</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h5>Checkboxes</h5>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="check1">
|
||||
<label class="form-check-label" for="check1">Agree to terms and conditions</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="check2" checked>
|
||||
<label class="form-check-label" for="check2">Subscribe to newsletter</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="check3">
|
||||
<label class="form-check-label" for="check3">Receive notifications</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h5>Radio Buttons</h5>
|
||||
<div class="form-check">
|
||||
<input type="radio" class="form-check-input" name="plan" id="plan1">
|
||||
<label class="form-check-label" for="plan1">Basic Plan</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="radio" class="form-check-input" name="plan" id="plan2" checked>
|
||||
<label class="form-check-label" for="plan2">Pro Plan</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="radio" class="form-check-input" name="plan" id="plan3">
|
||||
<label class="form-check-label" for="plan3">Enterprise Plan</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Validation States -->
|
||||
<div class="form-section">
|
||||
<h3>Validation States</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Valid Input</label>
|
||||
<input type="text" class="form-control is-valid" value="Looks good!">
|
||||
<div class="valid-feedback" style="display: block;">
|
||||
<i class="fa-solid fa-check-circle me-2"></i>Validation passed
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Invalid Input</label>
|
||||
<input type="text" class="form-control is-invalid" value="Invalid value">
|
||||
<div class="invalid-feedback" style="display: block;">
|
||||
<i class="fa-solid fa-exclamation-circle me-2"></i>Please correct this
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Input Sizes -->
|
||||
<div class="form-section">
|
||||
<h3>Input Sizes</h3>
|
||||
<div class="form-group">
|
||||
<label class="form-label">Small Input</label>
|
||||
<input type="text" class="form-control form-control-sm" placeholder="Small size">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">Default Input</label>
|
||||
<input type="text" class="form-control" placeholder="Default size">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">Large Input</label>
|
||||
<input type="text" class="form-control form-control-lg" placeholder="Large size">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form Actions -->
|
||||
<div class="form-section">
|
||||
<h3>Form Actions</h3>
|
||||
<div class="d-flex gap-2" style="flex-wrap: wrap;">
|
||||
<button class="btn btn-primary">
|
||||
<i class="fa-solid fa-save me-2"></i>Save Changes
|
||||
</button>
|
||||
<button class="btn btn-success">
|
||||
<i class="fa-solid fa-check me-2"></i>Submit
|
||||
</button>
|
||||
<button class="btn btn-warning">
|
||||
<i class="fa-solid fa-redo me-2"></i>Reset
|
||||
</button>
|
||||
<button class="btn btn-danger">
|
||||
<i class="fa-solid fa-trash me-2"></i>Delete
|
||||
</button>
|
||||
<button class="btn btn-secondary">
|
||||
<i class="fa-solid fa-times me-2"></i>Cancel
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
const themeToggle = document.getElementById('themeToggle');
|
||||
const html = document.documentElement;
|
||||
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
html.setAttribute('data-bs-theme', savedTheme);
|
||||
updateThemeIcon();
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
||||
html.setAttribute('data-bs-theme', newTheme);
|
||||
localStorage.setItem('theme', newTheme);
|
||||
updateThemeIcon();
|
||||
});
|
||||
|
||||
function updateThemeIcon() {
|
||||
const icon = themeToggle.querySelector('i');
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
if (currentTheme === 'dark') {
|
||||
icon.classList.remove('fa-moon');
|
||||
icon.classList.add('fa-sun');
|
||||
} else {
|
||||
icon.classList.add('fa-moon');
|
||||
icon.classList.remove('fa-sun');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,330 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="light">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Home | SmartAdmin - Enterprise Admin Dashboard</title>
|
||||
<meta name="description" content="SmartAdmin Bootstrap 5 - Enterprise Admin Dashboard">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=5">
|
||||
|
||||
<link rel="icon" href="img/favicon-32x32.png" type="image/png" sizes="32x32">
|
||||
<link rel="apple-touch-icon" href="img/apple-touch-icon.png" sizes="180x180">
|
||||
|
||||
<!-- SmartAdmin Bootstrap 5 - Modular CSS -->
|
||||
<link rel="stylesheet" media="screen, print" href="css/base.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/components.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/forms.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/tables.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/layout.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/darkmode.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/responsive.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/utilities.css">
|
||||
|
||||
<!-- Vendor CSS -->
|
||||
<link rel="stylesheet" media="screen, print" href="plugins/waves/waves.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/smartapp.min.css">
|
||||
|
||||
<!-- Icons -->
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/smartadmin/sa-icons.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/fontawesome/fontawesome.css">
|
||||
|
||||
<style>
|
||||
.app-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-bottom: 1px solid var(--bs-gray-200);
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
box-shadow: var(--bs-box-shadow);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.app-logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--bs-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
margin-left: auto;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-menu a {
|
||||
color: var(--bs-body-color);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.nav-menu a:hover {
|
||||
color: var(--bs-primary);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--bs-body-color);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
background: linear-gradient(135deg, var(--bs-primary) 0%, #1565c0 100%);
|
||||
color: white;
|
||||
padding: 6rem 2rem;
|
||||
text-align: center;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-section h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 2rem;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.btn-group-center {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.features {
|
||||
padding: 4rem 2rem;
|
||||
background-color: var(--bs-gray-50);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .features {
|
||||
background-color: var(--bs-gray-900);
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 2rem;
|
||||
max-width: 1320px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
background-color: var(--bs-body-bg);
|
||||
padding: 2rem;
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
border: 1px solid var(--bs-gray-200);
|
||||
text-align: center;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: var(--bs-box-shadow-lg);
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 2.5rem;
|
||||
color: var(--bs-primary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.feature-card h3 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.feature-card p {
|
||||
color: var(--bs-gray-600);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
background-color: var(--bs-gray-100);
|
||||
border-top: 1px solid var(--bs-gray-200);
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
color: var(--bs-gray-600);
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] footer {
|
||||
background-color: var(--bs-gray-800);
|
||||
border-top-color: var(--bs-gray-700);
|
||||
color: var(--bs-gray-400);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero-section h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
gap: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 4rem 1rem;
|
||||
}
|
||||
|
||||
.features {
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="app-wrap">
|
||||
<!-- Header -->
|
||||
<header class="app-header">
|
||||
<a href="index-new.html" class="app-logo">
|
||||
<i class="fa-solid fa-chart-line me-2"></i>SmartAdmin
|
||||
</a>
|
||||
<ul class="nav-menu">
|
||||
<li><a href="components-showcase.html">Components</a></li>
|
||||
<li><a href="dashboard-control-center-new.html">Dashboard</a></li>
|
||||
<li><a href="auth-login-new.html">Login</a></li>
|
||||
<li><a href="STYLE_GUIDE.md">Guide</a></li>
|
||||
</ul>
|
||||
<button class="theme-toggle" id="themeToggle" title="Toggle Dark Mode">
|
||||
<i class="fa-solid fa-moon"></i>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<!-- Hero Section -->
|
||||
<section class="hero-section">
|
||||
<div>
|
||||
<h1>SmartAdmin Bootstrap 5</h1>
|
||||
<p>Enterprise Admin Dashboard Template</p>
|
||||
<p style="font-size: 1rem; opacity: 0.8;">Modern, Responsive, Feature-Rich</p>
|
||||
<div class="btn-group-center">
|
||||
<a href="dashboard-control-center-new.html" class="btn btn-light btn-lg">
|
||||
<i class="fa-solid fa-rocket me-2"></i>Launch Dashboard
|
||||
</a>
|
||||
<a href="components-showcase.html" class="btn btn-outline-light btn-lg">
|
||||
<i class="fa-solid fa-palette me-2"></i>View Components
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Features Section -->
|
||||
<section class="features">
|
||||
<div class="container-xxl">
|
||||
<div style="text-align: center; margin-bottom: 3rem;">
|
||||
<h2 style="color: var(--bs-body-color);">Key Features</h2>
|
||||
<p style="color: var(--bs-gray-600); font-size: 1.1rem;">Everything you need for a modern admin dashboard</p>
|
||||
</div>
|
||||
|
||||
<div class="feature-grid">
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fa-solid fa-palette"></i>
|
||||
</div>
|
||||
<h3>Modern Design</h3>
|
||||
<p>Beautiful, clean interface based on Bootstrap 5</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fa-solid fa-mobile"></i>
|
||||
</div>
|
||||
<h3>Fully Responsive</h3>
|
||||
<p>Perfect on mobile, tablet, and desktop screens</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fa-solid fa-moon"></i>
|
||||
</div>
|
||||
<h3>Dark Mode Support</h3>
|
||||
<p>Toggle between light and dark themes</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fa-solid fa-cube"></i>
|
||||
</div>
|
||||
<h3>Modular CSS</h3>
|
||||
<p>8 organized CSS modules for easy customization</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fa-solid fa-bolt"></i>
|
||||
</div>
|
||||
<h3>High Performance</h3>
|
||||
<p>Optimized for speed and user experience</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fa-solid fa-code"></i>
|
||||
</div>
|
||||
<h3>Well Documented</h3>
|
||||
<p>Complete style guide and component library</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer>
|
||||
<p>© 2026 SmartAdmin. All rights reserved.</p>
|
||||
<p style="font-size: 0.9rem;">Built with Bootstrap 5 & Modern Web Standards</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Theme Toggle
|
||||
const themeToggle = document.getElementById('themeToggle');
|
||||
const html = document.documentElement;
|
||||
|
||||
// Load saved theme
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
html.setAttribute('data-bs-theme', savedTheme);
|
||||
updateThemeIcon();
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
||||
html.setAttribute('data-bs-theme', newTheme);
|
||||
localStorage.setItem('theme', newTheme);
|
||||
updateThemeIcon();
|
||||
});
|
||||
|
||||
function updateThemeIcon() {
|
||||
const icon = themeToggle.querySelector('i');
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
if (currentTheme === 'dark') {
|
||||
icon.classList.remove('fa-moon');
|
||||
icon.classList.add('fa-sun');
|
||||
} else {
|
||||
icon.classList.add('fa-moon');
|
||||
icon.classList.remove('fa-sun');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,372 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="light">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Basic Tables | SmartAdmin</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link rel="icon" href="img/favicon-32x32.png" type="image/png">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="css/base.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/components.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/forms.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/tables.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/layout.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/darkmode.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/responsive.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/utilities.css">
|
||||
|
||||
<link rel="stylesheet" media="screen, print" href="plugins/waves/waves.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="css/smartapp.min.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/smartadmin/sa-icons.css">
|
||||
<link rel="stylesheet" media="screen, print" href="webfonts/fontawesome/fontawesome.css">
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-color: var(--bs-gray-50);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] body {
|
||||
background-color: var(--bs-gray-900);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-bottom: 1px solid var(--bs-gray-200);
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
box-shadow: var(--bs-box-shadow);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.app-logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--bs-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.table-card {
|
||||
background-color: var(--bs-body-bg);
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
border: 1px solid var(--bs-gray-200);
|
||||
margin-bottom: 2rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.table-card-header {
|
||||
background-color: var(--bs-gray-100);
|
||||
border-bottom: 1px solid var(--bs-gray-200);
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .table-card-header {
|
||||
background-color: var(--bs-gray-800);
|
||||
border-bottom-color: var(--bs-gray-700);
|
||||
}
|
||||
|
||||
.table-card-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.table-responsive {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.table {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--bs-body-color);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.page-title {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.table-card-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<header class="app-header">
|
||||
<a href="index-new.html" class="app-logo">
|
||||
<i class="fa-solid fa-chart-line me-2"></i>SmartAdmin
|
||||
</a>
|
||||
<button class="theme-toggle" id="themeToggle">
|
||||
<i class="fa-solid fa-moon"></i>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main style="padding: 2rem;">
|
||||
<div class="container-lg">
|
||||
<h1 class="page-title">Basic Tables</h1>
|
||||
|
||||
<!-- Simple Table -->
|
||||
<div class="table-card">
|
||||
<div class="table-card-header">
|
||||
<h3><i class="fa-solid fa-table me-2"></i>Simple Table</h3>
|
||||
<button class="btn btn-sm btn-primary">
|
||||
<i class="fa-solid fa-download me-1"></i>Export
|
||||
</button>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Phone</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>#001</td>
|
||||
<td>John Doe</td>
|
||||
<td>john@example.com</td>
|
||||
<td>+1 (555) 123-4567</td>
|
||||
<td><span class="badge badge-success">Active</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>#002</td>
|
||||
<td>Jane Smith</td>
|
||||
<td>jane@example.com</td>
|
||||
<td>+1 (555) 234-5678</td>
|
||||
<td><span class="badge badge-success">Active</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>#003</td>
|
||||
<td>Bob Johnson</td>
|
||||
<td>bob@example.com</td>
|
||||
<td>+1 (555) 345-6789</td>
|
||||
<td><span class="badge badge-warning">Pending</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>#004</td>
|
||||
<td>Alice Williams</td>
|
||||
<td>alice@example.com</td>
|
||||
<td>+1 (555) 456-7890</td>
|
||||
<td><span class="badge badge-danger">Inactive</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Striped Table -->
|
||||
<div class="table-card">
|
||||
<div class="table-card-header">
|
||||
<h3><i class="fa-solid fa-bars me-2"></i>Striped Table</h3>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Product</th>
|
||||
<th>Category</th>
|
||||
<th>Price</th>
|
||||
<th>Stock</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Laptop Computer</td>
|
||||
<td>Electronics</td>
|
||||
<td>$1,299</td>
|
||||
<td>45</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-primary">Edit</button>
|
||||
<button class="btn btn-sm btn-danger">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Wireless Mouse</td>
|
||||
<td>Accessories</td>
|
||||
<td>$29.99</td>
|
||||
<td>156</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-primary">Edit</button>
|
||||
<button class="btn btn-sm btn-danger">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>USB-C Cable</td>
|
||||
<td>Accessories</td>
|
||||
<td>$12.99</td>
|
||||
<td>302</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-primary">Edit</button>
|
||||
<button class="btn btn-sm btn-danger">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hover Table -->
|
||||
<div class="table-card">
|
||||
<div class="table-card-header">
|
||||
<h3><i class="fa-solid fa-hand-pointer me-2"></i>Hover Table</h3>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Order ID</th>
|
||||
<th>Customer</th>
|
||||
<th>Date</th>
|
||||
<th>Amount</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr style="cursor: pointer;">
|
||||
<td>#ORD-1001</td>
|
||||
<td>Acme Corp</td>
|
||||
<td>2026-07-01</td>
|
||||
<td>$5,250</td>
|
||||
<td><span class="badge badge-success">Completed</span></td>
|
||||
</tr>
|
||||
<tr style="cursor: pointer;">
|
||||
<td>#ORD-1002</td>
|
||||
<td>TechStart Inc</td>
|
||||
<td>2026-07-02</td>
|
||||
<td>$3,100</td>
|
||||
<td><span class="badge badge-success">Completed</span></td>
|
||||
</tr>
|
||||
<tr style="cursor: pointer;">
|
||||
<td>#ORD-1003</td>
|
||||
<td>Global Solutions</td>
|
||||
<td>2026-07-03</td>
|
||||
<td>$7,450</td>
|
||||
<td><span class="badge badge-info">Processing</span></td>
|
||||
</tr>
|
||||
<tr style="cursor: pointer;">
|
||||
<td>#ORD-1004</td>
|
||||
<td>Smart Industries</td>
|
||||
<td>2026-07-04</td>
|
||||
<td>$2,800</td>
|
||||
<td><span class="badge badge-warning">Pending</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bordered Table -->
|
||||
<div class="table-card">
|
||||
<div class="table-card-header">
|
||||
<h3><i class="fa-solid fa-border-all me-2"></i>Bordered Table</h3>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Feature</th>
|
||||
<th>Basic Plan</th>
|
||||
<th>Pro Plan</th>
|
||||
<th>Enterprise</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>Storage</strong></td>
|
||||
<td>10 GB</td>
|
||||
<td>100 GB</td>
|
||||
<td>Unlimited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Users</strong></td>
|
||||
<td>1</td>
|
||||
<td>5</td>
|
||||
<td>Unlimited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Support</strong></td>
|
||||
<td>Email</td>
|
||||
<td>Priority</td>
|
||||
<td>24/7 Phone</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>API Access</strong></td>
|
||||
<td><i class="fa-solid fa-times text-danger"></i></td>
|
||||
<td><i class="fa-solid fa-check text-success"></i></td>
|
||||
<td><i class="fa-solid fa-check text-success"></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Analytics</strong></td>
|
||||
<td><i class="fa-solid fa-times text-danger"></i></td>
|
||||
<td><i class="fa-solid fa-check text-success"></i></td>
|
||||
<td><i class="fa-solid fa-check text-success"></i></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
const themeToggle = document.getElementById('themeToggle');
|
||||
const html = document.documentElement;
|
||||
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
html.setAttribute('data-bs-theme', savedTheme);
|
||||
updateThemeIcon();
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
||||
html.setAttribute('data-bs-theme', newTheme);
|
||||
localStorage.setItem('theme', newTheme);
|
||||
updateThemeIcon();
|
||||
});
|
||||
|
||||
function updateThemeIcon() {
|
||||
const icon = themeToggle.querySelector('i');
|
||||
const currentTheme = html.getAttribute('data-bs-theme');
|
||||
if (currentTheme === 'dark') {
|
||||
icon.classList.remove('fa-moon');
|
||||
icon.classList.add('fa-sun');
|
||||
} else {
|
||||
icon.classList.add('fa-moon');
|
||||
icon.classList.remove('fa-sun');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user