Skip to content
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
62 changes: 53 additions & 9 deletions admin/src/components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,59 @@
.navbar{
/* Navbar Container */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 4%;

color: white;
padding: 12px 5%;
background-color: #111; /* Dark background */
color: #fff;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.navbar .logo{
width: max(10%,80px);

/* Logo Styling */
.navbar .logo {
width: max(10%, 80px);
max-height: 50px;
object-fit: contain;
cursor: pointer;
transition: transform 0.2s ease;
}
.navbar .profile
{

.navbar .logo:hover {
transform: scale(1.05);
}

/* Profile Image / Icon */
.navbar .profile {
width: 40px;
}
height: 40px;
border-radius: 50%;
object-fit: cover;
cursor: pointer;
border: 2px solid #fff;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar .profile:hover {
transform: scale(1.1);
box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Responsive Navbar */
@media (max-width: 768px) {
.navbar {
padding: 10px 3%;
}

.navbar .logo {
width: 70px;
}

.navbar .profile {
width: 35px;
height: 35px;
}
}
47 changes: 37 additions & 10 deletions admin/src/pages/List/List.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,53 @@
.list-table-format{
/* General List/Table Format */
.list-table-format {
display: grid;
grid-template-columns: 0.5fr 2fr 1fr 1fr 0.5fr;
align-items: center;
gap: 10px;
gap: 12px;
padding: 12px 15px;
border: 1px solid #cacaca;
border-radius: 8px;
font-size: 13px;
background-color: #fff;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.list-table-format.title{
background-color: #f9f9f9;

.list-table-format:hover {
background-color: #f5f5f5;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.list-table-format img{

/* Title Row Styling */
.list-table-format.title {
background-color: #f9f9f9;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

/* Images inside the list */
.list-table-format img {
width: 50px;
height: 50px;
object-fit: cover;
border-radius: 5px;
}

/* Responsive Styling */
@media (max-width: 600px) {
.list-table-format{
.list-table-format {
grid-template-columns: 1fr 3fr 1fr;
gap: 15px;
gap: 10px;
padding: 10px 12px;
}
.list-table-format .title{

/* Hide the title row on small screens */
.list-table-format.title {
display: none;
}

}

.list-table-format img {
width: 40px;
height: 40px;
}
}
128 changes: 100 additions & 28 deletions admin/src/pages/add/Add.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,124 @@
.add{
/* Container for Add Section */
.add {
width: 70%;
margin-left: max(5vw,25px);
margin-left: max(5vw, 25px);
margin-top: 50px;
color: #6d6d6d;
font-size: 16px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.add form{
gap: 20px;

/* Form Styling */
.add form {
display: flex;
flex-direction: column;
margin-top: 20px;
margin-bottom: 20px;
padding: 20px;
border-radius: 10px;
background-color: #f9f9f9;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
gap: 20px;
margin: 20px 0;
padding: 25px;
border-radius: 12px;
background-color: #fefefe;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
border: 1px solid #e0e0e0;
transition: all 0.3s ease;
}

.flex-col{
.add form:hover {
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Flex Column Utility */
.flex-col {
display: flex;
flex-direction: column;
gap: 10px;
gap: 12px;
}
.add-img-upload img{

/* Image Upload Styling */
.add-img-upload img {
width: 120px;
justify-items: center;
display: block;
margin: 0 auto;
border-radius: 8px;
object-fit: cover;
}
.add-product-name .add-product-description{
width: max(40%,280px);

/* Product Name & Description */
.add-product-name,
.add-product-description {
width: min(40%, 280px);
}
.add-product-name input, .add-product-description textarea{
padding: 10px;

.add-product-name input,
.add-product-description textarea {
width: 100%;
padding: 12px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 15px;
transition: border 0.3s ease, box-shadow 0.3s ease;
}
.add-category-price{

.add-product-name input:focus,
.add-product-description textarea:focus {
border-color: #555;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
outline: none;
}

/* Category & Price Section */
.add-category-price {
display: flex;
gap: 30px;
flex-wrap: wrap;
}
.add-category-price input, .add-category-price select{
padding: 10px;
max-width: 120px;
}
.add-btn{
max-width: 120px;

.add-category-price input,
.add-category-price select {
padding: 10px;
max-width: 140px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 14px;
transition: border 0.3s ease, box-shadow 0.3s ease;
}

.add-category-price input:focus,
.add-category-price select:focus {
border-color: #555;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
outline: none;
}

/* Submit Button */
.add-btn {
max-width: 140px;
padding: 12px;
border: none;
background-color: black;
color: white;
border-radius: 8px;
background-color: #000;
color: #fff;
font-weight: 500;
cursor: pointer;
}
transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-btn:hover {
background-color: #333;
transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
.add {
width: 90%;
margin-left: 5%;
}
.add-category-price {
flex-direction: column;
gap: 15px;
}
.add-product-name,
.add-product-description {
width: 100%;
}
}
Loading