Skip to content

Commit bff1bb4

Browse files
committed
feat: visual examples
1 parent cfaf001 commit bff1bb4

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

bitext/src/routes/+page.svelte

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,61 @@
161161
</div>
162162
<AlignmentPreview />
163163
</section>
164+
<section class="mb-8" aria-labelledby="examples-heading">
165+
<details open class="group">
166+
<summary
167+
class="flex cursor-pointer list-none items-center gap-2 text-gray-900 marker:hidden [&::-webkit-details-marker]:hidden dark:text-white"
168+
>
169+
<svg
170+
class="h-4 w-4 shrink-0 text-gray-500 transition-transform group-open:rotate-90 dark:text-gray-400"
171+
viewBox="0 0 20 20"
172+
fill="currentColor"
173+
aria-hidden="true"
174+
>
175+
<path
176+
fill-rule="evenodd"
177+
d="M7.21 14.77a.75.75 0 0 1 .02-1.06L10.94 10 7.23 6.29a.75.75 0 0 1 1.06-1.06l4.24 4.24a.75.75 0 0 1 0 1.06l-4.24 4.24a.75.75 0 0 1-1.08.0Z"
178+
clip-rule="evenodd"
179+
/>
180+
</svg>
181+
<h2 id="examples-heading" class="font-heading text-lg font-semibold">Examples</h2>
182+
</summary>
183+
<div class="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2">
184+
<figure class="m-0">
185+
<div
186+
class="flex aspect-[4/3] w-full items-center justify-center overflow-hidden rounded-md border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800"
187+
>
188+
<img
189+
src="/examples/action.gif"
190+
alt="Animated demo: creating word links between “Hello world” and its French translation"
191+
loading="lazy"
192+
decoding="async"
193+
class="h-full w-full object-contain"
194+
/>
195+
</div>
196+
<figcaption class="mt-2 text-center text-sm text-gray-600 dark:text-gray-400">
197+
Linking words between two sentences
198+
</figcaption>
199+
</figure>
200+
<figure class="m-0">
201+
<div
202+
class="flex aspect-[4/3] w-full items-center justify-center overflow-hidden rounded-md border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800"
203+
>
204+
<img
205+
src="/examples/conlang_gloss.png"
206+
alt="Conlang example with a custom script font, interlinear glosses, and an English translation"
207+
loading="lazy"
208+
decoding="async"
209+
class="h-full w-full object-contain"
210+
/>
211+
</div>
212+
<figcaption class="mt-2 text-center text-sm text-gray-600 dark:text-gray-400">
213+
Conlang with a custom font and interlinear glosses
214+
</figcaption>
215+
</figure>
216+
</div>
217+
</details>
218+
</section>
164219
</div>
165220
<div class="col-span-12 min-w-0 lg:col-span-4 lg:col-start-9 lg:row-start-1 lg:row-end-3">
166221
<div id="settings-panel">

bitext/static/examples/action.gif

545 KB
Loading
41 KB
Loading

0 commit comments

Comments
 (0)