Skip to content

Commit e3b5eea

Browse files
committed
revise: makes crate grid more responsive
1 parent b46d495 commit e3b5eea

File tree

3 files changed

+67
-59
lines changed

3 files changed

+67
-59
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"dependencies": {
1313
"@iconify-json/carbon": "^1.2.3",
14-
"@iconify-json/heroicons-outline": "^1.2.0",
1514
"@iconify-json/heroicons": "^1.2.1",
15+
"@iconify-json/heroicons-outline": "^1.2.0",
1616
"@iconify-json/mdi": "^1.2.1",
1717
"@iconify-json/octicon": "^1.2.1",
1818
"@iconify-json/tabler": "^1.2.5",
@@ -22,12 +22,13 @@
2222
"@nuxt/ui": "^2.18.6",
2323
"@nuxtjs/color-mode": "^3.5.1",
2424
"@nuxtjs/tailwindcss": "^6.12.1",
25+
"@vueuse/core": "^11.1.0",
2526
"change-case": "^5.4.4",
2627
"d3": "^7.9.0",
2728
"nuxt": "^3.13.2",
2829
"remark-gfm": "^4.0.0",
29-
"vue-router": "latest",
30-
"vue": "latest"
30+
"vue": "latest",
31+
"vue-router": "latest"
3132
},
3233
"packageManager": "[email protected]+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca",
3334
"devDependencies": {

pages/docs/index.vue

Lines changed: 60 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,98 +2,101 @@
22
<div class="flex w-full h-full">
33
<MoleculesDocsLeftSidebar />
44
<div class="flex w-full h-full pt-10 bg-white dark:bg-slate-950">
5-
<main class="h-full mx-10 px-16 overflow-auto">
5+
<main class="h-full w-full mx-4 px-4 md:mx-6 md:px-8 lg:mx-10 lg:px-16 overflow-auto">
66
<span v-if="alertVisible">
77
<UAlert icon="i-heroicons-information-circle" color="orange" variant="subtle" title="Heads up!" description="These
88
crates and/or categories haven't been officially adopted yet—we're just
99
using these examples to sketch out what the website will look like here
1010
in the future. In fact... quite a few things don't seem to be working yet...
1111
we'll get to it!" :close-button="{
12-
icon: 'i-heroicons-x-mark-20-solid',
13-
color: 'gray',
14-
variant: 'link',
15-
padded: false,
16-
}" @close="alertVisible = false" />
12+
icon: 'i-heroicons-x-mark-20-solid',
13+
color: 'gray',
14+
variant: 'link',
15+
padded: false,
16+
}" @close="alertVisible = false" />
1717
</span>
1818
<div class="prose dark:prose-invert max-w-6xl pt-4">
1919
<h1 class="mb-2">Crates</h1>
2020
<div class="max-w-3xl">
21-
<p>The following crates have been formally ratified within the <code>rust-seq</code> stack.</p>
21+
<p>
22+
The following crates have been formally ratified within the
23+
<code>rust-seq</code> stack.
24+
</p>
2225
</div>
2326
</div>
2427

25-
<article class=" prose prose-slate dark:prose-invert max-w-6xl">
26-
<div class="grid grid-cols-3 gap-4">
28+
<article class="prose prose-slate dark:prose-invert max-w-full">
29+
<div class="grid gap-4" style="grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));">
2730
<CrateCard name="noodles" organization="zaeleus" description="A
2831
bioinformatics I/O library written natively in Rust that values
2932
correctness and ergonomic APIs." :kind="Kind.Library" :category="{
30-
name: 'File I/O',
31-
icon: 'heroicons-outline:newspaper',
32-
}" :socials="{
33-
github: 'https://github.com/zaeleus/noodles',
34-
docs: 'https://docs.rs/noodles',
35-
zulip: true,
36-
}" />
33+
name: 'File I/O',
34+
icon: 'heroicons-outline:newspaper',
35+
}" :socials="{
36+
github: 'https://github.com/zaeleus/noodles',
37+
docs: 'https://docs.rs/noodles',
38+
zulip: true,
39+
}" />
3740

3841
<CrateCard name="chainfile" organization="stjude-rust-labs" description="A
3942
crate for lifting over single positions or intervals using UCSC chain
4043
files." :kind="Kind.Library" :category="{
41-
name: 'File I/O',
42-
icon: 'heroicons-outline:newspaper',
43-
}" :socials="{
44-
github: 'https://github.com/stjude-rust-labs/chainfile',
45-
docs: 'https://docs.rs/chainfile',
46-
zulip: true,
47-
}" />
44+
name: 'File I/O',
45+
icon: 'heroicons-outline:newspaper',
46+
}" :socials="{
47+
github: 'https://github.com/stjude-rust-labs/chainfile',
48+
docs: 'https://docs.rs/chainfile',
49+
zulip: true,
50+
}" />
4851

4952
<CrateCard name="minimizer-queue" organization="rust-seq" description="A
50-
crate for fast computation of minimizers of
53+
crate for fast computation of minimizers of
5154
a sequence using a monotone queue." :kind="Kind.Library" :category="{
52-
name: 'Sequence Algorithms',
53-
icon: 'carbon:dna',
54-
}" :socials="{
55-
github: 'https://github.com/rust-seq/minimizer-queue',
56-
zulip: true,
57-
}" />
55+
name: 'Sequence Algorithms',
56+
icon: 'carbon:dna',
57+
}" :socials="{
58+
github: 'https://github.com/rust-seq/minimizer-queue',
59+
zulip: true,
60+
}" />
5861

5962
<CrateCard name="minimizer-iter" organization="rust-seq" description="A
6063
crate for efficient iteration of the minimizers of a sequence." :kind="Kind.Library" :category="{
61-
name: 'Sequence Algorithms',
62-
icon: 'carbon:dna',
63-
}" :socials="{
64-
github: 'https://github.com/rust-seq/minimizer-iter',
65-
zulip: true,
66-
}" />
64+
name: 'Sequence Algorithms',
65+
icon: 'carbon:dna',
66+
}" :socials="{
67+
github: 'https://github.com/rust-seq/minimizer-iter',
68+
zulip: true,
69+
}" />
6770

6871
<CrateCard name="packed-seq" organization="rust-seq" description="A
6972
crate for efficient (packed) representation of strings of small alphabets." :kind="Kind.Library" :category="{
70-
name: 'Sequence Algorithms',
71-
icon: 'carbon:dna',
72-
}" :socials="{
73-
github: 'https://github.com/rust-seq/packed-seq',
74-
zulip: true,
75-
}" />
73+
name: 'Sequence Algorithms',
74+
icon: 'carbon:dna',
75+
}" :socials="{
76+
github: 'https://github.com/rust-seq/packed-seq',
77+
zulip: true,
78+
}" />
7679

7780
<CrateCard name="foobar" organization="stjude-rust-labs" description="A
7881
command line tool for performing common operations on next-generation sequencing
7982
data—built on top of noodles." :kind="Kind.Binary" :category="{
80-
name: 'Command Line Tools',
81-
icon: 'heroicons-outline:command-line',
82-
}" :socials="{
83-
github: 'https://github.com/stjude-rust-labs/foobar',
84-
zulip: true,
85-
}" />
83+
name: 'Command Line Tools',
84+
icon: 'heroicons-outline:command-line',
85+
}" :socials="{
86+
github: 'https://github.com/stjude-rust-labs/foobar',
87+
zulip: true,
88+
}" />
8689

8790
<CrateCard name="omics" organization="stjude-rust-labs" description="A
8891
crate for lifting over single positions or intervals using UCSC chain
8992
files." :kind="Kind.Library" :category="{
90-
name: 'Foundational',
91-
icon: 'heroicons:code-bracket-16-solid',
92-
}" :socials="{
93-
github: 'https://github.com/stjude-rust-labs/omics',
94-
docs: 'https://docs.rs/omics',
95-
zulip: true,
96-
}" />
93+
name: 'Foundational',
94+
icon: 'heroicons:code-bracket-16-solid',
95+
}" :socials="{
96+
github: 'https://github.com/stjude-rust-labs/omics',
97+
docs: 'https://docs.rs/omics',
98+
zulip: true,
99+
}" />
97100
</div>
98101
</article>
99102
</main>
@@ -104,6 +107,7 @@
104107
<script setup lang="ts">
105108
import CrateCard from "~/components/molecules/docs/CrateCard.vue";
106109
import { Kind } from "~/components/molecules/docs/crate-card/kind";
110+
import { useStorage } from '@vueuse/core'
107111
108-
const alertVisible = ref(true);
112+
const alertVisible = useStorage("crates-page:alert-visible", true);
109113
</script>

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)