338 lines
13 KiB
HTML
338 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="da">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Designforslag - Sagsdetaljer & Kommentarer</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
|
<style>
|
|
body {
|
|
background: #f0f2f5;
|
|
padding: 3rem 1rem;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
}
|
|
.container {
|
|
max-width: 900px;
|
|
}
|
|
.proposal-wrapper {
|
|
background: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.06);
|
|
padding: 2rem;
|
|
margin-bottom: 4rem;
|
|
}
|
|
.proposal-title {
|
|
border-bottom: 2px solid #f0f2f5;
|
|
padding-bottom: 1rem;
|
|
margin-bottom: 2rem;
|
|
color: #0f4c75;
|
|
}
|
|
|
|
/* Fælles: Opgavebeskrivelse kort */
|
|
.desc-card {
|
|
background: #fff;
|
|
border: 1px solid #e1e4e8;
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.desc-label {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: #6c757d;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* ---------------------------------------------------
|
|
FORSLAG 1: CHAT / MESSENGER STYLE
|
|
--------------------------------------------------- */
|
|
.chat-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
.chat-msg {
|
|
max-width: 85%;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
position: relative;
|
|
}
|
|
.chat-internal {
|
|
align-self: flex-end;
|
|
background-color: #e3f2fd;
|
|
border-bottom-right-radius: 2px;
|
|
color: #084298;
|
|
}
|
|
.chat-customer {
|
|
align-self: flex-start;
|
|
background-color: #f1f3f5;
|
|
border-bottom-left-radius: 2px;
|
|
color: #212529;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
.chat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.8rem;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* ---------------------------------------------------
|
|
FORSLAG 2: TIMELINE / ACTIVITY FEED
|
|
--------------------------------------------------- */
|
|
.timeline {
|
|
position: relative;
|
|
padding-left: 3rem;
|
|
margin-top: 1rem;
|
|
}
|
|
.timeline::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 17px;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 2px;
|
|
background: #e9ecef;
|
|
}
|
|
.timeline-item {
|
|
position: relative;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.timeline-icon {
|
|
position: absolute;
|
|
left: -3rem;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: white;
|
|
border: 2px solid #e9ecef;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1;
|
|
font-size: 1.1rem;
|
|
}
|
|
.icon-internal { border-color: #ffc107; color: #ffc107; }
|
|
.icon-customer { border-color: #198754; color: #198754; }
|
|
.icon-system { border-color: #6c757d; color: #6c757d; }
|
|
|
|
.timeline-content {
|
|
background: white;
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
|
|
padding: 1.25rem;
|
|
}
|
|
.timeline-meta {
|
|
font-size: 0.85rem;
|
|
color: #6c757d;
|
|
margin-bottom: 0.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* ---------------------------------------------------
|
|
FORSLAG 3: CLEAN CARDS MED FARVEKODER (Trello/Jira style)
|
|
--------------------------------------------------- */
|
|
.comment-card {
|
|
background: white;
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
margin-bottom: 1.5rem;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
|
}
|
|
.comment-card.type-internal {
|
|
border-left: 4px solid #ffc107; /* Gul venstre kant for intern */
|
|
}
|
|
.comment-card.type-customer {
|
|
border-left: 4px solid #0dcaf0; /* Blå/grøn venstre kant for kunde */
|
|
}
|
|
.card-header-clean {
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e9ecef;
|
|
padding: 0.75rem 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.card-header-clean .author {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.badge-type {
|
|
font-size: 0.7rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 12px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<div class="mb-5 text-center">
|
|
<h1 class="fw-bold" style="color: #0f4c75;">UI Forslag: Sagsdetaljer & Kommentarer</h1>
|
|
<p class="text-muted">3 forskellige måder at redesigne "Opgavebeskrivelse" og "Kommentarer" på, uden at røre live-koden endnu.</p>
|
|
</div>
|
|
|
|
<!-- FORSLAG 1 -->
|
|
<div class="proposal-wrapper">
|
|
<h3 class="proposal-title"><i class="bi bi-chat-dots me-2"></i>Forslag 1: Chat / Messenger UI</h3>
|
|
<p class="text-muted mb-4">Gør det nemt at adskille hvem der siger hvad. Interne noter (højre, blå), kundens svar (venstre, grå). Beskrivelsen er "låst" i toppen som opgavens udgangspunkt.</p>
|
|
|
|
<div class="desc-card">
|
|
<div class="desc-label">
|
|
<span><i class="bi bi-card-text me-2"></i>Opgavebeskrivelse</span>
|
|
<a href="#" class="text-decoration-none text-muted"><i class="bi bi-pencil-square"></i> Rediger</a>
|
|
</div>
|
|
<p class="mb-0">awrtqerqerg</p>
|
|
</div>
|
|
|
|
<div class="chat-container mt-4">
|
|
<div class="chat-msg chat-internal">
|
|
<div class="chat-header">
|
|
<span><i class="bi bi-lock-fill me-1"></i> Hurtig kommentar (Intern)</span>
|
|
<span class="small fw-normal">19/03-2026 06:34</span>
|
|
</div>
|
|
<div>tiest</div>
|
|
</div>
|
|
|
|
<div class="chat-msg chat-internal">
|
|
<div class="chat-header">
|
|
<span><i class="bi bi-lock-fill me-1"></i> Hurtig kommentar (Intern)</span>
|
|
<span class="small fw-normal">19/03-2026 07:30</span>
|
|
</div>
|
|
<div>test</div>
|
|
</div>
|
|
|
|
<div class="chat-msg chat-customer">
|
|
<div class="chat-header">
|
|
<span><i class="bi bi-person-circle me-1"></i> Bruger / Kunde svar</span>
|
|
<span class="small fw-normal">19/03-2026 08:03</span>
|
|
</div>
|
|
<div>sdfsdfsdfgsg</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- FORSLAG 2 -->
|
|
<div class="proposal-wrapper">
|
|
<h3 class="proposal-title"><i class="bi bi-clock-history me-2"></i>Forslag 2: Timeline / Activity Feed</h3>
|
|
<p class="text-muted mb-4">Inspireret af GitHub Issues. En lodret historik-streg samler oprettelse, kommentarer og ændringer i et nemt læsbart flow.</p>
|
|
|
|
<div class="timeline">
|
|
<!-- Beskrivelsen som første post i timelinen -->
|
|
<div class="timeline-item">
|
|
<div class="timeline-icon icon-system"><i class="bi bi-flag-fill"></i></div>
|
|
<div class="timeline-content">
|
|
<div class="timeline-meta">
|
|
<strong>Sag oprettet</strong> • Beskrivelse tilføjet
|
|
<div class="ms-auto"><a href="#" class="text-muted"><i class="bi bi-pencil"></i></a></div>
|
|
</div>
|
|
<div class="p-3 bg-light rounded border">
|
|
awrtqerqerg
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="timeline-item">
|
|
<div class="timeline-icon icon-internal"><i class="bi bi-chat-square-text"></i></div>
|
|
<div class="timeline-content">
|
|
<div class="timeline-meta">
|
|
<strong>Hurtig kommentar</strong> (Intern note)
|
|
<span class="ms-auto text-muted small">19/03-2026 06:34</span>
|
|
</div>
|
|
<div>tiest</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="timeline-item">
|
|
<div class="timeline-icon icon-customer"><i class="bi bi-envelope"></i></div>
|
|
<div class="timeline-content" style="border-color: #c3e6cb;">
|
|
<div class="timeline-meta text-success">
|
|
<strong>Bruger</strong> (Svar fra kunde)
|
|
<span class="ms-auto text-muted small">19/03-2026 08:03</span>
|
|
</div>
|
|
<div>sdfsdfsdfgsg</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- FORSLAG 3 -->
|
|
<div class="proposal-wrapper">
|
|
<h3 class="proposal-title"><i class="bi bi-card-list me-2"></i>Forslag 3: Clean Cards (Farvekodet venstre kant)</h3>
|
|
<p class="text-muted mb-4">Meget stilrent design til CRM / Enterprise systemer. Bevarer fuld bredde for lang tekst, men bruger en tyk farvekode på venstre kant til at identificere typen lynhurtigt.</p>
|
|
|
|
<div class="desc-card shadow-sm" style="border-top: 4px solid #0f4c75;">
|
|
<div class="desc-label">
|
|
<span>Opgavebeskrivelse</span>
|
|
<button class="btn btn-sm btn-outline-secondary py-0"><i class="bi bi-pencil"></i> Rediger</button>
|
|
</div>
|
|
<p class="mb-0 fs-5">awrtqerqerg</p>
|
|
</div>
|
|
|
|
<h5 class="mb-3 mt-5" style="color: #6c757d; font-size: 0.9rem; text-transform: uppercase;">Kommentarer & Historik</h5>
|
|
|
|
<div class="comment-card type-internal">
|
|
<div class="card-header-clean">
|
|
<div class="author">
|
|
<div class="bg-warning text-dark rounded-circle d-flex align-items-center justify-content-center" style="width:24px; height:24px; font-size:0.75rem;"><i class="bi bi-lock-fill"></i></div>
|
|
Hurtig kommentar
|
|
<span class="badge bg-warning text-dark badge-type ms-2">Intern Note</span>
|
|
</div>
|
|
<div class="text-muted small">19/03-2026 06:34</div>
|
|
</div>
|
|
<div class="card-body p-3">
|
|
tiest
|
|
</div>
|
|
</div>
|
|
|
|
<div class="comment-card type-internal">
|
|
<div class="card-header-clean">
|
|
<div class="author">
|
|
<div class="bg-warning text-dark rounded-circle d-flex align-items-center justify-content-center" style="width:24px; height:24px; font-size:0.75rem;"><i class="bi bi-lock-fill"></i></div>
|
|
Hurtig kommentar
|
|
<span class="badge bg-warning text-dark badge-type ms-2">Intern Note</span>
|
|
</div>
|
|
<div class="text-muted small">19/03-2026 07:59</div>
|
|
</div>
|
|
<div class="card-body p-3">
|
|
adfgaegea hsrhsh
|
|
</div>
|
|
</div>
|
|
|
|
<div class="comment-card type-customer">
|
|
<div class="card-header-clean">
|
|
<div class="author">
|
|
<div class="bg-info text-white rounded-circle d-flex align-items-center justify-content-center" style="width:24px; height:24px; font-size:0.75rem;"><i class="bi bi-person-fill"></i></div>
|
|
Bruger
|
|
<span class="badge bg-info text-dark badge-type ms-2">Kunde</span>
|
|
</div>
|
|
<div class="text-muted small">19/03-2026 08:03</div>
|
|
</div>
|
|
<div class="card-body p-3">
|
|
sdfsdfsdfgsg
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html> |