diff --git a/index.html b/index.html index 9b5849c..27b6afe 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ - + @@ -44,6 +44,9 @@ + + + diff --git a/styles.css b/styles.css index be139e8..aafc85a 100644 --- a/styles.css +++ b/styles.css @@ -242,6 +242,13 @@ h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 5.4vw, 80px); line-heigh .tool-grid { grid-template-columns: minmax(0, 1fr); } } +/* The narrowest phones: the logo, GitHub, Discord and the theme toggle still fit on one line. */ +@media (max-width: 360px) { + .header-inner { gap: 12px; } + .header-actions { gap: 0; } + .nav-icon { width: 36px; } +} + @media (max-width: 620px) { h1 { font-size: clamp(38px, 11vw, 52px); } .lede { margin-top: 20px; font-size: 17px; } diff --git a/tests/website.spec.mjs b/tests/website.spec.mjs index 912e8ac..7f6227a 100644 --- a/tests/website.spec.mjs +++ b/tests/website.spec.mjs @@ -61,6 +61,7 @@ test('tools, stack layers, sharing assets and responsive layout work in both the const logo = page.getByRole('link', { name: 'SQLStack home', exact: true }).locator('img:visible'); await expect(logo).toHaveAttribute('src', `assets/icons/sqlstack-lockup${theme === 'dark' ? '-dark' : ''}.png`); await expect(page.getByRole('link', { name: 'SQLStack on GitHub', exact: true })).toHaveAttribute('href', 'https://github.com/sqlstack-io'); + await expect(page.getByRole('link', { name: 'SQLStack on Discord', exact: true })).toHaveAttribute('href', 'https://discord.com/invite/gATNYuBK6'); const grid = page.locator('.tool-grid'); const names = page.getByRole('navigation', { name: 'All tools' });