- Show actual server error message when project creation fails - Add console logging to debug project creation Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
420 lines
7.6 KiB
CSS
420 lines
7.6 KiB
CSS
/**
|
|
* Projects Landing Page - CodeNomad Style
|
|
* Clean, centered hero + project cards grid
|
|
*/
|
|
|
|
body.sessions-page {
|
|
background: #0d0d0d;
|
|
min-height: 100vh;
|
|
padding-top: 70px; /* Space for fixed nav */
|
|
}
|
|
|
|
/* === Hero Section (CodeNomad style) === */
|
|
.hero-section {
|
|
min-height: 70vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 120px 20px 80px;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero-logo {
|
|
font-size: 64px;
|
|
font-weight: 700;
|
|
margin: 0 0 24px 0;
|
|
background: linear-gradient(135deg, #4a9eff 0%, #a78bfa 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 18px;
|
|
color: #888;
|
|
margin: 0 0 48px 0;
|
|
}
|
|
|
|
.btn-select-folder {
|
|
padding: 16px 32px;
|
|
background: linear-gradient(135deg, #4a9eff 0%, #a78bfa 100%);
|
|
border: none;
|
|
border-radius: 12px;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
|
|
}
|
|
|
|
.btn-select-folder:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 30px rgba(74, 158, 255, 0.5);
|
|
}
|
|
|
|
.btn-select-folder:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-select-folder .icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.keyboard-hint {
|
|
margin-top: 24px;
|
|
font-size: 14px;
|
|
color: #888;
|
|
}
|
|
|
|
.keyboard-hint kbd {
|
|
background: #252525;
|
|
border: 1px solid #444;
|
|
border-radius: 6px;
|
|
padding: 4px 10px;
|
|
font-family: monospace;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.example-hint {
|
|
margin-top: 16px;
|
|
font-size: 13px;
|
|
color: #666;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* === Projects Section === */
|
|
.projects-section {
|
|
padding: 60px 20px 80px;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.projects-section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.projects-section-title {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
color: #e0e0e0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* === Projects Grid === */
|
|
.projects-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
/* === Project Card === */
|
|
.project-card {
|
|
background: #1a1a1a;
|
|
border: 1px solid #333;
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.project-card:hover {
|
|
background: #222;
|
|
border-color: #4a9eff;
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.project-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.project-icon {
|
|
font-size: 40px;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.project-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.project-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #e0e0e0;
|
|
margin: 0 0 4px 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.project-path {
|
|
font-size: 13px;
|
|
color: #888;
|
|
font-family: monospace;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.project-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
.meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: #888;
|
|
}
|
|
|
|
.meta-item .icon {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.session-count {
|
|
background: #252525;
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.last-activity {
|
|
flex: 1;
|
|
}
|
|
|
|
.project-sources {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.source-badge {
|
|
font-size: 11px;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.source-badge.cli {
|
|
background: rgba(74, 158, 255, 0.15);
|
|
color: #4a9eff;
|
|
}
|
|
|
|
.source-badge.web {
|
|
background: rgba(167, 139, 250, 0.15);
|
|
color: #a78bfa;
|
|
}
|
|
|
|
.source-badge.both {
|
|
background: rgba(81, 207, 102, 0.15);
|
|
color: #51cf66;
|
|
}
|
|
|
|
/* === Empty States === */
|
|
.projects-empty {
|
|
text-align: center;
|
|
padding: 80px 40px;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 64px;
|
|
margin-bottom: 24px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #e0e0e0;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.empty-subtitle {
|
|
font-size: 16px;
|
|
color: #888;
|
|
margin: 0 0 32px 0;
|
|
}
|
|
|
|
/* === Loading State === */
|
|
.projects-loading {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #888;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid #333;
|
|
border-top-color: #4a9eff;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* === Error State === */
|
|
.projects-error {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
/* === Responsive === */
|
|
@media (max-width: 768px) {
|
|
.hero-logo {
|
|
font-size: 48px;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.projects-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.projects-section-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
}
|
|
|
|
.btn-select-folder {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.hero-section {
|
|
padding: 100px 16px 60px;
|
|
}
|
|
|
|
.project-card {
|
|
padding: 20px;
|
|
}
|
|
|
|
.project-meta {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
/* === Navigation (keep existing) === */
|
|
.nav-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(13, 13, 13, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid #333;
|
|
padding: 16px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.nav-logo {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, #4a9eff 0%, #a78bfa 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-link {
|
|
padding: 8px 16px;
|
|
background: transparent;
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
color: #e0e0e0;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: #252525;
|
|
border-color: #4a9eff;
|
|
color: #4a9eff;
|
|
}
|
|
|
|
.nav-link.active {
|
|
background: rgba(74, 158, 255, 0.15);
|
|
border-color: #4a9eff;
|
|
color: #4a9eff;
|
|
}
|
|
|
|
.nav-logout {
|
|
padding: 8px 16px;
|
|
background: transparent;
|
|
border: none;
|
|
color: #888;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.nav-logout:hover {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.hero-section {
|
|
padding-top: 100px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.nav-header {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.nav-logo {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.nav-link {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.hero-section {
|
|
padding-top: 80px;
|
|
}
|
|
}
|