Extra spaces are removed now

This commit is contained in:
Sayan Das 2026-03-30 16:20:25 +05:30
parent b40e49ad61
commit a3f7ff19e6
3 changed files with 3 additions and 38 deletions

View File

@ -7,19 +7,12 @@ use CodeIgniter\Router\RouteCollection;
*/ */
// $routes->get('/', 'Home::index'); // $routes->get('/', 'Home::index');
$routes->get('/', 'Auth::login'); $routes->get('/', 'Auth::login');
$routes->post('/login', 'Auth::loginProcess'); $routes->post('/login', 'Auth::loginProcess');
$routes->get('/register', 'Auth::register'); $routes->get('/register', 'Auth::register');
$routes->post('/register', 'Auth::registerProcess'); $routes->post('/register', 'Auth::registerProcess');
$routes->get('/logout', 'Auth::logout'); $routes->get('/logout', 'Auth::logout');
$routes->get('/admin/dashboard', 'Admin::dashboard'); $routes->get('/admin/dashboard', 'Admin::dashboard');
$routes->get('/admin/patients', 'Admin::patients'); $routes->get('/admin/patients', 'Admin::patients');
$routes->get('/admin/deletePatient/(:num)', 'Admin::deletePatient/$1'); $routes->get('/admin/deletePatient/(:num)', 'Admin::deletePatient/$1');
$routes->get('/patient/dashboard', 'Patient::dashboard'); $routes->get('/patient/dashboard', 'Patient::dashboard');
$routes->post('/book-appointment', 'Patient::bookAppointment');

View File

@ -12,19 +12,11 @@ class Admin extends BaseController
if ($r = $this->requireRole('admin')) { if ($r = $this->requireRole('admin')) {
return $r; return $r;
} }
$patientModel = new PatientModel(); $patientModel = new PatientModel();
$data['totalPatients'] = $patientModel->countAll(); $data['totalPatients'] = $patientModel->countAll();
return view('admin/dashboard', $data); return view('admin/dashboard', $data);
} }
public function patients() public function patients()
{ {
if ($r = $this->requireRole('admin')) { if ($r = $this->requireRole('admin')) {

View File

@ -1,7 +1,3 @@
/**
* Doctor Appointment System global styles
* Load after Bootstrap.
*/
:root { :root {
--app-primary: #0d9488; --app-primary: #0d9488;
@ -18,18 +14,12 @@
--app-shadow-lg: 0 1rem 2rem rgba(15, 23, 42, 0.1); --app-shadow-lg: 0 1rem 2rem rgba(15, 23, 42, 0.1);
} }
/* -------------------------------------------------------------------------
Base
------------------------------------------------------------------------- */
body.app-body { body.app-body {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: var(--app-text); color: var(--app-text);
margin: 0; margin: 0;
} }
/* -------------------------------------------------------------------------
Auth (login / register)
------------------------------------------------------------------------- */
.app-page--auth { .app-page--auth {
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
@ -58,7 +48,6 @@ body.app-body {
letter-spacing: -0.02em; letter-spacing: -0.02em;
} }
/* Primary CTA — always visible */
.btn-app-primary { .btn-app-primary {
border-radius: 999px; border-radius: 999px;
font-weight: 600; font-weight: 600;
@ -86,7 +75,6 @@ a.btn-app-outline {
display: inline-block; display: inline-block;
} }
/* Secondary link button — visible on white (fixes outline-light issue) */
.btn-app-secondary { .btn-app-secondary {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -113,13 +101,11 @@ a.btn-app-outline {
font-size: 0.9rem; font-size: 0.9rem;
} }
/* Alerts — no empty box; compact */
.app-alert { .app-alert {
border-radius: 10px; border-radius: 10px;
border: none; border: none;
} }
/* Remove default browser red outline on invalid controls until submit */
.app-form .form-control:invalid { .app-form .form-control:invalid {
box-shadow: none; box-shadow: none;
} }
@ -128,9 +114,6 @@ a.btn-app-outline {
border-color: #dc3545; border-color: #dc3545;
} }
/* -------------------------------------------------------------------------
Dashboard shells
------------------------------------------------------------------------- */
.app-page--patient { .app-page--patient {
min-height: 100vh; min-height: 100vh;
padding-bottom: 2rem; padding-bottom: 2rem;
@ -204,7 +187,6 @@ a.btn-app-outline {
background: #0f3d3a; background: #0f3d3a;
} }
/* Secondary primary (e.g. admin dashboard) */
.btn-app-accent { .btn-app-accent {
border-radius: 999px; border-radius: 999px;
font-weight: 600; font-weight: 600;
@ -223,13 +205,11 @@ a.btn-app-outline {
background: linear-gradient(135deg, #0369a1 0%, #075985 100%); background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
} }
/* Admin stat cards */
.app-stat-card { .app-stat-card {
border-radius: var(--app-radius); border-radius: var(--app-radius);
border: none; border: none;
} }
/* Tables */
.app-table-wrap { .app-table-wrap {
background: var(--app-surface); background: var(--app-surface);
border-radius: var(--app-radius); border-radius: var(--app-radius);