File size: 4,706 Bytes
8c440cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# InSono Design Guidelines

## Design Approach
**Selected Framework:** Material Design Medical Variant
**Rationale:** Medical research applications require clarity, trust, and efficiency. Material Design's elevation system and structured layouts provide excellent information hierarchy while maintaining professional credibility.

## Layout Architecture

**Spacing System:** Tailwind units of 4, 6, 8, 12, and 16 for consistent rhythm
- Component padding: p-6 to p-8
- Section spacing: py-12 to py-16
- Card margins: gap-6 to gap-8

**Container Strategy:**
- Primary workspace: max-w-7xl mx-auto px-6
- Metadata panels: max-w-sm for optimal readability
- Image viewers: Flexible width within constraints

## Typography Hierarchy

**Font Family:** 
- Primary: 'Inter' (Google Fonts) - exceptional readability for medical data
- Mono: 'JetBrains Mono' - metadata and technical values

**Scale:**
- App Title: text-3xl font-bold
- Section Headers: text-xl font-semibold
- Subsections: text-lg font-medium
- Body Text: text-base
- Metadata Labels: text-sm font-medium uppercase tracking-wide
- Metadata Values: text-sm font-mono

## Component Architecture

### Navigation Header
Fixed top bar with elevation (shadow-md):
- Logo + "InSono" branding on left
- Navigation links center-right: "Process Images", "About", "Documentation"
- Compact height (h-16)
- Research disclaimer badge (small, subtle)

### Upload Zone (Homepage Primary)
Full-width card with dashed border and centered content:
- Large upload icon (w-16 h-16)
- "Drag & Drop Ultrasound Images" headline
- Supported formats listed below: "PNG, JPG, DICOM (.dcm)"
- "Browse Files" secondary button
- File size limit indicator: "Max 50MB per file"
- Minimum height: min-h-96 for generous target area

### Processing Controls Panel
Horizontal card with segmented controls:
- Gaussian Blur slider (0-10 range) with live value display
- CLAHE toggle + intensity slider
- "Apply Processing" primary action button
- "Reset to Original" text button
- All controls inline for quick access

### Image Comparison Viewer
Side-by-side layout with equal-width columns (grid-cols-2):
- Column headers: "Original Image" | "Processed Image"
- Synchronized zoom/pan controls
- Image containers with aspect-ratio preservation
- Border between images for clear separation
- Pan/zoom indicators overlay bottom-right

### Metadata Display Panel
Vertical card (sticky positioning on scroll):
- Grouped sections with clear dividers
- **File Information**: Dimensions, file size, format
- **DICOM Tags** (when applicable): Modality, Study Date, Series Description
- **Processing Log**: Applied filters with parameters
- Each metadata item: Label (uppercase, muted) + Value (prominent, mono font)

### Privacy Controls
Floating action card above image viewer:
- "Pseudonymize Patient Info" toggle button
- When active: Semi-transparent black overlay (top-left 200x100px)
- Visual indicator showing protected region
- Warning text: "Protected area applied to export"

### Footer Disclaimer
Full-width, elevated section:
- Large warning icon
- Bold text: "RESEARCH USE ONLY - Not for Clinical Diagnosis"
- Secondary text explaining intended research use
- Links to documentation and compliance information
- Padding: py-8

## Interaction Patterns

**Drag & Drop States:**
- Default: Dashed border, neutral state
- Drag Over: Solid border, subtle scale transform
- Processing: Progress indicator overlay
- Error: Red border pulse animation

**Button Hierarchy:**
- Primary actions: Filled buttons with shadow
- Secondary actions: Outlined buttons
- Tertiary actions: Text-only buttons
- All buttons: Rounded corners (rounded-lg)

**Loading States:**
- Skeleton screens for image placeholders
- Linear progress bar for processing operations
- Spinner for metadata loading

## Visual Principles

**Medical Professionalism:**
- High contrast for readability
- Clear visual hierarchy
- Minimal decorative elements
- Focus on functionality and data clarity

**Trust Indicators:**
- Consistent elevation system (shadow-sm, shadow-md, shadow-lg)
- Professional typography
- Clear error messages and validation
- Visible privacy controls

**Information Density:**
- Comfortable spacing between elements
- Grouped related information
- Scannable metadata labels
- Clear visual separation between sections

## Images

**No large hero image** - This is a utility tool requiring immediate functionality access. All visual focus goes to uploaded ultrasound images within the processing interface.

## Responsive Behavior

**Desktop (lg+):** Side-by-side comparison, metadata sidebar
**Tablet (md):** Stacked comparison, metadata below
**Mobile:** Single column, collapsible metadata panel