diff --git a/assets/fonts/DejaVu-LICENSE.txt b/assets/fonts/DejaVu-LICENSE.txt new file mode 100644 index 0000000..b3d93a1 --- /dev/null +++ b/assets/fonts/DejaVu-LICENSE.txt @@ -0,0 +1,78 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: DejaVu fonts +Upstream-Author: Stepan Roh (original author), + see /usr/share/doc/fonts-dejavu-core/AUTHORS for full list +Source: https://dejavu-fonts.github.io/ + +Files: * +Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. + Bitstream Vera is a trademark of Bitstream, Inc. + DejaVu changes are in public domain. +License: bitstream-vera + Permission is hereby granted, free of charge, to any person obtaining a copy + of the fonts accompanying this license ("Fonts") and associated + documentation files (the "Font Software"), to reproduce and distribute the + Font Software, including without limitation the rights to use, copy, merge, + publish, distribute, and/or sell copies of the Font Software, and to permit + persons to whom the Font Software is furnished to do so, subject to the + following conditions: + . + The above copyright and trademark notices and this permission notice shall + be included in all copies of one or more of the Font Software typefaces. + . + The Font Software may be modified, altered, or added to, and in particular + the designs of glyphs or characters in the Fonts may be modified and + additional glyphs or characters may be added to the Fonts, only if the fonts + are renamed to names not containing either the words "Bitstream" or the word + "Vera". + . + This License becomes null and void to the extent applicable to Fonts or Font + Software that has been modified and is distributed under the "Bitstream + Vera" names. + . + The Font Software may be sold as part of a larger software package but no + copy of one or more of the Font Software typefaces may be sold by itself. + . + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, + TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME + FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING + ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF + THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE + FONT SOFTWARE. + . + Except as contained in this notice, the names of Gnome, the Gnome + Foundation, and Bitstream Inc., shall not be used in advertising or + otherwise to promote the sale, use or other dealings in this Font Software + without prior written authorization from the Gnome Foundation or Bitstream + Inc., respectively. For further information, contact: fonts at gnome dot + org. + +Files: debian/* +Copyright: (C) 2005-2006 Peter Cernak + (C) 2006-2011 Davide Viti + (C) 2011-2013 Christian Perrier + (C) 2013 Fabian Greffrath +License: GPL-2+ + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + /usr/share/common-licenses/GPL-2'. diff --git a/assets/fonts/IBM-Plex-Mono-LICENSE.txt b/assets/fonts/IBM-Plex-Mono-LICENSE.txt new file mode 100644 index 0000000..83eac82 --- /dev/null +++ b/assets/fonts/IBM-Plex-Mono-LICENSE.txt @@ -0,0 +1,93 @@ +Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/dejavu-sans-mono-diagram.woff2 b/assets/fonts/dejavu-sans-mono-diagram.woff2 new file mode 100644 index 0000000..de6e29f Binary files /dev/null and b/assets/fonts/dejavu-sans-mono-diagram.woff2 differ diff --git a/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 b/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 new file mode 100644 index 0000000..0804aaf Binary files /dev/null and b/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 differ diff --git a/assets/fonts/ibm-plex-mono-latin-500-normal.woff2 b/assets/fonts/ibm-plex-mono-latin-500-normal.woff2 new file mode 100644 index 0000000..090f82f Binary files /dev/null and b/assets/fonts/ibm-plex-mono-latin-500-normal.woff2 differ diff --git a/assets/og-sqlstack-card.png b/assets/og-sqlstack-card.png index 8dbe061..8aefacb 100644 Binary files a/assets/og-sqlstack-card.png and b/assets/og-sqlstack-card.png differ diff --git a/index.html b/index.html index 1cf61b5..a5f6365 100644 --- a/index.html +++ b/index.html @@ -3,31 +3,33 @@ - + - SQLStack | Your data stack. Engineered to change. + SQLStack | The Data Stack for Engineers of the Future - - + + - + - - + + - + + + @@ -49,109 +51,133 @@ -
+
-

Your data stack. Engineered for safer change.

-

Rust-backed SQL and Python tools for data engineers.

-

Compile-time checks, built-in testing and enforceable architecture.

+
+
+

The Data Stack for Engineers of the Future

+

Writing SQL is no longer the hard part. Knowing it's right is. Independent tools grounded in software engineering fundamentals, so you can keep pace with the frontier without breaking what works.

+
+ Explore the tools + GitHub + Use one, or use them all. +
+
+ +
-
-
-
-

01 / Transform

-

Build your data.

-

Turn raw data into trusted transformations.

-
-
-
- - -
-

SQLBuild

-

SQL / Python transformations and orchestration.

- -
+
+
+

Independent tools. Shared foundations.

+
+
+ + + + SQLBuild + sqlbuild.com + + SQL and Python transformations and orchestration. + Turn your team's conventions into compile errors. +
-
- -
-

SQLTide

-

Streaming pipelines for ClickHouse. Build and check new versions before promotion.

- -
+ + -
- -
-

SQLLoad

-

Load data into your warehouse. See the plan before any data moves.

- -
+ + -
-
-
-
-

02 / Check

-

Keep it sound.

-

Catch issues early and
keep your code healthy.

-
-
-
- - -
-

SQLClean

-

SQL linting and formatting. Lint 10,000 files in under a second.

- -
+ -
- - -
-

Fensu

-

Enforce code boundaries and repository structure.

- -
+ + -
- - -
-

SQLBabel

-

Evidence-backed SQL translation. Verified results, or a clear no.

- -
+ +
-
-
+ +
+
+ 660 releases in the last 12 weeks + Release notes on GitHub +
+ + +
+
+
diff --git a/stack.js b/stack.js new file mode 100644 index 0000000..77683f4 --- /dev/null +++ b/stack.js @@ -0,0 +1,245 @@ +// The hero stacks: dot-shaded discs turning slowly, one per tool. +// Each layer has a real link laid over it, so hover, click and keyboard focus +// all come from the links; the canvas only draws. A tool in both stacks lights +// up in both. +(() => { + const TILT = 0.42; // camera elevation in radians + const SIN = Math.sin(TILT); + const COS = Math.cos(TILT); + const HEIGHT = 0.12; // disc thickness, in units of the base radius + const GAP = 0.105; + const TURN_SECONDS = 48; + const SPOKES = 96; + const ROWS = 3; + const RINGS = 5; + const LIGHT = (() => { + const v = [-0.62, -0.55, 0.56]; + const n = Math.hypot(...v); + return v.map((c) => c / n); + })(); + + function hexToRgb(value) { + const hex = value.trim().replace('#', ''); + const full = hex.length === 3 ? hex.split('').map((c) => c + c).join('') : hex; + const n = parseInt(full, 16); + return [(n >> 16) & 255, (n >> 8) & 255, n & 255]; + } + + function mix(a, b, t) { + return a.map((c, i) => Math.round(c + (b[i] - c) * t)); + } + + function init(root) { + const canvas = root.querySelector('canvas'); + const links = [...root.querySelectorAll('[data-layer]')]; + const ctx = canvas.getContext('2d'); + const reduced = window.matchMedia('(prefers-reduced-motion: reduce)'); + const count = links.length; + const total = count * HEIGHT + (count - 1) * GAP; + const layers = links.map((link, i) => ({ + link, + // Like the mark: a column of discs on a wider base. + radius: i === count - 1 ? 1 : 0.8 + (0.06 * i) / Math.max(1, count - 2), + top: -total / 2 + i * (HEIGHT + GAP), + glow: 0, + target: 0, + })); + + let width = 0; + let height = 0; + let scale = 0; + let cx = 0; + let cy = 0; + let dpr = 1; + let ink = [23, 26, 31]; + let background = [255, 255, 255]; + let angle = 0.6; + let last = 0; + let frame = 0; + let onScreen = true; + + function readColours() { + const style = getComputedStyle(document.documentElement); + ink = hexToRgb(style.getPropertyValue('--ink')); + background = hexToRgb(style.getPropertyValue('--background')); + for (const layer of layers) { + layer.accent = hexToRgb(getComputedStyle(layer.link).getPropertyValue('--accent')); + } + } + + function layout() { + width = root.clientWidth; + height = root.clientHeight; + if (!width) return; + dpr = Math.min(window.devicePixelRatio || 1, 2); + canvas.width = Math.round(width * dpr); + canvas.height = Math.round(height * dpr); + scale = width * 0.4; + cx = width / 2; + // Stand every stack on the same floor, whatever its height. + const floor = width * 0.86; + cy = floor - scale * ((total / 2) * COS + SIN); + const caption = floor + 14; + root.style.setProperty('--caption-y', `${caption}px`); + // Each link spans its layer, from where the layer above hides it to its own front edge. + let edge = cy + scale * (layers[0].top * COS - layers[0].radius * SIN); + for (const layer of layers) { + const bottom = cy + scale * ((layer.top + HEIGHT) * COS + layer.radius * SIN); + const half = layer.radius * scale; + Object.assign(layer.link.style, { + left: `${cx - half}px`, + width: `${half * 2}px`, + top: `${edge}px`, + height: `${bottom - edge}px`, + }); + layer.link.style.setProperty('--label-x', `${half}px`); + layer.link.style.setProperty('--label-y', `${caption - edge}px`); + edge = bottom; + } + } + + function draw() { + if (!width) return; + ctx.setTransform(dpr, 0, 0, dpr, 0, 0); + ctx.clearRect(0, 0, width, height); + const lit = Math.max(...layers.map((layer) => layer.glow)); + const dot = scale / 165; + + for (let i = count - 1; i >= 0; i -= 1) { + const layer = layers[i]; + const r = layer.radius * scale; + const topY = cy + scale * layer.top * COS; + const bottomY = cy + scale * (layer.top + HEIGHT) * COS; + + // Hide whatever this layer covers before drawing its dots. + ctx.beginPath(); + ctx.ellipse(cx, topY, r, r * SIN, 0, Math.PI, Math.PI * 2); + ctx.lineTo(cx + r, bottomY); + ctx.ellipse(cx, bottomY, r, r * SIN, 0, 0, Math.PI); + ctx.closePath(); + ctx.fillStyle = `rgb(${background})`; + ctx.fill(); + + const colour = mix(ink, layer.accent, layer.glow); + const fade = 1 - 0.55 * (lit - layer.glow); + const buckets = [[], [], [], [], []]; + const add = (x, y, light) => { + buckets[Math.min(4, Math.floor(light * 5))].push(x, y); + }; + + for (let s = 0; s < SPOKES; s += 1) { + const theta = (s / SPOKES) * Math.PI * 2 + angle; + const nx = Math.cos(theta); + const nz = Math.sin(theta); + if (nz < -0.05) continue; + const light = 0.2 + 0.8 * Math.max(0, nx * LIGHT[0] + nz * LIGHT[2]); + for (let row = 0; row < ROWS; row += 1) { + const y = layer.top + ((row + 0.5) / ROWS) * HEIGHT; + add(cx + r * nx, cy + scale * (y * COS + layer.radius * nz * SIN), light); + } + } + + const capLight = 0.25 + 0.75 * Math.max(0, -LIGHT[1]); + for (let ring = 1; ring <= RINGS; ring += 1) { + const rho = ring / RINGS; + const spokes = Math.round(SPOKES * rho); + for (let s = 0; s < spokes; s += 1) { + const theta = (s / spokes) * Math.PI * 2 + angle; + const nx = Math.cos(theta); + const nz = Math.sin(theta); + // A little shading towards the light keeps the cap from reading flat. + const light = capLight * (0.75 + 0.25 * rho * (nx * LIGHT[0] + nz * LIGHT[2] + 1) / 2); + add(cx + r * rho * nx, topY + r * rho * nz * SIN, light); + } + } + + buckets.forEach((points, b) => { + if (!points.length) return; + const light = (b + 0.5) / 5; + const radius = dot * (0.45 + 1.1 * light) * (1 + 0.25 * layer.glow); + ctx.beginPath(); + for (let p = 0; p < points.length; p += 2) { + ctx.moveTo(points[p] + radius, points[p + 1]); + ctx.arc(points[p], points[p + 1], radius, 0, Math.PI * 2); + } + ctx.globalAlpha = Math.min(1, (0.3 + 0.7 * light) * fade); + ctx.fillStyle = `rgb(${colour})`; + ctx.fill(); + }); + ctx.globalAlpha = 1; + } + } + + function moving() { + return !reduced.matches && onScreen && !document.hidden; + } + + function settling() { + return layers.some((layer) => Math.abs(layer.glow - layer.target) > 0.01); + } + + function tick(now) { + frame = 0; + const elapsed = last ? Math.min(now - last, 100) : 0; + // Thirty frames a second is plenty for a slow turn. + if (last && elapsed < 32) { + frame = requestAnimationFrame(tick); + return; + } + last = now; + if (moving()) angle += (elapsed / 1000) * ((Math.PI * 2) / TURN_SECONDS); + const step = reduced.matches ? 1 : Math.min(1, elapsed / 160) || 0.2; + for (const layer of layers) layer.glow += (layer.target - layer.glow) * step; + draw(); + if (moving() || settling()) frame = requestAnimationFrame(tick); + else last = 0; + } + + function wake() { + if (!frame) frame = requestAnimationFrame(tick); + } + + // The tool being pointed at, in this stack or the other one. + document.addEventListener('stack:active', ({ detail }) => { + for (const layer of layers) { + layer.target = layer.link.dataset.layer === detail.tool ? 1 : 0; + layer.link.classList.toggle('is-active', layer.link === detail.link); + } + wake(); + }); + + const announce = (link) => { + document.dispatchEvent(new CustomEvent('stack:active', { detail: { tool: link?.dataset.layer ?? null, link } })); + }; + for (const layer of layers) { + layer.link.addEventListener('pointerenter', () => announce(layer.link)); + layer.link.addEventListener('pointerleave', () => announce(null)); + layer.link.addEventListener('focus', () => announce(layer.link)); + layer.link.addEventListener('blur', () => announce(null)); + } + + new ResizeObserver(() => { + layout(); + draw(); + }).observe(root); + new IntersectionObserver(([entry]) => { + onScreen = entry.isIntersecting; + wake(); + }).observe(root); + new MutationObserver(() => { + readColours(); + draw(); + }).observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] }); + document.addEventListener('visibilitychange', wake); + reduced.addEventListener('change', wake); + + readColours(); + layout(); + draw(); + wake(); + } + + document.addEventListener('DOMContentLoaded', () => { + document.querySelectorAll('[data-stack]').forEach(init); + }); +})(); diff --git a/styles.css b/styles.css index 14a844f..54eedae 100644 --- a/styles.css +++ b/styles.css @@ -72,61 +72,187 @@ img { display: block; object-fit: contain; } .theme-toggle svg { width: 18px; height: 18px; } .icon-sun, [data-theme="dark"] .icon-moon { display: none; } [data-theme="dark"] .icon-sun { display: block; } -.hero { text-align: center; padding: 52px 0 26px; } -h1 { margin: 0; font-size: clamp(40px, 4.2vw, 64px); line-height: 1; letter-spacing: -.055em; font-weight: 800; } -h1 span { display: block; } -.lede { margin: 20px 0 3px; font-size: 22px; line-height: 1.4; } -.principles { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; } -.tool-row { display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding: 18px 0 16px; } -.category { padding-top: 8px; } -.category .eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 20px; text-transform: uppercase; } -h2 { margin: 0; font-size: 36px; font-weight: 750; line-height: 1.15; letter-spacing: -.04em; } -.category > p:last-child { max-width: 250px; margin: 10px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); } -.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } -.product { --accent: #1680ff; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 40px; padding: 20px 28px 14px; border: 1px solid var(--line); border-top: 2px solid var(--accent); background: var(--panel); } -.product-icon { margin-top: 6px; } -/* Wide marks get a wider box, centred on the same column, so they read as large as the squarer ones. */ -.sqlload .product-icon { width: 60px; margin-inline: -4px; } -.fensu .product-icon { width: 64px; margin-inline: -6px; } -.product-content { min-width: 0; display: flex; flex-direction: column; } -h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 24.94308px; font-weight: 700; line-height: 1.2; letter-spacing: 0; } -.fensu h3 { font-size: 25.5px; } -.product-content > p { margin: 4px 0 12px; min-height: 42px; font-size: 15px; line-height: 1.4; color: var(--muted); } -.text-line { display: block; } -.product-links { display: flex; gap: 28px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; } -.product-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; } -.product-links a:hover { text-decoration: underline; } -.sqltide { --accent: #00d7dc; } -.sqlclean { --accent: #00c995; } -.fensu { --accent: #ff6b00; } -.sqlbabel { --accent: #ffe000; } -.sqlload { --accent: #ff5268; } -.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; } +@font-face { + font-family: "IBM Plex Mono"; + src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); + font-style: normal; + font-weight: 400; + font-display: swap; +} + +@font-face { + font-family: "IBM Plex Mono"; + src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); + font-style: normal; + font-weight: 500; + font-display: swap; +} + +/* Box-drawing glyphs from DejaVu so tree output lines up. */ +@font-face { + font-family: "SQLStack Box Drawing"; + src: url("assets/fonts/dejavu-sans-mono-diagram.woff2") format("woff2"); + unicode-range: U+2500-257F; + font-display: swap; +} + +:root { + --mono: "IBM Plex Mono", "SQLStack Box Drawing", ui-monospace, monospace; + --sqlbuild: #1680ff; + --sqltide: #00b8bd; + --sqlclean: #00a87d; + --fensu: #ff6b00; + --sqlbabel: #c9a800; + --sqlload: #ff5268; + --code-bg: #fbfcfe; + --code-fg: #2b3038; + --faint: #98a0ad; + --ok: #16825c; + --bad: #c74757; + --warn: #aa6c16; + --note: #7756b9; + --kw: #1a56c4; + --arg: #0f766e; +} + +:root[data-theme="dark"] { + --sqltide: #00d7dc; + --sqlclean: #00c995; + --sqlbabel: #ffe000; + --code-bg: #111418; + --code-fg: #c9cdd4; + --faint: #626975; + --ok: #54cf8e; + --bad: #f47089; + --warn: #f0c267; + --note: #a78bfa; + --kw: #5aa9e6; + --arg: #4dd6c4; +} + +/* Hero */ +.hero { border-bottom: 1px solid var(--line); overflow: hidden; } +.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; min-height: min(640px, calc(100vh - 59px)); padding-block: 64px; } +h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; } +.lede { max-width: 34em; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.5; } +.lede strong { color: var(--ink); font-weight: 600; } +.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; margin-top: 36px; } +.button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; } +.button:hover { text-decoration: none; border-color: var(--muted); } +.button.primary { border-color: var(--ink); background: var(--ink); color: var(--background); } +.button.primary:hover { opacity: .88; } +.actions-note { margin-left: 8px; color: var(--muted); font-size: 15px; } + +/* Two stacks, batch and streaming: each a canvas drawing plus one real link per layer laid over it. */ +.stacks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 620px; justify-self: center; } +.stack-visual { position: relative; aspect-ratio: 10 / 11; } +.stack-caption { position: absolute; top: var(--caption-y, 86%); left: 0; right: 0; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-align: center; text-transform: uppercase; transition: opacity .2s ease; } +.stack-visual:has(a.is-active) .stack-caption { opacity: 0; } +.stack-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; } +.stack-labels a { position: absolute; display: block; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; } +.stack-labels a:focus-visible { outline: none; } +/* A layer's name shows under its stack, in place of the caption, while it is pointed at. */ +.stack-labels .label { position: absolute; top: var(--label-y, 100%); left: var(--label-x, 50%); display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.25; white-space: nowrap; transform: translate(-50%, -4px); opacity: 0; transition: opacity .2s ease; pointer-events: none; } +.stack-labels .name { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 700; color: var(--accent); } +.stack-labels .what { color: var(--muted); font-size: 13.5px; } +.stack-labels a.is-active .label, .stack-labels a:focus-visible .label { opacity: 1; } +.stack-labels a:focus-visible .name { text-decoration: underline; text-underline-offset: 4px; } + +/* Tools */ +.tools { padding: 96px 0 72px; scroll-margin-top: 0; } +.tools h2 { margin: 0 0 40px; font-size: clamp(30px, 3vw, 44px); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; } +.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); } +/* Each card spans four rows of the grid, so names, lines and snippets start level across a row. */ +.tool { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0; padding: 24px 24px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--background); } +.tool-head { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; } +.tool-head:hover { text-decoration: none; } +.tool-head:hover .tool-name { text-decoration: underline; text-underline-offset: 4px; } +.tool-head img { width: 28px; height: 28px; } +.tool-head img.wide { width: 34px; } +.tool-name { font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 700; } +.tool-site { margin-left: auto; color: var(--muted); font-size: 13px; } +.tool-head:hover .tool-site { color: var(--blue); } +.tool-what { display: block; margin-top: 12px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.45; } +.tool-line { display: block; margin: 2px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.45; } +/* The snippet opens the docs for what it shows. */ +.snippet { position: relative; display: flex; flex: 1; margin: 0 -24px; border-top: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); color: inherit; text-decoration: none; } +.snippet:hover { text-decoration: none; } +.snippet:focus-visible { outline-offset: -3px; } +.snippet .terminal { flex: 1; transition: background-color .15s ease; } +.snippet:hover .terminal { background: var(--code-hover); } +.snippet-hint { position: absolute; right: 16px; bottom: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--background); color: var(--blue); font-size: 12.5px; opacity: 0; transition: opacity .15s ease; } +.snippet:hover .snippet-hint, .snippet:focus-visible .snippet-hint { opacity: 1; } + +.terminal { margin: 0; padding: 18px 24px 20px; background: var(--code-bg); color: var(--code-fg); font-family: var(--mono); font-size: 11.5px; line-height: 1.65; } +/* Long lines wrap under their own column, as on the tool sites. */ +.terminal .ln { display: block; padding-left: var(--hang, 0); text-indent: calc(-1 * var(--hang, 0)); white-space: pre-wrap; overflow-wrap: anywhere; } +/* Short phrases such as a rebuild note or a target type move to the next line whole, and only wrap inside when even a full line is too narrow. */ +.terminal .note, .terminal .nw { display: inline-block; max-width: 100%; text-indent: 0; vertical-align: top; } +.terminal .cmd { color: var(--ink); font-weight: 500; } +.terminal .cmd::before { content: "$ "; color: var(--faint); font-weight: 400; } +.terminal .dim, .terminal .cm { color: var(--faint); } +.terminal .ok { color: var(--ok); } +.terminal .bad { color: var(--bad); } +.terminal .warn, .terminal .prompt { color: var(--warn); } +.terminal .note { color: var(--note); } +.terminal .kw { color: var(--kw); } +.terminal .arg, .terminal .ty { color: var(--arg); } +.terminal .fn { color: var(--note); } +.terminal .str { color: var(--ok); } +.terminal .num { color: var(--warn); } +.terminal .strong { font-weight: 500; color: var(--ink); } +.terminal .ok.strong { color: var(--ok); } + +.sqlbuild { --accent: var(--sqlbuild); } +.sqltide { --accent: var(--sqltide); } +.sqlload { --accent: var(--sqlload); } +.sqlclean { --accent: var(--sqlclean); } +.fensu { --accent: var(--fensu); } +.sqlbabel { --accent: var(--sqlbabel); } + +/* Releases */ +.releases { margin: 56px 0 0; } +.releases figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; color: var(--muted); font-size: 14px; } +.releases figcaption strong { color: var(--ink); font-weight: 600; } +.releases figcaption a { color: var(--muted); text-decoration: none; } +.releases figcaption a:hover { color: var(--ink); } +.release-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; } +.release-bars span { flex: 1; min-height: 1px; background: var(--ink); opacity: .22; border-radius: 1px 1px 0 0; } +.release-axis { position: relative; height: 22px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; } +.release-axis span { position: absolute; top: 6px; } + +.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 24px; font-size: 12px; line-height: 1.5; } .site-footer span:last-child { color: var(--muted); } -#tools { scroll-margin-top: 20px; } -@media (max-width: 1200px) { - .tool-row { grid-template-columns: 250px minmax(0, 1fr); } - .product { gap: 24px; padding-inline: 20px; } - h2 { font-size: 32px; } +:root { --code-hover: #f3f6fa; } +:root[data-theme="dark"] { --code-hover: #161a1f; } + +@media (max-width: 1180px) { + .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; padding-block: 48px 40px; } + h1 { max-width: 12ch; } + .stacks { max-width: 560px; justify-self: start; } } -@media (max-width: 1000px) { - .tool-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px; } - .category { padding: 0; } - .category > p:last-child { max-width: none; } - .desktop-break { display: none; } - .product { gap: 24px; padding: 22px; } +@media (max-width: 1100px) { + .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } +} + +@media (max-width: 900px) { + .tool-grid { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 620px) { - .hero { padding: 40px 0 32px; } - h1 { font-size: clamp(34px, 8.5vw, 48px); line-height: 1.07; letter-spacing: -.05em; } - .lede { margin-top: 20px; font-size: 18px; } - .principles { margin-top: 10px; font-size: 15px; } - .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; } - .category > p:last-child { margin-top: 8px; } - .product { gap: 20px; padding: 22px 18px 18px; } - .product-links a { min-height: 32px; } - .site-footer { flex-wrap: wrap; } + h1 { font-size: clamp(38px, 11vw, 52px); } + .lede { margin-top: 20px; font-size: 17px; } + .actions { margin-top: 28px; } + .actions-note { flex-basis: 100%; margin: 4px 0 0; } + .stacks { gap: 8px; } + .stack-labels .name { font-size: 15px; } + .stack-labels .what { display: none; } + .tools { padding: 64px 0 48px; } + .tool { padding-inline: 18px; } + .snippet { margin-inline: -18px; } + .snippet .terminal { padding-inline: 18px; } + .terminal .ln { padding-left: min(var(--hang, 0), 6ch); text-indent: calc(-1 * min(var(--hang, 0), 6ch)); } } + diff --git a/tests/website.spec.mjs b/tests/website.spec.mjs index b4c7344..4635271 100644 --- a/tests/website.spec.mjs +++ b/tests/website.spec.mjs @@ -42,56 +42,65 @@ test('theme control remains usable when browser storage is blocked', async ({ pa await expect(page.locator('html')).toHaveCSS('color-scheme', 'light'); }); -test('approved products, sharing assets and responsive navigation work in both themes', async ({ page, request }) => { - const names = ['SQLBuild', 'SQLTide', 'SQLLoad', 'SQLClean', 'Fensu', 'SQLBabel']; +test('tools, stack layers, sharing assets and responsive layout work in both themes', async ({ page, request }) => { + const tools = [ + ['SQLBuild', 'https://sqlbuild.com'], + ['SQLTide', 'https://sqltide.io/'], + ['SQLLoad', 'https://sqlload.io'], + ['SQLClean', 'https://sqlclean.io'], + ['Fensu', 'https://fensu.io/'], + ['SQLBabel', 'https://sqlbabel.io'], + ]; for (const theme of ['light', 'dark']) { await page.emulateMedia({ colorScheme: theme }); await page.goto('/'); - await expect(page.getByRole('heading', { level: 1 })).toHaveText('Your data stack. Engineered for safer change.'); - await expect(page.locator('.hero .lede')).toHaveText('Rust-backed SQL and Python tools for data engineers.'); - await expect(page.getByRole('heading', { level: 3 })).toHaveText(names); + await expect(page.getByRole('heading', { level: 1 })).toHaveText('The Data Stack for Engineers of the Future'); + await expect(page.locator('.hero .lede strong')).toHaveText("Writing SQL is no longer the hard part. Knowing it's right is."); + await expect(page.locator('.hero .actions')).toContainText('Use one, or use them all.'); + await expect(page.getByRole('heading', { level: 2 })).toHaveText('Independent tools. Shared foundations.'); 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(logo).toHaveAttribute('alt', 'SQLStack'); await expect(page.getByRole('link', { name: 'SQLStack on GitHub', exact: true })).toHaveAttribute('href', 'https://github.com/sqlstack-io'); - for (const [name, website] of [['SQLBuild', 'https://sqlbuild.com'], ['SQLTide', 'https://sqltide.io/'], ['SQLClean', 'https://sqlclean.io'], ['Fensu', 'https://fensu.io/'], ['SQLLoad', 'https://sqlload.io'], ['SQLBabel', 'https://sqlbabel.io']]) { - const card = page.getByRole('article', { name, exact: true }); - await expect(card.getByRole('link', { name: `${name} website`, exact: true })).toHaveAttribute('href', website); - await expect(card.getByRole('link', { name: `${name} on GitHub`, exact: true })).toHaveAttribute('href', `https://github.com/sqlstack-io/${name.toLowerCase()}`); - } - await expect(page.locator('.hero .principles')).toHaveText('Compile-time checks, built-in testing and enforceable architecture.'); - await expect(page.locator('footer')).toContainText('Independent tools. Shared foundations. 100% open source.'); - const fensuWebsite = page.getByRole('article', { name: 'Fensu', exact: true }).getByRole('link', { name: 'Fensu website', exact: true }); - await expect(fensuWebsite).toHaveAttribute('href', 'https://fensu.io/'); - await expect(fensuWebsite).toHaveText('Website ↗'); - const sqltideWebsite = page.getByRole('article', { name: 'SQLTide', exact: true }).getByRole('link', { name: 'SQLTide website', exact: true }); - await expect(sqltideWebsite).toHaveAttribute('href', 'https://sqltide.io/'); - await expect(sqltideWebsite).toHaveText('Website ↗'); - const sqlclean = page.getByRole('article', { name: 'SQLClean', exact: true }); - await expect(sqlclean.locator('p')).toHaveText('SQL linting and formatting. Lint 10,000 files in under a second.'); - await expect(sqlclean.getByRole('link', { name: 'under a second.', exact: true })).toHaveAttribute('href', 'https://sqlclean.io/docs/benchmarks/'); - await expect(page.getByText('Published benchmark:', { exact: false })).toHaveCount(0); - for (const [section, products] of [['Build your data.', ['SQLBuild', 'SQLTide', 'SQLLoad']], ['Keep it sound.', ['SQLClean', 'Fensu', 'SQLBabel']]]) { - const row = page.getByRole('region', { name: section, exact: true }); - await expect(row.getByRole('heading', { level: 3 })).toHaveText(products); + + const grid = page.locator('.tool-grid'); + const batch = page.getByRole('navigation', { name: 'Batch tools' }); + const streaming = page.getByRole('navigation', { name: 'Streaming tools' }); + for (const [name, website] of tools) { + await expect(grid.getByRole('link', { name: `${name} website`, exact: true })).toHaveAttribute('href', website); + await expect(grid.getByRole('link', { name: new RegExp(`^${name} docs: `) })).toHaveAttribute('href', new RegExp(`^${website.replace(/\/$/, '')}/docs/`)); + const layer = (name === 'SQLTide' ? streaming : batch).getByRole('link', { name: new RegExp(`^${name} `) }); + await expect(layer).toHaveAttribute('href', website); } - await expect(page.getByRole('article', { name: 'SQLLoad', exact: true }).locator('p')).toHaveText('Load data into your warehouse. See the plan before any data moves.'); - await expect(page.getByRole('article', { name: 'SQLBabel', exact: true }).locator('p')).toHaveText('Evidence-backed SQL translation. Verified results, or a clear no.'); - await expect(page.getByText(/coming soon|on the horizon/i)).toHaveCount(0); - await expect(page.getByRole('article', { name: 'Fensu', exact: true })).not.toContainText(/pre-release|coming soon/i); - for (const width of [320, 390, 768, 1536]) { + await expect(batch.getByRole('link')).toHaveCount(5); + await expect(streaming.getByRole('link')).toHaveCount(3); + await expect(streaming.getByRole('link', { name: /^SQLBuild / })).toHaveCount(0); + + // A layer's name shows only while it is pointed at, in place of its stack's caption. + await page.setViewportSize({ width: 1280, height: 800 }); + const tide = streaming.getByRole('link', { name: /^SQLTide / }); + const caption = page.locator('.stack-visual', { has: streaming }).locator('.stack-caption'); + await expect(tide).toHaveAccessibleName('SQLTide Streaming pipelines for ClickHouse'); + await expect(tide.locator('.label')).toHaveCSS('opacity', '0'); + await expect(caption).toHaveText('Streaming'); + await tide.hover(); + await expect(tide.locator('.label')).toHaveCSS('opacity', '1'); + await expect(caption).toHaveCSS('opacity', '0'); + await page.mouse.move(5, 5); + await expect(tide.locator('.label')).toHaveCSS('opacity', '0'); + await expect(page.getByRole('article', { name: 'SQLBuild', exact: true })).toHaveAccessibleDescription(/^SQL and Python transformations and orchestration\. /); + + for (const width of [320, 390, 700, 768, 1101, 1536]) { await page.setViewportSize({ width, height: 900 }); expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); - await expect(sqltideWebsite).toBeVisible(); + // Snippets wrap rather than run past the card edge. + expect(await page.locator('.tool .terminal').evaluateAll((panels) => panels.filter((panel) => panel.scrollWidth > panel.clientWidth).length)).toBe(0); await expect(page.getByRole('button', { name: 'Dark mode', exact: true })).toBeInViewport(); } - await expect(page.locator('.hero').getByRole('link')).toHaveCount(0); - await expect(page.getByRole('link', { name: 'View on GitHub', exact: true })).toHaveCount(0); await page.getByRole('link', { name: 'Skip to tools', exact: true }).focus(); await page.keyboard.press('Enter'); await expect(page).toHaveURL(/#tools$/); await page.keyboard.press('Tab'); - await expect(page.getByRole('link', { name: 'SQLBuild website', exact: true })).toBeFocused(); + await expect(grid.getByRole('link', { name: 'SQLBuild website', exact: true })).toBeFocused(); } await expect(page.locator('link[rel="canonical"]')).toHaveAttribute('href', 'https://sqlstack.io/'); @@ -144,3 +153,16 @@ test('approved products, sharing assets and responsive navigation work in both t expect(pixels.opaquePixels, path).toBeGreaterThan(0); } }); + +for (const motion of ['no-preference', 'reduce']) { + test(`the stack ${motion === 'reduce' ? 'holds still' : 'turns'} with prefers-reduced-motion: ${motion}`, async ({ page }) => { + await page.emulateMedia({ reducedMotion: motion }); + await page.goto('/'); + const canvas = page.locator('.stack-visual canvas').first(); + const frame = () => canvas.evaluate((element) => element.toDataURL()); + await page.waitForTimeout(300); + const first = await frame(); + await page.waitForTimeout(600); + expect(await frame() !== first).toBe(motion === 'no-preference'); + }); +}