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
32 changes: 32 additions & 0 deletions src/__tests__/identity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2646,6 +2646,38 @@ describe('identity copy', () => {
expect(home).not.toContain('mailto:');
});

it('keeps home proof continue clear of the docked composer on short desktop (#812)', () => {
const home = readFileSync('src/pages/index.astro', 'utf8');
expect(home).toContain('class="proof-affordance"');
expect(home).toContain('Read the case');
expect(home).toContain('min-height: 44px');
expect(home).toContain('min-width: 44px');
expect(home).toContain('text-decoration: underline');
expect(home).toContain('@media (min-width: 50em) and (max-height: 52em)');
expect(home).toMatch(
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.hero-copy\s*\{[\s\S]*?gap:\s*0\.35rem/
);
expect(home).toMatch(
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.proof-card\s*\{[\s\S]*?gap:\s*0\.2rem/
);
expect(home).toMatch(
/@media \(min-width: 50em\)[\s\S]*?\.hero-copy :global\(\.stack\.gap-4\)[\s\S]*?gap:\s*0\.5rem/
);
expect(home).toContain('padding-bottom: 36dvh');
expect(home).toContain('class="cta-hint">LinkedIn</p>');
expect(home).not.toContain('LinkedIn · replies from me');
expect(home).not.toContain('mailto:');
expect(home).toContain('https://www.linkedin.com/in/alehar/');
expect(home).toContain('Get in touch');
expect(home).toContain('Up to 2x faster delivery');
expect(home).toContain('Took the design system from first version to IFS Cloud.');
expect(home).not.toContain('Explore');
expect(home).not.toContain('See my work');
expect(home).not.toContain('padding: 1.5rem');
expect(home).not.toContain('border-radius: 1.5rem');
expect(home).not.toContain('box-shadow: var(--shadow-sm)');
});

it('tightens What’s New narrow-viewport spacing so Last-30 lines clear the composer (#802)', () => {
const page = readFileSync('src/pages/whats-new.astro', 'utf8');
const glance = readFileSync('src/utils/whats-new-glance.ts', 'utf8');
Expand Down
46 changes: 45 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ const schema = {
color: var(--gray-300);
text-decoration: underline;
text-underline-offset: 0.2em;
display: inline-flex;
align-items: center;
min-height: 44px;
min-width: 44px;
box-sizing: border-box;
}

@media (min-width: 50em) {
Expand All @@ -228,18 +233,57 @@ const schema = {

.hero {
padding-inline: 2.5rem;
gap: 1.75rem;
gap: 0.85rem;
padding-bottom: 0;
}

.hero-copy {
gap: 0.5rem;
}

.hero-actions {
margin-top: 0.25rem;
justify-content: flex-start;
align-items: flex-start;
}

.hero-dek {
max-width: 48ch;
}

.proof-card {
gap: 0.25rem;
}

/* Hero.astro stack gap-4 is 1rem — tighten on home so proof clears dock */
.hero-copy :global(.stack.gap-4) {
gap: 0.5rem;
}
}

/* ~800px-tall desktop: proof continue clears docked composer (#812) */
@media (min-width: 50em) and (max-height: 52em) {
:global(body.has-prominent-chat) .first-screen {
padding-top: 0.25rem;
gap: 0.5rem;
}

.hero-copy {
gap: 0.35rem;
}

.hero-actions {
margin-top: 0.15rem;
gap: 0.25rem;
}

.hero-copy :global(.stack.gap-4) {
gap: 0.35rem;
}

.proof-card {
gap: 0.2rem;
}
}

:global(body.has-prominent-chat) .first-screen {
Expand Down
Loading