Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Personal notes
FEATURES.md
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>imagevislab</title>
<title>ImageVisLab - PDI Simulator</title>
</head>
<body>
<div id="root"></div>
Expand Down
17 changes: 17 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
148 changes: 148 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,152 @@
font-size: 1rem;
color: var(--color-text-secondary);
animation: pulse 1.5s ease-in-out infinite;
}

/* =============================================================================
Resize Modal
============================================================================= */

.resize-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
animation: fadeIn 0.2s ease;
}

.resize-modal {
background: linear-gradient(145deg,
rgba(30, 30, 40, 0.95),
rgba(20, 20, 28, 0.98));
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 2rem 2.5rem;
max-width: 420px;
width: 90%;
text-align: center;
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.5),
0 0 40px rgba(138, 99, 210, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
from {
opacity: 0;
transform: scale(0.95) translateY(-10px);
}

to {
opacity: 1;
transform: scale(1) translateY(0);
}
}

.resize-modal-icon {
font-size: 3rem;
margin-bottom: 0.5rem;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.resize-modal-title {
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text-primary);
margin: 0 0 0.75rem 0;
}

.resize-modal-size {
margin: 0 0 0.75rem 0;
}

.size-original {
font-family: var(--font-mono);
font-size: 1.25rem;
font-weight: 600;
color: #f59e0b;
background: rgba(245, 158, 11, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 6px;
}

.resize-modal-warning {
font-size: 0.9rem;
color: var(--color-text-secondary);
margin: 0 0 1.25rem 0;
line-height: 1.5;
}

.resize-modal-recommend {
display: flex;
flex-direction: column;
gap: 0.25rem;
margin-bottom: 1.5rem;
padding: 0.75rem;
background: rgba(34, 197, 94, 0.1);
border-radius: 8px;
border: 1px solid rgba(34, 197, 94, 0.2);
}

.recommend-label {
font-size: 0.8rem;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.recommend-size {
font-family: var(--font-mono);
font-size: 1.1rem;
font-weight: 600;
color: #22c55e;
}

.resize-modal-buttons {
display: flex;
gap: 0.75rem;
justify-content: center;
}

.resize-btn {
padding: 0.75rem 1.5rem;
font-size: 0.95rem;
font-weight: 500;
border-radius: 8px;
border: none;
cursor: pointer;
transition: all 0.2s ease;
min-width: 140px;
}

.resize-btn-primary {
background: linear-gradient(135deg, #8a63d2, #6b4db3);
color: white;
box-shadow: 0 4px 12px rgba(138, 99, 210, 0.3);
}

.resize-btn-primary:hover {
background: linear-gradient(135deg, #9b74e3, #7c5ec4);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(138, 99, 210, 0.4);
}

.resize-btn-secondary {
background: rgba(255, 255, 255, 0.08);
color: var(--color-text-secondary);
border: 1px solid rgba(255, 255, 255, 0.15);
}

.resize-btn-secondary:hover {
background: rgba(255, 255, 255, 0.12);
color: var(--color-text-primary);
border-color: rgba(255, 255, 255, 0.25);
}
Loading
Loading