Skip to content

Commit a618730

Browse files
committed
docs: add link preview images and show the hero animation on mobile
1 parent cdfcb01 commit a618730

5 files changed

Lines changed: 17 additions & 2 deletions

File tree

‎website/astro.config.mjs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ export default defineConfig({
1717
replacesTitle: true,
1818
},
1919
favicon: '/favicon.png',
20+
head: [
21+
{ tag: 'meta', attrs: { property: 'og:image', content: 'https://sqlbuild.com/assets/og-docs.png' } },
22+
{ tag: 'meta', attrs: { property: 'og:image:width', content: '1200' } },
23+
{ tag: 'meta', attrs: { property: 'og:image:height', content: '630' } },
24+
{ tag: 'meta', attrs: { name: 'twitter:image', content: 'https://sqlbuild.com/assets/og-docs.png' } },
25+
],
2026
social: [
2127
{ icon: 'github', label: 'GitHub', href: 'https://github.com/chio-labs/sqlbuild' },
2228
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/tYU4nXdsT' },

‎website/public/assets/og-docs.png‎

51.2 KB
Loading

‎website/public/assets/og-home.png‎

63.1 KB
Loading

‎website/public/index.html‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
/>
1616
<meta property="og:type" content="website" />
1717
<meta property="og:url" content="https://sqlbuild.com/" />
18-
<meta property="og:image" content="https://sqlbuild.com/assets/og-icon.png" />
18+
<meta property="og:image" content="https://sqlbuild.com/assets/og-home.png" />
19+
<meta property="og:image:width" content="1200" />
20+
<meta property="og:image:height" content="630" />
21+
<meta property="og:image:alt" content="SQLBuild: the refactorable warehouse. A model is moved and renamed, and sqb plan migrates the existing table." />
22+
<meta name="twitter:card" content="summary_large_image" />
23+
<meta name="twitter:image" content="https://sqlbuild.com/assets/og-home.png" />
1924
<link rel="icon" type="image/png" href="assets/icon.png" />
2025
<link rel="preload" href="/fonts/inter-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
2126
<link rel="stylesheet" href="styles.css" />
@@ -77,7 +82,7 @@ <h1>The refactorable warehouse</h1>
7782
<span class="dim">└──</span> revenue.sql</span></span><span class="hv-b"><span class="tree"><span class="dim">models</span>
7883
<span class="dim">└──</span> finance
7984
<span class="dim">└──</span> <span class="info">daily_revenue.sql</span></span></span></span>
80-
<span class="hv-l hv-l1"><span class="cmd">sqb plan</span></span><span class="hv-l hv-l2">Migrations (1)</span><span class="hv-l hv-l3"><span class="tree"><span class="dim">└──</span></span> daily_revenue migrate prod.revenue -&gt; prod.daily_revenue</span><span class="hv-l hv-l4"><span class="tree"> <span class="dim">├──</span></span> compatibility compatible</span><span class="hv-l hv-l5"><span class="tree"> <span class="dim">├──</span></span> transfer physical copy, promote by staged rename</span><span class="hv-l hv-l6"><span class="tree"> <span class="dim">└──</span></span> discovery automatic</span></div>
85+
<span class="hv-l hv-l1"><span class="cmd">sqb plan</span></span><span class="hv-l hv-l2">Migrations (1)</span><span class="hv-l hv-l3"><span class="tree"><span class="dim">└──</span></span> daily_revenue migrate<span class="hv-wide"> prod.revenue -&gt; prod.daily_revenue</span></span><span class="hv-l hv-l4"><span class="tree"> <span class="dim">├──</span></span> compatibility compatible</span><span class="hv-l hv-l5"><span class="tree"> <span class="dim">├──</span></span> transfer physical copy<span class="hv-wide">, promote by staged rename</span></span><span class="hv-l hv-l6"><span class="tree"> <span class="dim">└──</span></span> discovery automatic</span></div>
8186
</div>
8287

8388
<section>

‎website/public/styles.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,10 @@ footer a {
960960

961961
@media (max-width: 620px) {
962962
.hero-visual {
963+
justify-self: stretch;
964+
}
965+
966+
.hero-visual .hv-wide {
963967
display: none;
964968
}
965969
}

0 commit comments

Comments
 (0)