Version 1.0
This commit is contained in:
parent
3aeca9dfc0
commit
7cfd0453a7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,9 @@
|
||||
from django.contrib import admin
|
||||
from .models import Parcel
|
||||
|
||||
# Register your models here.
|
||||
@admin.register(Parcel)
|
||||
class ParcelAdmin(admin.ModelAdmin):
|
||||
list_display = ('tracking_number', 'sender_name', 'recipient_name', 'status', 'assignee', 'received_date')
|
||||
list_filter = ('status', 'assignee', 'received_date')
|
||||
search_fields = ('tracking_number', 'sender_name', 'recipient_name', 'sender_email', 'recipient_email')
|
||||
ordering = ('-received_date',)
|
||||
28
core/migrations/0001_initial.py
Normal file
28
core/migrations/0001_initial.py
Normal file
@ -0,0 +1,28 @@
|
||||
# Generated by Django 5.2.7 on 2026-01-11 15:58
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Parcel',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('sender_name', models.CharField(max_length=255)),
|
||||
('sender_email', models.EmailField(max_length=254)),
|
||||
('recipient_name', models.CharField(max_length=255)),
|
||||
('recipient_email', models.EmailField(max_length=254)),
|
||||
('tracking_number', models.CharField(max_length=100, unique=True)),
|
||||
('status', models.CharField(choices=[('pending', 'Pending'), ('processed', 'Processed'), ('rejected', 'Rejected')], default='pending', max_length=20)),
|
||||
('assignee', models.CharField(blank=True, max_length=100, null=True)),
|
||||
('received_date', models.DateTimeField()),
|
||||
],
|
||||
),
|
||||
]
|
||||
BIN
core/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
BIN
core/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
Binary file not shown.
@ -1,3 +1,29 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Parcel(models.Model):
|
||||
STATUS_CHOICES = [
|
||||
('pending', 'Pending'),
|
||||
('processed', 'Processed'),
|
||||
('rejected', 'Rejected'),
|
||||
]
|
||||
|
||||
sender_name = models.CharField(max_length=255)
|
||||
sender_email = models.EmailField()
|
||||
recipient_name = models.CharField(max_length=255)
|
||||
recipient_email = models.EmailField()
|
||||
tracking_number = models.CharField(max_length=100, unique=True)
|
||||
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='pending')
|
||||
assignee = models.CharField(max_length=100, blank=True, null=True)
|
||||
received_date = models.DateTimeField()
|
||||
|
||||
def __str__(self):
|
||||
return f"Parcel {self.tracking_number} for {self.recipient_name}"
|
||||
|
||||
@property
|
||||
def sender_initials(self):
|
||||
if self.sender_name:
|
||||
parts = self.sender_name.split()
|
||||
if len(parts) > 1:
|
||||
return (parts[0][0] + parts[-1][0]).upper()
|
||||
return parts[0][0].upper()
|
||||
return "?"
|
||||
@ -1,25 +1,60 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Knowledge Base{% endblock %}</title>
|
||||
{% if project_description %}
|
||||
<meta name="description" content="{{ project_description }}">
|
||||
<meta property="og:description" content="{{ project_description }}">
|
||||
<meta property="twitter:description" content="{{ project_description }}">
|
||||
{% endif %}
|
||||
{% if project_image_url %}
|
||||
<meta property="og:image" content="{{ project_image_url }}">
|
||||
<meta property="twitter:image" content="{{ project_image_url }}">
|
||||
{% endif %}
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
|
||||
{% block head %}{% endblock %}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}PelipostPRO{% endblock %}</title>
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Google Fonts: Inter -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
<!-- SEO Meta Tags -->
|
||||
{% if project_description %}
|
||||
<meta name="description" content="{{ project_description }}">
|
||||
<meta property="og:description" content="{{ project_description }}">
|
||||
<meta name="twitter:description" content="{{ project_description }}">
|
||||
{% endif %}
|
||||
{% if project_image_url %}
|
||||
<meta property="og:image" content="{{ project_image_url }}">
|
||||
<meta name="twitter:image" content="{{ project_image_url }}">
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
<body class="d-flex flex-column min-vh-100">
|
||||
<header class="navbar navbar-expand-lg navbar-light bg-white shadow-sm sticky-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand fw-bold" style="color: #4F46E5;" href="/">PelipostPRO</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav ms-auto">
|
||||
{% if user.is_authenticated %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'admin:index' %}">Admin</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
<main class="flex-grow-1">
|
||||
{% block content %}
|
||||
<!-- Default content can go here -->
|
||||
{% endblock %}
|
||||
</main>
|
||||
|
||||
<!-- Bootstrap JS Bundle -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@ -1,145 +1,72 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{{ project_name }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@keyframes bg-pan {
|
||||
0% {
|
||||
background-position: 0% 0%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2.5rem 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
|
||||
font-weight: 700;
|
||||
margin: 0 0 1.2rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.loader {
|
||||
margin: 1.5rem auto;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border: 4px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.runtime code {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
padding: 0.15rem 0.45rem;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 0.85rem;
|
||||
opacity: 0.75;
|
||||
}
|
||||
</style>
|
||||
{% block title %}
|
||||
{{ page_title }} - PelipostPRO
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your app…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
</div>
|
||||
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
|
||||
<p class="runtime">
|
||||
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
|
||||
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
|
||||
</p>
|
||||
<div class="container-fluid px-4 py-5">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1 class="h2">Mail Portal</h1>
|
||||
<a href="/admin/core/parcel/add/" class="btn btn-primary">Add Parcel</a>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
||||
</footer>
|
||||
{% endblock %}
|
||||
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th scope="col" class="text-nowrap py-3 px-4">Sender</th>
|
||||
<th scope="col" class="text-nowrap py-3 px-4">Recipient</th>
|
||||
<th scope="col" class="text-nowrap py-3 px-4">Tracking #</th>
|
||||
<th scope="col" class="text-nowrap py-3 px-4">Status</th>
|
||||
<th scope="col" class="text-nowrap py-3 px-4">Assignee</th>
|
||||
<th scope="col" class="text-nowrap py-3 px-4">Received</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for parcel in parcels %}
|
||||
<tr>
|
||||
<td class="px-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="avatar avatar-indigo me-3">{{ parcel.sender_initials }}</div>
|
||||
<div>
|
||||
<div class="fw-bold">{{ parcel.sender_name }}</div>
|
||||
<div class="text-muted small">{{ parcel.sender_email }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4">
|
||||
<div class="fw-bold">{{ parcel.recipient_name }}</div>
|
||||
<div class="text-muted small">{{ parcel.recipient_email }}</div>
|
||||
</td>
|
||||
<td class="font-monospace px-4">{{ parcel.tracking_number }}</td>
|
||||
<td class="px-4">
|
||||
{% if parcel.status == 'processed' %}
|
||||
<span class="badge status-pill status-processed">Processed</span>
|
||||
{% elif parcel.status == 'rejected' %}
|
||||
<span class="badge status-pill status-rejected">Rejected</span>
|
||||
{% else %}
|
||||
<span class="badge status-pill status-pending">Pending</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="px-4">{{ parcel.assignee }}</td>
|
||||
<td class="text-muted px-4">{{ parcel.received_date|date:"M d, Y, P" }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="6" class="text-center py-5">
|
||||
<h5 class="mb-2">No parcels found.</h5>
|
||||
<p class="text-muted">Click "Add Parcel" to get started.</p>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
from .views import home
|
||||
app_name = 'core'
|
||||
|
||||
urlpatterns = [
|
||||
path("", home, name="home"),
|
||||
]
|
||||
path('', views.index, name='index'),
|
||||
]
|
||||
@ -1,25 +1,45 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
from django import get_version as django_version
|
||||
from django.shortcuts import render
|
||||
from .models import Parcel
|
||||
from django.utils import timezone
|
||||
import datetime
|
||||
|
||||
def index(request):
|
||||
# If no parcels, create some demo data.
|
||||
if not Parcel.objects.exists():
|
||||
Parcel.objects.create(
|
||||
sender_name='John Doe',
|
||||
sender_email='john.doe@example.com',
|
||||
recipient_name='Jane Smith',
|
||||
recipient_email='jane.smith@example.com',
|
||||
tracking_number='JD123456789',
|
||||
status='pending',
|
||||
assignee='Operator 1',
|
||||
received_date=timezone.now() - datetime.timedelta(days=1)
|
||||
)
|
||||
Parcel.objects.create(
|
||||
sender_name='Peter Jones',
|
||||
sender_email='peter.jones@example.com',
|
||||
recipient_name='Mary Williams',
|
||||
recipient_email='mary.williams@example.com',
|
||||
tracking_number='PJ987654321',
|
||||
status='processed',
|
||||
assignee='Admin',
|
||||
received_date=timezone.now() - datetime.timedelta(hours=5)
|
||||
)
|
||||
Parcel.objects.create(
|
||||
sender_name='Susan Brown',
|
||||
sender_email='susan.brown@example.com',
|
||||
recipient_name='David Miller',
|
||||
recipient_email='david.miller@example.com',
|
||||
tracking_number='SB112233445',
|
||||
status='rejected',
|
||||
assignee='Operator 2',
|
||||
received_date=timezone.now() - datetime.timedelta(days=2)
|
||||
)
|
||||
|
||||
def home(request):
|
||||
"""Render the landing screen with loader and environment details."""
|
||||
host_name = request.get_host().lower()
|
||||
agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
|
||||
now = timezone.now()
|
||||
|
||||
parcels = Parcel.objects.all().order_by('-received_date')
|
||||
context = {
|
||||
"project_name": "New Style",
|
||||
"agent_brand": agent_brand,
|
||||
"django_version": django_version(),
|
||||
"python_version": platform.python_version(),
|
||||
"current_time": now,
|
||||
"host_name": host_name,
|
||||
"project_description": os.getenv("PROJECT_DESCRIPTION", ""),
|
||||
"project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
|
||||
'parcels': parcels,
|
||||
'page_title': 'Mail Screening Portal'
|
||||
}
|
||||
return render(request, "core/index.html", context)
|
||||
return render(request, 'core/index.html', context)
|
||||
@ -1,4 +1,99 @@
|
||||
/* Custom styles for the application */
|
||||
/* General Body and Typography */
|
||||
body {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
background-color: #F3F4F6; /* Cool Gray 100 */
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #1F2937; /* Cool Gray 800 */
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #4F46E5;
|
||||
border-color: #4F46E5;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #4338CA;
|
||||
border-color: #4338CA;
|
||||
}
|
||||
|
||||
/* Avatars */
|
||||
.avatar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
border-radius: 50%;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background-color: #A5B4FC; /* Indigo 300 */
|
||||
}
|
||||
|
||||
.avatar-indigo {
|
||||
background-color: #818CF8;
|
||||
color: #3730A3;
|
||||
}
|
||||
|
||||
|
||||
/* Status Pills */
|
||||
.status-pill {
|
||||
padding: 0.3em 0.8em;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.status-pending {
|
||||
color: #92400E; /* Amber 800 */
|
||||
background-color: #FDE68A; /* Amber 200 */
|
||||
}
|
||||
|
||||
.status-processed {
|
||||
color: #065F46; /* Emerald 800 */
|
||||
background-color: #A7F3D0; /* Emerald 200 */
|
||||
}
|
||||
|
||||
.status-rejected {
|
||||
color: #991B1B; /* Red 800 */
|
||||
background-color: #FECACA; /* Red 200 */
|
||||
}
|
||||
|
||||
/* Table styling */
|
||||
.table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
min-width: 800px;
|
||||
}
|
||||
|
||||
.table thead th {
|
||||
border-bottom-width: 1px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.05em;
|
||||
color: #6B7280; /* Cool Gray 500 */
|
||||
}
|
||||
|
||||
.table tbody tr {
|
||||
transition: background-color 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.table tbody tr:hover {
|
||||
background-color: #F9FAFB; /* Cool Gray 50 */
|
||||
}
|
||||
|
||||
.table td, .table th {
|
||||
vertical-align: middle;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid #E5E7EB; /* Cool Gray 200 */
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
}
|
||||
@ -1,21 +1,99 @@
|
||||
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
/* General Body and Typography */
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: #F3F4F6; /* Cool Gray 100 */
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
color: #1F2937; /* Cool Gray 800 */
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #4F46E5;
|
||||
border-color: #4F46E5;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #4338CA;
|
||||
border-color: #4338CA;
|
||||
}
|
||||
|
||||
/* Avatars */
|
||||
.avatar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
border-radius: 50%;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background-color: #A5B4FC; /* Indigo 300 */
|
||||
}
|
||||
|
||||
.avatar-indigo {
|
||||
background-color: #818CF8;
|
||||
color: #3730A3;
|
||||
}
|
||||
|
||||
|
||||
/* Status Pills */
|
||||
.status-pill {
|
||||
padding: 0.3em 0.8em;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.status-pending {
|
||||
color: #92400E; /* Amber 800 */
|
||||
background-color: #FDE68A; /* Amber 200 */
|
||||
}
|
||||
|
||||
.status-processed {
|
||||
color: #065F46; /* Emerald 800 */
|
||||
background-color: #A7F3D0; /* Emerald 200 */
|
||||
}
|
||||
|
||||
.status-rejected {
|
||||
color: #991B1B; /* Red 800 */
|
||||
background-color: #FECACA; /* Red 200 */
|
||||
}
|
||||
|
||||
/* Table styling */
|
||||
.table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
min-width: 800px;
|
||||
}
|
||||
|
||||
.table thead th {
|
||||
border-bottom-width: 1px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.05em;
|
||||
color: #6B7280; /* Cool Gray 500 */
|
||||
}
|
||||
|
||||
.table tbody tr {
|
||||
transition: background-color 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.table tbody tr:hover {
|
||||
background-color: #F9FAFB; /* Cool Gray 50 */
|
||||
}
|
||||
|
||||
.table td, .table th {
|
||||
vertical-align: middle;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid #E5E7EB; /* Cool Gray 200 */
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user