Skip to content

Commit bdad82c

Browse files
committed
[docs] Homepage tweaks
1 parent 3892012 commit bdad82c

File tree

7 files changed

+86
-47
lines changed

7 files changed

+86
-47
lines changed

docs/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/youtube.webp

51.2 KB
Loading

readme.md

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

site/extras/youtube.webp

51.2 KB
Loading

site/home/index.md

Lines changed: 58 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,42 @@ id="one-with">"The One With PartyKit"</span>
119119

120120
---
121121

122+
<section id="follow">
123+
124+
<a href='@@EVAL("metadata.repository")' target='_blank'>
125+
<img src="https://img.shields.io/github/stars/tinyplex/tinybase?style=for-the-badge&logo=GitHub&logoColor=%23fff&label=GitHub&labelColor=%23d81b60&color=%23333">
126+
</a>
127+
128+
<a href='https://discord.com/invite/mGz3mevwP8' target='_blank'>
129+
<img src="https://img.shields.io/discord/1027918215323590676?style=for-the-badge&logo=discord&logoColor=%23fff&label=Discord&labelColor=%233131e8&color=%23333" />
130+
</a>
131+
132+
<a href='https://twitter.com/tinybasejs' target='_blank'>
133+
<img src="https://img.shields.io/twitter/follow/tinybasejs?style=for-the-badge&logo=x&logoColor=%23fff&label=Twitter&labelColor=%23333&color=%23333" />
134+
</a>
135+
136+
<br />
137+
138+
<a href='@@EVAL("metadata.repository")/discussions' target='_blank'>
139+
<img src="https://img.shields.io/github/discussions/tinyplex/tinybase?style=for-the-badge&logo=GitHub&logoColor=%23fff&label=Ideas&labelColor=%23d81b60&color=%23333">
140+
</a>
141+
142+
<a href='@@EVAL("metadata.repository")/issues' target='_blank'>
143+
<img src="https://img.shields.io/github/issues/tinyplex/tinybase?style=for-the-badge&logo=GitHub&logoColor=%23fff&label=Issues&labelColor=%23d81b60&color=%23333">
144+
</a>
145+
146+
<a href='#well-tested-and-documented'>
147+
<img src="https://img.shields.io/badge/Tests-100%25-green?style=for-the-badge&logo=jest&logoColor=%23fff&color=%23333&labelColor=%2387c305" />
148+
</a>
149+
150+
<a href='@@EVAL("metadata.package")' target='_blank'>
151+
<img src="https://img.shields.io/npm/v/tinybase?style=for-the-badge&logo=npm&logoColor=%23fff&labelColor=%23bd0005&color=%23333" />
152+
</a>
153+
154+
</section>
155+
156+
---
157+
122158
> ## Start with a simple key-value store.
123159
>
124160
> Creating a Store requires just a simple call to the createStore function. Once
@@ -590,41 +626,27 @@ export const createShop: typeof createShopDecl = () => {
590626

591627
---
592628

593-
<section>
594-
<h2>Follow</h2>
595-
<ul>
596-
<li>
597-
News and updates on <a href='https://twitter.com/tinybasejs'>Twitter</a>,
598-
<a href='https://discord.com/invite/mGz3mevwP8'>Discord</a>, and
599-
<a href='https://facebook.com/tinybasejs'>Facebook</a>.
600-
</li>
601-
<li>
602-
<a href='@@EVAL("metadata.repository")/discussions'>Discussions</a> and
603-
<a href='@@EVAL("metadata.repository")/issues'>issues</a> on
604-
<a href='@@EVAL("metadata.repository")'>GitHub</a>.
605-
</li>
606-
<li>
607-
<a href='/guides/releases/'>Release notes</a> for each version.
608-
</li>
609-
<li>
610-
Packages on <a href='@@EVAL("metadata.package")'>NPM</a>.
611-
</li>
612-
</ul>
629+
<section id="about">
630+
<h2>About</h2>
631+
<p>Modern apps deserve better. Why trade reactive user experiences to be able
632+
to use relational data? Or sacrifice features for bundle size? And why does
633+
the cloud do all the work
634+
<a href='https://localfirstweb.dev/' target='_blank'>anyway</a>?</p>
635+
636+
<p>Building TinyBase was originally an interesting exercise for <a rel="me"
637+
href="https://tripleodeon.com">me</a> in API design, minification, and
638+
documentation. But now it has taken on a life of its own, and has grown
639+
beyond my wildest expectations.</p>
640+
641+
<p>It could not have been built without these great
642+
<a href='/guides/how-tinybase-is-built/credits/#giants'>projects</a> and
643+
<a href='/guides/how-tinybase-is-built/credits/#and-friends'>friends</a>, and
644+
I hope you enjoy using it as much as I do building it!</p>
613645
</section>
614646

615-
> ## About
616-
>
617-
> Modern apps deserve better. Why trade reactive user experiences to be able to
618-
> use relational data? Or sacrifice features for bundle size? And why does the
619-
> cloud do all the work
620-
> <a href='https://localfirstweb.dev/' target='_blank'>anyway</a>?
621-
>
622-
> Building TinyBase was originally an interesting exercise for <a rel="me"
623-
> href="https://tripleodeon.com">me</a> in API design, minification, and
624-
> documentation. But now it has taken on a life of its own, and has grown
625-
> beyond my wildest expectations
626-
>
627-
> It could not have been built without these great
628-
> [projects](/guides/how-tinybase-is-built/credits/#giants) and
629-
> [friends](/guides/how-tinybase-is-built/credits/#and-friends), and I hope you
630-
> enjoy using it as much as I do building it!
647+
<section id="story">
648+
<h2>The story</h2>
649+
<a href='https://youtu.be/hXL7OkW-Prk?t=1232' target='_blank'>
650+
<img src="/youtube.webp">
651+
</a>
652+
</section>

site/less/home.less

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,15 @@ body > main > article#home {
150150
.table {
151151
box-shadow: @shadow;
152152
}
153-
> section#friends {
153+
> section#story,
154+
> section#follow,
155+
> section#friends,
156+
> section#users,
157+
> section#sponsors,
158+
> section#about {
154159
text-align: center;
160+
}
161+
> section#friends {
155162
div {
156163
display: inline-block;
157164
margin: 1.5rem;
@@ -168,9 +175,18 @@ body > main > article#home {
168175
}
169176
}
170177
}
178+
> section#follow {
179+
a {
180+
display: inline-block;
181+
margin: 0.5rem;
182+
img {
183+
margin: 0;
184+
vertical-align: middle;
185+
}
186+
}
187+
}
171188
> section#sponsors,
172189
> section#users {
173-
text-align: center;
174190
img {
175191
display: inline-block;
176192
border-radius: 50%;
@@ -232,8 +248,9 @@ body > main > article#home {
232248
column-count: 2;
233249
column-gap: 4rem;
234250
}
235-
> section#friends {
236-
grid-column-end: span 6;
251+
> section#friends,
252+
> section#follow {
253+
grid-column: 1/7;
237254
}
238255
> section#sponsors {
239256
grid-column-start: 1;
@@ -242,12 +259,12 @@ body > main > article#home {
242259
grid-column-start: 4;
243260
}
244261
> ul {
245-
grid-column-end: span 6;
262+
grid-column: 1/7;
246263
column-count: 2;
247264
column-gap: 6rem;
248265
}
249266
> hr {
250-
grid-column-end: span 6;
267+
grid-column: 1/7;
251268
}
252269
> p {
253270
grid-column-end: span 2;

0 commit comments

Comments
 (0)