Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Config
config :kanta, Kanta.Cache,
primary: [
gc_interval: :timer.hours(24),
backend: :shards
backend: :ets
]

config :phoenix, :json_library, Jason
Expand Down
63 changes: 49 additions & 14 deletions lib/kanta_web/templates/layouts/dashboard.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,54 @@
<% end %>
</nav>
</div>
<div class="p-4 text-primary-dark dark:text-accent-dark font-medium">
<div class="flex items-center justify-center">
<div class="pr-1">

<div class="p-4 text-primary-dark dark:text-accent-dark font-medium flex justify-center">
<div class="inline-flex items-center justify-center">
<span>
Made with
</div>
<div class="pr-1">
<svg fill="red" stroke="red" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="w-4 h-4 mx-2">
<path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"></path>
</span>
<svg fill="red" stroke="red" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="w-4 h-4 mx-2">
<path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"></path>
</svg>
<a href="https://www.curiosum.com/" class="bg-primary-dark dark:bg-transparent px-2 py-1 rounded">
<svg viewBox="0 0 162 36" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4" aria-label="Curiosum Logo">
<g clip-path="url(#clip0_7480_2887)">
<path d="M138.062 27.6161V12.318H142.109V13.4926C143.212 12.5138 144.551 12.0244 146.126 12.0244C147.131 12.0244 148.027 12.23 148.814 12.641C149.602 13.0325 150.252 13.5904 150.764 14.3147C151.394 13.5709 152.132 13.0032 152.979 12.6117C153.846 12.2202 154.801 12.0244 155.844 12.0244C157.006 12.0244 158.02 12.2887 158.887 12.8172C159.773 13.3262 160.462 14.0407 160.954 14.9607C161.466 15.8612 161.722 16.9182 161.722 18.1319V27.6161H157.705V18.7192C157.705 17.7208 157.439 16.9378 156.908 16.3701C156.376 15.7829 155.667 15.4892 154.781 15.4892C154.17 15.4892 153.609 15.6165 153.097 15.871C152.605 16.1254 152.182 16.5072 151.827 17.0161C151.847 17.1923 151.867 17.3685 151.886 17.5446C151.906 17.7208 151.916 17.9166 151.916 18.1319V27.6161H147.869V18.7192C147.869 17.7208 147.603 16.9378 147.072 16.3701C146.56 15.7829 145.86 15.4892 144.974 15.4892C144.364 15.4892 143.813 15.6067 143.32 15.8416C142.848 16.0765 142.444 16.4289 142.109 16.8987V27.6161H138.062Z" fill="white"/>
<path d="M126.815 27.9101C125.634 27.9101 124.58 27.6556 123.655 27.1466C122.749 26.6181 122.03 25.8938 121.498 24.9738C120.986 24.0538 120.73 22.9967 120.73 21.8026V12.3184H124.777V21.2153C124.777 22.1941 125.063 22.9771 125.634 23.5644C126.225 24.1516 127.012 24.4453 127.997 24.4453C128.666 24.4453 129.267 24.318 129.799 24.0635C130.35 23.7895 130.803 23.4078 131.157 22.9184V12.3184H135.204V27.6165H131.157V26.3832C129.976 27.4011 128.528 27.9101 126.815 27.9101Z" fill="white"/>
<path d="M112.395 27.9097C110.978 27.9097 109.668 27.7335 108.467 27.3812C107.266 27.0092 106.222 26.4807 105.336 25.7956L107.345 23.1235C108.231 23.7108 109.077 24.1512 109.885 24.4449C110.712 24.7385 111.529 24.8853 112.336 24.8853C113.242 24.8853 113.961 24.7385 114.493 24.4449C115.044 24.1317 115.32 23.7304 115.32 23.241C115.32 22.8495 115.162 22.5363 114.847 22.3014C114.552 22.0665 114.069 21.9001 113.4 21.8022L110.446 21.3618C108.91 21.1269 107.748 20.6375 106.961 19.8936C106.173 19.1302 105.779 18.1318 105.779 16.8986C105.779 15.9003 106.035 15.0487 106.547 14.344C107.079 13.6197 107.817 13.0618 108.762 12.6703C109.727 12.2593 110.869 12.0537 112.189 12.0537C113.311 12.0537 114.404 12.2103 115.467 12.5235C116.55 12.8367 117.565 13.3163 118.51 13.9623L116.56 16.5756C115.714 16.0471 114.906 15.6654 114.138 15.4305C113.37 15.1955 112.592 15.0781 111.805 15.0781C111.076 15.0781 110.485 15.2151 110.032 15.4892C109.599 15.7632 109.383 16.1254 109.383 16.5756C109.383 16.9867 109.54 17.3097 109.855 17.5446C110.17 17.7795 110.712 17.9459 111.48 18.0438L114.404 18.4842C115.94 18.6995 117.112 19.1889 117.919 19.9523C118.726 20.6962 119.13 21.6652 119.13 22.8593C119.13 23.838 118.835 24.7091 118.244 25.4726C117.653 26.2164 116.856 26.8135 115.851 27.2637C114.847 27.6944 113.695 27.9097 112.395 27.9097Z" fill="white"/>
<path d="M96.2311 27.9098C94.6951 27.9098 93.3068 27.5574 92.0662 26.8527C90.8256 26.148 89.841 25.1986 89.1124 24.0045C88.3838 22.8104 88.0195 21.4695 88.0195 19.9818C88.0195 18.4941 88.374 17.1531 89.0829 15.9591C89.8115 14.7454 90.7961 13.7862 92.0367 13.0815C93.297 12.3768 94.6951 12.0244 96.2311 12.0244C97.767 12.0244 99.1553 12.3768 100.396 13.0815C101.656 13.7862 102.641 14.7454 103.35 15.9591C104.078 17.1531 104.443 18.4941 104.443 19.9818C104.443 21.4695 104.078 22.8104 103.35 24.0045C102.641 25.1986 101.666 26.148 100.425 26.8527C99.1848 27.5574 97.7867 27.9098 96.2311 27.9098ZM96.2311 24.4156C97.0384 24.4156 97.7572 24.2198 98.3873 23.8283C99.0372 23.4368 99.5491 22.9083 99.9233 22.2427C100.317 21.5576 100.514 20.8039 100.514 19.9818C100.514 19.14 100.317 18.3864 99.9233 17.7208C99.5491 17.0553 99.0372 16.5267 98.3873 16.1352C97.7572 15.7241 97.0384 15.5186 96.2311 15.5186C95.4434 15.5186 94.7246 15.7241 94.0748 16.1352C93.425 16.5267 92.913 17.0553 92.5388 17.7208C92.1647 18.3864 91.9776 19.14 91.9776 19.9818C91.9776 20.8039 92.1647 21.5576 92.5388 22.2427C92.913 22.9083 93.425 23.4368 94.0748 23.8283C94.7246 24.2198 95.4434 24.4156 96.2311 24.4156Z" fill="white"/>
<path d="M81.8149 27.6162V12.3181H85.8616V27.6162H81.8149ZM83.8235 10.4976C83.1933 10.4976 82.6518 10.2725 82.1989 9.82226C81.746 9.37203 81.5195 8.83371 81.5195 8.2073C81.5195 7.56132 81.746 7.023 82.1989 6.59234C82.6518 6.14211 83.1933 5.91699 83.8235 5.91699C84.4733 5.91699 85.0148 6.14211 85.4481 6.59234C85.901 7.023 86.1274 7.56132 86.1274 8.2073C86.1274 8.83371 85.901 9.37203 85.4481 9.82226C85.0148 10.2725 84.4733 10.4976 83.8235 10.4976Z" fill="white"/>
<path d="M70.0508 27.6163V12.3182H74.0975V14.0212C74.5898 13.3557 75.1805 12.8467 75.8697 12.4944C76.559 12.142 77.3368 11.9658 78.2032 11.9658C78.9515 11.9854 79.5127 12.1028 79.8869 12.3182V15.8417C79.5915 15.7047 79.2666 15.6068 78.9121 15.5481C78.5577 15.4698 78.1934 15.4306 77.8192 15.4306C77.0316 15.4306 76.3128 15.6264 75.663 16.0179C75.0131 16.4094 74.4913 16.9673 74.0975 17.6916V27.6163H70.0508Z" fill="white"/>
<path d="M58.8036 27.9101C57.622 27.9101 56.5685 27.6556 55.643 27.1466C54.7372 26.6181 54.0184 25.8938 53.4867 24.9738C52.9747 24.0538 52.7188 22.9967 52.7188 21.8026V12.3184H56.7654V21.2153C56.7654 22.1941 57.051 22.9771 57.622 23.5644C58.2128 24.1516 59.0005 24.4453 59.9851 24.4453C60.6546 24.4453 61.2552 24.318 61.7869 24.0635C62.3383 23.7895 62.7912 23.4078 63.1456 22.9184V12.3184H67.1923V27.6165H63.1456V26.3832C61.9641 27.4011 60.5168 27.9101 58.8036 27.9101Z" fill="white"/>
<path d="M44.767 27.9098C43.2507 27.9098 41.8821 27.5672 40.6612 26.8821C39.4403 26.1774 38.4754 25.228 37.7665 24.0339C37.0576 22.8202 36.7031 21.4695 36.7031 19.9818C36.7031 18.4745 37.0576 17.1238 37.7665 15.9297C38.4754 14.7356 39.4403 13.7862 40.6612 13.0815C41.8821 12.3768 43.2507 12.0244 44.767 12.0244C45.9879 12.0244 47.1497 12.2593 48.2524 12.7291C49.3749 13.1989 50.3398 13.8743 51.1471 14.7552L48.666 17.3685C48.0949 16.7421 47.4943 16.282 46.8642 15.9884C46.2537 15.6752 45.5842 15.5186 44.8556 15.5186C44.0679 15.5186 43.359 15.7144 42.7289 16.1059C42.1184 16.4974 41.6261 17.0259 41.252 17.6915C40.8975 18.357 40.7203 19.1205 40.7203 19.9818C40.7203 20.8039 40.8975 21.5576 41.252 22.2427C41.6261 22.9083 42.1381 23.4368 42.7879 23.8283C43.4378 24.2003 44.1565 24.3862 44.9442 24.3862C45.6334 24.3862 46.2734 24.2492 46.8642 23.9751C47.4746 23.6815 48.0555 23.2509 48.6069 22.6832L51.029 25.2084C50.2413 26.0501 49.2961 26.7157 48.1934 27.2051C47.0906 27.6749 45.9485 27.9098 44.767 27.9098Z" fill="white"/>
<path d="M17.0564 32.1886C17.8378 33.3031 18.8529 34.3868 20.1613 35.3699C22.9851 34.5571 25.4665 32.9973 27.4024 30.9346C25.0913 32.1394 22.2674 32.2933 19.7224 31.1091C18.0428 30.3271 16.7324 29.0751 15.8711 27.583C16.1951 30.0746 16.997 32.045 17.0564 32.1886Z" fill="url(#paint0_linear_7480_2887)"/>
<path d="M12.4542 25.2429C11.8738 28.0424 11.921 31.5315 13.2048 35.8046C14.4762 36.0057 15.7928 36.055 17.132 35.936C18.1758 35.8436 19.1889 35.6507 20.1589 35.3715C18.8505 34.3884 17.8354 33.3048 17.054 32.1903C17.0561 32.1965 17.0581 32.2006 17.0581 32.2006C13.5842 27.6586 14.0825 23.4963 14.749 21.3125C13.3463 23.1781 12.565 24.9822 12.4542 25.247V25.2429Z" fill="url(#paint1_linear_7480_2887)"/>
<path d="M21.4446 8.08915C21.4446 8.08915 25.0847 8.98811 26.1572 12.1632C26.0875 12.2125 25.2692 11.1165 23.5097 10.7203C23.5097 10.7203 22.917 9.14614 21.4467 8.08915H21.4446ZM23.1016 0.493164C23.1016 0.493164 21.5225 1.45575 21.2293 3.69698C16.6746 -0.19029 12.1568 1.57479 12.1568 1.57479C13.1514 1.86623 14.1296 2.5661 15.0955 3.66825C9.39851 2.46759 5.25395 4.33118 5.25395 4.33118C6.64026 4.45022 8.09219 4.93869 9.61589 5.7925C3.29139 8.39701 -0.890088 14.1848 -0.252305 21.3601C-0.20924 21.8485 -0.143616 22.3288 -0.0574844 22.8029C0.122981 23.9112 0.377274 24.7794 0.814083 25.8877C1.48468 23.8127 3.51902 20.3872 6.18499 17.7047V17.6965C12.2778 10.8024 26.2803 10.9317 28.1423 19.8064C29.6373 17.5754 28.8786 15.404 27.3343 13.2099C27.6379 12.8343 27.7999 12.6414 27.966 12.3151C28.1854 11.8471 28.3146 11.6049 28.3372 10.8476L28.2162 9.96916C28.2162 9.96916 28.1013 8.74182 27.0185 7.44059C24.0942 3.93096 22.7653 2.08584 23.1016 0.493164Z" fill="url(#paint2_linear_7480_2887)"/>
<path d="M12.4546 25.2427C12.4464 25.2633 12.4402 25.2776 12.4402 25.2776C13.2626 19.0424 14.046 17.5605 16.3469 14.3485C14.4787 14.2295 12.7499 14.2685 8.45358 15.6785C7.61893 16.2655 6.854 16.9366 6.18341 17.696V17.7042C3.51744 20.3867 1.48515 23.8122 0.8125 25.8872C2.89401 31.1209 7.61278 34.924 13.2052 35.8045C11.9193 31.5334 11.8722 28.0443 12.4546 25.2427Z" fill="url(#paint3_linear_7480_2887)"/>
</g>
<defs>
<linearGradient id="paint0_linear_7480_2887" x1="14.8293" y1="31.2178" x2="25.9896" y2="32.1215" gradientUnits="userSpaceOnUse">
<stop stop-color="#F15A29"/>
<stop offset="1" stop-color="#FAAB3F"/>
</linearGradient>
<linearGradient id="paint1_linear_7480_2887" x1="21.0776" y1="33.7152" x2="10.773" y2="26.2422" gradientUnits="userSpaceOnUse">
<stop offset="0.1" stop-color="#FAAB3F"/>
<stop offset="1" stop-color="#F15A29"/>
</linearGradient>
<linearGradient id="paint2_linear_7480_2887" x1="-0.471735" y1="22.6079" x2="26.4029" y2="6.14035" gradientUnits="userSpaceOnUse">
<stop stop-color="#FAAB3F"/>
<stop offset="1" stop-color="#F15A29"/>
</linearGradient>
<linearGradient id="paint3_linear_7480_2887" x1="18.3259" y1="31.0654" x2="4.91505" y2="17.2123" gradientUnits="userSpaceOnUse">
<stop offset="0.07" stop-color="#FAAB3F"/>
<stop offset="1" stop-color="#F15A29"/>
</linearGradient>
<clipPath id="clip0_7480_2887">
<rect width="162" height="36" fill="white"/>
</clipPath>
</defs>
</svg>
</div>
<div class="pr-2">by</div>
<img src="https://curiosum.com/images/logo/new-logo-inverted-colors.png" alt="Curiosum Logo" class="h-4" />
</a>
</div>
</div>
</div>
Expand All @@ -90,14 +125,14 @@
<Icons.menu class="h-6 w-6" />
</button>
</div>
<div
<div
x-show="open"
x-transition:enter="transition ease-in duration-400"
x-transition:enter-start="opacity-0 -translate-y-20"
x-transition:enter-end="opacity-100 translate-y-0"
x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition ease-in duration-100"
x-transition:leave-start="opacity-100 translate-y-20"
x-transition:leave-end="opacity-0 translate-y-0"
x-transition:leave-end="opacity-0 translate-y-0"
class="mt-2 py-4 mx-4 rounded-md bg-white dark:bg-stone-900 border border-primary-dark dark:border-accent-dark"
>
<div class="flex-1 flex flex-col overflow-y-auto">
Expand Down
1 change: 0 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ defmodule Kanta.MixProject do
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:jason, "~> 1.0"},
{:nebulex, "~> 2.5"},
{:shards, "~> 1.0"},
{:scrivener, "~> 2.0"},
{:scrivener_ecto, "~> 3.0"},
{:uri_query, "~> 0.2"},
Expand Down