Compare commits
No commits in common. "ai-dev" and "master" have entirely different histories.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,13 +1,3 @@
|
||||
from django.contrib import admin
|
||||
from .models import Client, Case
|
||||
|
||||
@admin.register(Client)
|
||||
class ClientAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'email', 'phone', 'created_at')
|
||||
search_fields = ('name', 'email')
|
||||
|
||||
@admin.register(Case)
|
||||
class CaseAdmin(admin.ModelAdmin):
|
||||
list_display = ('case_number', 'case_title', 'client', 'status', 'created_at')
|
||||
list_filter = ('status', 'client')
|
||||
search_fields = ('case_number', 'case_title')
|
||||
# Register your models here.
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
# Generated by Django 5.2.7 on 2025-12-21 18:03
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Client',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=200, verbose_name='Name')),
|
||||
('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')),
|
||||
('phone', models.CharField(blank=True, max_length=20, null=True, verbose_name='Phone')),
|
||||
('address', models.TextField(blank=True, null=True, verbose_name='Address')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Case',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('case_title', models.CharField(max_length=200, verbose_name='Case Title')),
|
||||
('case_number', models.CharField(max_length=50, unique=True, verbose_name='Case Number')),
|
||||
('status', models.CharField(choices=[('OPEN', 'Open'), ('CLOSED', 'Closed'), ('PENDING', 'Pending')], default='OPEN', max_length=10, verbose_name='Status')),
|
||||
('description', models.TextField(verbose_name='Description')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cases', to='core.client')),
|
||||
],
|
||||
),
|
||||
]
|
||||
Binary file not shown.
@ -1,33 +1,3 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
class Client(models.Model):
|
||||
name = models.CharField(_("Name"), max_length=200)
|
||||
email = models.EmailField(_("Email"), max_length=254, unique=True)
|
||||
phone = models.CharField(_("Phone"), max_length=20, blank=True, null=True)
|
||||
address = models.TextField(_("Address"), blank=True, null=True)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Case(models.Model):
|
||||
class CaseStatus(models.TextChoices):
|
||||
OPEN = 'OPEN', _('Open')
|
||||
CLOSED = 'CLOSED', _('Closed')
|
||||
PENDING = 'PENDING', _('Pending')
|
||||
|
||||
case_title = models.CharField(_("Case Title"), max_length=200)
|
||||
case_number = models.CharField(_("Case Number"), max_length=50, unique=True)
|
||||
client = models.ForeignKey(Client, on_delete=models.CASCADE, related_name='cases')
|
||||
status = models.CharField(
|
||||
_("Status"),
|
||||
max_length=10,
|
||||
choices=CaseStatus.choices,
|
||||
default=CaseStatus.OPEN,
|
||||
)
|
||||
description = models.TextField(_("Description"))
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.case_number}: {self.case_title}"
|
||||
# Create your models here.
|
||||
|
||||
@ -1,61 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<title>{% block title %}PI Case Management{% endblock %}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<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=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
<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 %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header class="navbar navbar-expand-lg navbar-light bg-light sticky-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/">PI Case Master</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">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/admin/">Admin</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container mt-4">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer class="footer mt-auto py-3 bg-light">
|
||||
<div class="container text-center">
|
||||
<span class="text-muted">© {% now "Y" %} PI Case Master. All rights reserved.</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -1,39 +1,145 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Dashboard - PI Case Management{% endblock %}
|
||||
{% 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>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="hero-section text-center p-5 rounded-3 mb-4">
|
||||
<h1 class="display-4">Case Dashboard</h1>
|
||||
<p class="lead">Welcome to your private investigation case management system.</p>
|
||||
<a href="/admin/core/case/add/" class="btn btn-primary btn-lg">Add New Case</a>
|
||||
<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>
|
||||
|
||||
<h2 class="mb-4">Active Cases</h2>
|
||||
|
||||
<div class="row">
|
||||
{% for case in cases %}
|
||||
<div class="col-md-6 col-lg-4 mb-4">
|
||||
<div class="card h-100 case-card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{ case.case_title }}</h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted">Case #{{ case.case_number }}</h6>
|
||||
<p class="card-text"><strong>Client:</strong> {{ case.client.name }}</p>
|
||||
<p class="card-text"><strong>Status:</strong> <span class="badge status-{{ case.status|lower }}">{{ case.get_status_display }}</span></p>
|
||||
<p class="card-text">{{ case.description|truncatewords:20 }}</p>
|
||||
</div>
|
||||
<div class="card-footer text-end">
|
||||
<a href="#" class="btn btn-secondary btn-sm">View Details</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
<div class="col">
|
||||
<div class="alert alert-info" role="alert">
|
||||
No cases found. <a href="/admin/core/case/add/" class="alert-link">Create your first case</a> to get started.
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<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>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
||||
</footer>
|
||||
{% endblock %}
|
||||
@ -1,7 +1,7 @@
|
||||
from django.urls import path
|
||||
from .views import IndexView, ArticleDetailView
|
||||
|
||||
from .views import home
|
||||
|
||||
urlpatterns = [
|
||||
path("", IndexView.as_view(), name="index"),
|
||||
path("article/<int:pk>", ArticleDetailView.as_view(), name="article_detail"),
|
||||
path("", home, name="home"),
|
||||
]
|
||||
@ -1,14 +1,25 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
from django import get_version as django_version
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import TemplateView, DetailView
|
||||
from .models import Case
|
||||
from django.utils import timezone
|
||||
|
||||
class IndexView(TemplateView):
|
||||
template_name = 'core/index.html'
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['cases'] = Case.objects.all().order_by('-created_at')
|
||||
return context
|
||||
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()
|
||||
|
||||
class ArticleDetailView(DetailView):
|
||||
template_name = 'core/article_detail.html'
|
||||
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", ""),
|
||||
}
|
||||
return render(request, "core/index.html", context)
|
||||
|
||||
@ -1,173 +1,4 @@
|
||||
:root {
|
||||
--primary-color: #2F3C7E;
|
||||
--secondary-color: #FBEAEB;
|
||||
--accent-color: #F08A5D;
|
||||
--text-color: #333333;
|
||||
--bg-color: #FFFFFF;
|
||||
--heading-font: 'Poppins', sans-serif;
|
||||
--body-font: 'Lato', sans-serif;
|
||||
}
|
||||
|
||||
/* Custom styles for the application */
|
||||
body {
|
||||
font-family: var(--body-font);
|
||||
color: var(--text-color);
|
||||
background-color: var(--bg-color);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, .navbar-brand, .display-4 {
|
||||
font-family: var(--heading-font);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Mobile-first adjustments */
|
||||
h1 {
|
||||
font-size: 2.5rem; /* Base font size for mobile */
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem; /* Smaller on mobile */
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
background-color: var(--secondary-color);
|
||||
padding: 2rem 1rem; /* More padding on mobile */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-section h1 {
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #1e2a60;
|
||||
border-color: #1e2a60;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: var(--accent-color);
|
||||
border-color: var(--accent-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #d87140;
|
||||
border-color: #d87140;
|
||||
}
|
||||
|
||||
.case-card {
|
||||
transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
|
||||
border: 1px solid #ddd;
|
||||
margin-bottom: 1rem; /* Space between cards on mobile */
|
||||
}
|
||||
|
||||
.case-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.case-card .card-title {
|
||||
color: var(--primary-color);
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem; /* Smaller on mobile */
|
||||
}
|
||||
|
||||
.case-card .card-text {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
background-color: #f9f9f9;
|
||||
border-top: 1px solid #eee;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.status-open {
|
||||
background-color: #28a745 !important;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.status-closed {
|
||||
background-color: #6c757d !important;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.status-pending {
|
||||
background-color: #ffc107 !important;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Medium devices (tablets, 768px and up) */
|
||||
@media (min-width: 768px) {
|
||||
h1 {
|
||||
font-size: 3.5rem; /* Larger on tablets */
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-size: 1.5rem; /* Default size */
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 3rem 2rem;
|
||||
}
|
||||
|
||||
.case-card {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.case-card .card-title {
|
||||
font-size: 1.5rem; /* Default size */
|
||||
}
|
||||
}
|
||||
|
||||
/* Large devices (desktops, 992px and up) */
|
||||
@media (min-width: 992px) {
|
||||
h1 {
|
||||
font-size: 4rem; /* Even larger on desktops */
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 4rem 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Extra large devices (large desktops, 1200px and up) */
|
||||
@media (min-width: 1200px) {
|
||||
.hero-section {
|
||||
padding: 5rem 4rem;
|
||||
}
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
|
||||
@ -1,173 +1,21 @@
|
||||
|
||||
:root {
|
||||
--primary-color: #2F3C7E;
|
||||
--secondary-color: #FBEAEB;
|
||||
--accent-color: #F08A5D;
|
||||
--text-color: #333333;
|
||||
--bg-color: #FFFFFF;
|
||||
--heading-font: 'Poppins', sans-serif;
|
||||
--body-font: 'Lato', sans-serif;
|
||||
--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);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--body-font);
|
||||
color: var(--text-color);
|
||||
background-color: var(--bg-color);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, .navbar-brand, .display-4 {
|
||||
font-family: var(--heading-font);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Mobile-first adjustments */
|
||||
h1 {
|
||||
font-size: 2.5rem; /* Base font size for mobile */
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem; /* Smaller on mobile */
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
background-color: var(--secondary-color);
|
||||
padding: 2rem 1rem; /* More padding on mobile */
|
||||
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;
|
||||
}
|
||||
|
||||
.hero-section h1 {
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #1e2a60;
|
||||
border-color: #1e2a60;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: var(--accent-color);
|
||||
border-color: var(--accent-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #d87140;
|
||||
border-color: #d87140;
|
||||
}
|
||||
|
||||
.case-card {
|
||||
transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
|
||||
border: 1px solid #ddd;
|
||||
margin-bottom: 1rem; /* Space between cards on mobile */
|
||||
}
|
||||
|
||||
.case-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.case-card .card-title {
|
||||
color: var(--primary-color);
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem; /* Smaller on mobile */
|
||||
}
|
||||
|
||||
.case-card .card-text {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
background-color: #f9f9f9;
|
||||
border-top: 1px solid #eee;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.status-open {
|
||||
background-color: #28a745 !important;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.status-closed {
|
||||
background-color: #6c757d !important;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.status-pending {
|
||||
background-color: #ffc107 !important;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Medium devices (tablets, 768px and up) */
|
||||
@media (min-width: 768px) {
|
||||
h1 {
|
||||
font-size: 3.5rem; /* Larger on tablets */
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-size: 1.5rem; /* Default size */
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 3rem 2rem;
|
||||
}
|
||||
|
||||
.case-card {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.case-card .card-title {
|
||||
font-size: 1.5rem; /* Default size */
|
||||
}
|
||||
}
|
||||
|
||||
/* Large devices (desktops, 992px and up) */
|
||||
@media (min-width: 992px) {
|
||||
h1 {
|
||||
font-size: 4rem; /* Even larger on desktops */
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 4rem 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Extra large devices (large desktops, 1200px and up) */
|
||||
@media (min-width: 1200px) {
|
||||
.hero-section {
|
||||
padding: 5rem 4rem;
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user