HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/sitepacket.com/src/editor/src/components/UI/key.svelte
<script>
  import { onMount } from 'svelte'

  export let value = ''

  let largeClass = ''

  if (value === 'CTRL' && !isWindows()) {
    value = '⌘'
    largeClass = 'text-xl leading-5'
  }
  if (value === 'ALT' && !isWindows()) {
    value = '⌥'
    largeClass = 'text-xl leading-5'
  }

  onMount(() => {})

  function isWindows() {
    return navigator.platform.indexOf('Win') > -1
  }
</script>

<div class="shortcut-key rounded bg-theme-300 font-mono text-theme-800 text-xs leading-5 px-2 pb-1 pt-0 m-px {largeClass}">{value}</div>

<style>
  .shortcut-key {
    min-width: 1.5rem;
    box-shadow: 0 -4px inset rgba(0, 0, 0, 0.3);
  }
</style>