mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-19 17:46:36 +03:00
Redesign website with interactive demos and improved layout
- Add interactive before/after demos for all skills (UX Writing, Spatial Design, Motion Design, Typography, Interaction Design, Color & Contrast, Responsive Design) - Implement tabbed demo navigation for skills with multiple examples - Refactor app.js into modular JS files (skills.js, commands.js, data.js, skill-demos.js, command-demos.js, demo-toggles.js) - Add new CSS modules (skill-demos.css, workflow.css, problem-section.css, solution-section.css) - Redesign commands section with sidebar nav matching skills layout - Replace large download buttons with compact icon buttons - Fix gray-on-pink color clashing throughout UI - Remove frontend-design skill (Anthropic's work, not ours) - Format skill names properly (e.g., 'UX Writing' not 'ux-writing') - Remove redundant 'Combines Well With' from skills - Add 'The Problem' and 'The Solution' sections to homepage - Various CSS fixes for buttons, backgrounds, and spacing
This commit is contained in:
@@ -0,0 +1,342 @@
|
||||
/**
|
||||
* Commands Navigation - Vertical sidebar with grouped commands
|
||||
*/
|
||||
|
||||
/* Commands nav container */
|
||||
.commands-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
/* Command Nav Groups */
|
||||
.command-nav-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
margin-bottom: var(--s-sm);
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.command-nav-label {
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--c-ash);
|
||||
padding: var(--s-xs) var(--s-md);
|
||||
margin-bottom: 2px;
|
||||
margin-top: var(--s-xs);
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.command-nav-item {
|
||||
padding: var(--s-xs) var(--s-md);
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-left: 2px solid transparent;
|
||||
color: var(--c-ash);
|
||||
font-family: 'Space Grotesk', monospace;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 400;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.command-nav-item:hover {
|
||||
color: var(--c-text);
|
||||
background: color-mix(in oklch, var(--c-paper) 85%, var(--c-accent));
|
||||
}
|
||||
|
||||
.command-nav-item.active {
|
||||
color: var(--c-accent);
|
||||
border-left-color: var(--c-accent);
|
||||
background: color-mix(in oklch, var(--c-accent) 5%, var(--c-paper));
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 968px) {
|
||||
.commands-nav {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--s-xs);
|
||||
}
|
||||
|
||||
.command-nav-group {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--s-xs);
|
||||
margin-bottom: var(--s-sm);
|
||||
}
|
||||
|
||||
.command-nav-label {
|
||||
width: 100%;
|
||||
padding: var(--s-xs) 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.command-nav-item {
|
||||
border-left: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
padding: var(--s-xs) var(--s-sm);
|
||||
}
|
||||
|
||||
.command-nav-item.active {
|
||||
border-bottom-color: var(--c-accent);
|
||||
}
|
||||
}
|
||||
|
||||
/* Workflow Row */
|
||||
.workflow-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--s-md);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.workflow-row-label {
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--c-ash);
|
||||
width: 120px;
|
||||
flex-shrink: 0;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
margin-bottom: var(--s-xs);
|
||||
}
|
||||
}
|
||||
|
||||
.workflow-row-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--s-sm);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Workflow Node */
|
||||
.workflow-node {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 4px 10px;
|
||||
background: transparent;
|
||||
border: 1px solid var(--c-mist);
|
||||
border-radius: 3px;
|
||||
font-family: 'Space Grotesk', monospace;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
color: var(--c-charcoal);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.workflow-node:hover {
|
||||
border-color: var(--c-accent);
|
||||
color: var(--c-accent);
|
||||
background: color-mix(in oklch, var(--c-accent) 5%, transparent);
|
||||
}
|
||||
|
||||
.workflow-node.active {
|
||||
background: var(--c-accent);
|
||||
border-color: var(--c-accent);
|
||||
color: var(--c-paper);
|
||||
}
|
||||
|
||||
/* Workflow Arrow */
|
||||
.workflow-arrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--c-ash);
|
||||
font-size: 1.25rem;
|
||||
padding: 0 var(--s-xs);
|
||||
}
|
||||
|
||||
.workflow-arrow-bidirectional::before {
|
||||
content: '↔';
|
||||
}
|
||||
|
||||
.workflow-arrow-forward::before {
|
||||
content: '→';
|
||||
}
|
||||
|
||||
.workflow-arrow-branch::before {
|
||||
content: '┬';
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
/* Workflow Groups */
|
||||
.workflow-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--s-sm);
|
||||
padding: var(--s-sm);
|
||||
background: color-mix(in oklch, var(--c-paper) 50%, transparent);
|
||||
border: 1px dashed var(--c-mist);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.workflow-group-label {
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 500;
|
||||
color: var(--c-ash);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
writing-mode: vertical-lr;
|
||||
transform: rotate(180deg);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
writing-mode: horizontal-tb;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
margin-bottom: var(--s-xs);
|
||||
}
|
||||
}
|
||||
|
||||
/* Production Flow */
|
||||
.workflow-production {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: var(--s-md);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.workflow-production-stages {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--s-sm);
|
||||
}
|
||||
|
||||
.workflow-stage {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--s-sm);
|
||||
}
|
||||
|
||||
.workflow-stage-label {
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--c-ash);
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.workflow-stage-nodes {
|
||||
display: flex;
|
||||
gap: var(--s-xs);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Aesthetic Adjustments Section */
|
||||
.workflow-aesthetics {
|
||||
border-top: 1px solid var(--c-mist);
|
||||
padding-top: var(--s-lg);
|
||||
margin-top: var(--s-sm);
|
||||
}
|
||||
|
||||
.workflow-aesthetics-title {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--c-ash);
|
||||
margin-bottom: var(--s-md);
|
||||
}
|
||||
|
||||
.workflow-pairs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--s-lg);
|
||||
}
|
||||
|
||||
.workflow-pair {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--s-sm);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.workflow-container {
|
||||
padding: var(--s-md);
|
||||
}
|
||||
|
||||
.workflow-production {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.workflow-stage {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.workflow-stage-label {
|
||||
width: auto;
|
||||
margin-bottom: var(--s-xs);
|
||||
}
|
||||
}
|
||||
|
||||
/* Command Card in Grid */
|
||||
.command-card {
|
||||
padding: var(--s-sm) var(--s-md);
|
||||
background: var(--c-paper);
|
||||
border: 1px solid var(--c-mist);
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-out);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.command-card:hover {
|
||||
border-color: var(--c-accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px color-mix(in oklch, var(--c-accent) 10%, transparent);
|
||||
}
|
||||
|
||||
.command-card.active {
|
||||
border-color: var(--c-accent);
|
||||
background: color-mix(in oklch, var(--c-accent) 5%, var(--c-paper));
|
||||
}
|
||||
|
||||
.command-card-name {
|
||||
font-family: 'Space Grotesk', monospace;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 500;
|
||||
color: var(--c-text);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.command-card-desc {
|
||||
font-size: 0.75rem;
|
||||
color: var(--c-ash);
|
||||
line-height: 1.4;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Category badge on command card */
|
||||
.command-card-category {
|
||||
display: inline-block;
|
||||
font-size: 0.625rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
padding: 2px 6px;
|
||||
background: var(--c-mist);
|
||||
color: var(--c-ash);
|
||||
border-radius: 2px;
|
||||
margin-top: var(--s-xs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user