Skip to content

Commit a0d79e6

Browse files
committed
fix narrow layout
1 parent cbca617 commit a0d79e6

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/index.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ toc: false
2929
margin: 1rem 0;
3030
}
3131

32+
.cta {
33+
display: flex;
34+
align-items: center;
35+
gap: 2rem;
36+
}
37+
38+
@container not (min-width: 400px) {
39+
.cta {
40+
flex-direction: column;
41+
align-items: start;
42+
gap: 0;
43+
}
44+
.cta .observablehq-pre-container,
45+
.cta pre:not(.observablehq-pre-container pre) {
46+
width: 100%;
47+
}
48+
}
49+
3250
.gallery {
3351
margin: 4rem -1rem;
3452
gap: 2rem;
@@ -84,7 +102,7 @@ toc: false
84102
<div class="hero">
85103
<h1>The best data apps are built with <em class="red">code.</em></h1>
86104
<h2>Create fast, beautiful data apps, dashboards, and reports from the command line. Write Markdown, JavaScript, SQL, Python, R… and any language you like. Free and open-source.</h2>
87-
<div style="display: flex; align-items: center; gap: 2rem;">
105+
<div class="cta">
88106
<pre data-copy>npm init @observablehq</pre>
89107
<a href="./getting-started" class="small arrow" style="color: var(--theme-red);">Get started</a>
90108
</div>

0 commit comments

Comments
 (0)