-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filament chart and other nice things
- Loading branch information
Showing
15 changed files
with
349 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<script lang="ts"> | ||
import { tweened } from 'svelte/motion'; | ||
import { cubicOut } from 'svelte/easing'; | ||
export let fractionKeyboard: number; | ||
export let size = '4em' | ||
const angle = tweened(0, { easing: cubicOut, duration: 400 }) | ||
$: angle.update(() => 360 * fractionKeyboard) | ||
</script> | ||
|
||
<div class="text-left flex flex-col items-center"> | ||
<div class="chart rounded-full mb-2" style:--angle={$angle + 'deg'} style:width={size} style:height={size}></div> | ||
<div class="text-sm text-gray-600 dark:text-gray-100"> | ||
<p class="whitespace-nowrap flex items-center gap-2 mb-[-0.1em]"><span class="inline-block w-2 h-2 bg-teal-400" /> Keyboard</p> | ||
<p class="whitespace-nowrap flex items-center gap-2"><span class="inline-block w-2 h-2 bg-purple-400" /> Supports</p> | ||
</div> | ||
</div> | ||
|
||
<style lang="postcss"> | ||
.chart { | ||
--hole: 45%; | ||
background: radial-gradient(theme('colors.gray.100') var(--hole), transparent calc(var(--hole) + 1%)), | ||
conic-gradient(transparent 0deg var(--angle), theme('colors.purple.400') var(--angle) 360deg), | ||
theme('colors.teal.400'); | ||
} | ||
@media (prefers-color-scheme: dark) { | ||
.chart { | ||
background: radial-gradient(theme('colors.gray.700') var(--hole), transparent calc(var(--hole) + 1%)), | ||
conic-gradient(transparent 0deg var(--angle), theme('colors.purple.400') var(--angle) 360deg), | ||
theme('colors.teal.500'); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
<article class="mx-4 mb-4 pl-4 pr-12 py-2 rounded dark:bg-gray-900/50 relative"> | ||
<p>The Dactyl keyboard is a configurable ergonomic keyboard. You can not only change the switch types you are using, but the key layout and shape of the keyboard as well, so that it fits to your typing style and needs.</p> | ||
<script lang="ts"> | ||
import Heart from 'svelte-material-icons/HeartOutline.svelte' | ||
</script> | ||
|
||
<article class="mx-2 mb-4 px-6 py-3 rounded dark:bg-gray-900/50 relative"> | ||
<p>The Dactyl keyboard is a customizable ergonomic keyboard. Unlike typical keyboards, it contours to the shape of your hand. This tool allows you to configure almost every aspect of the keyboard for maximum comfort and flexibility.</p> | ||
<p>I recommend you begin with the default preset (<span>Ergodox</span>). It has better defaults for the key holes and connector.</p> | ||
<p>Before 3D printing your first Dactyl Keyboard case, I recommend you:</p> | ||
<p>Before 3D printing your first Dactyl keyboard case, I recommend you:</p> | ||
<ul class="list-disc pl-4"> | ||
<li>Copy down the current site URL so you can revisit your design. The URL is unique to the keyboard you've configured.</li> | ||
<li>Copy down the current site URL so you can revisit or share your design. The URL is unique to the keyboard you've configured.</li> | ||
<li>Take a look at a few build logs online and decide whether you want to use PCBs or solder the wires directly to the switches.</li> | ||
<li>Find where to buy the parts necessary for the keyboard (switches, keycaps, diodes, wires, microcontrollers, cables, and soldering equipment).</li> | ||
<li>Find a suitable keyboard layout using the <a href="https://config.qmk.fm/#/handwired/dactyl_manuform/5x7/LAYOUT_5x7">QMK Configurator</a> and become familiar with <a href="https://docs.qmk.fm/#/configurator_step_by_step">compiling and flashing</a>. | ||
</ul> | ||
<p>There's a lot to making your own keyboard, but it's a fun process. I promise!</p> | ||
<p>There's a lot to making your own keyboard, but it's a fun process. I promise! <Heart class="inline relative top-[-1px] text-teal-500" size="20px" /> </p> | ||
</article> | ||
<style lang="postcss"> | ||
p, ul { @apply mb-1; } | ||
/* span { @apply rounded px-1 py-0.5 dark:bg-gray-900 border border-gray-700; } */ | ||
span { @apply rounded px-1 bg-teal-100; } | ||
a { @apply underline text-teal-500; } | ||
span { @apply rounded px-1 bg-[#99F0DC]/50 dark:bg-teal-500/30; } | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.