Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/admin promotion #50

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions public/css/admin/admin-promotions.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}



.table {
width: 100%;
border-collapse: collapse;
border-radius: 40px;

}
77 changes: 77 additions & 0 deletions public/css/admin/reports.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* General Reset */
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}

/* Centering Container */
.promotion-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full viewport height */
background-color: #f5f5f5; /* Light background */
}

/* Promotion Form Styling */
.promotion-form {
background-color: #ffffff; /* White background */
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
width: 400px;
}

.promotion-form h2 {
text-align: center;
margin-bottom: 20px;
color: #010336; /* Deep blue */
}

/* Form Group Styling */
.form-group {
margin-bottom: 15px;
}

.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
color: #333333; /* Darker text */
}

.form-group input,
.form-group select {
width: 100%;
padding: 10px;
border: 1px solid #cccccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
border-color: #010336; /* Highlighted border */
outline: none;
box-shadow: 0 0 5px rgba(1, 3, 54, 0.2);
}

/* Button Styling */
button {
width: 100%;
padding: 12px;
background-color: #010336; /* Deep blue */
color: #ffffff; /* White text */
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
font-weight: bold;
}

button:hover {
background-color: #002080; /* Slightly lighter blue */
transition: background-color 0.3s;
}
201 changes: 0 additions & 201 deletions public/index.php

This file was deleted.

4 changes: 2 additions & 2 deletions public/js/admin/chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const chartData = {
labels: ["Customers", "Technician", "Service Centre", ],
data: [30, 17, 10],
labels: ["Five star reviews", "Four star reviews", "Three star reviews", "Two star reviews","One star reviews"],
data: [30, 17, 10,22,42],
};

const myChart = document.querySelector(".my-chart");
Expand Down
Loading