@raketa-cloud/admin 0.0.54 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
@@ -26,6 +26,7 @@ body {
26
26
  }
27
27
 
28
28
  @layer components {
29
+
29
30
  /* Utils */
30
31
  .dbg {
31
32
  @apply outline-1 outline-dashed outline-red-500;
@@ -284,7 +285,7 @@ body {
284
285
  .pagination {
285
286
  @apply text-center py-8 text-raketa-foreground/50;
286
287
 
287
- & > div {
288
+ &>div {
288
289
  @apply inline-flex items-center gap-4;
289
290
  }
290
291
 
@@ -314,6 +315,11 @@ body {
314
315
  @apply flex items-center gap-4;
315
316
  }
316
317
 
318
+ /* Dashboard specific */
319
+ .card-button {
320
+ @apply flex items-center gap-2 mb-2 max-w-[400px] border p-4 rounded font-semibold text-raketa-primary hover:border-raketa-primary hover:bg-raketa-primary/5;
321
+ }
322
+
317
323
  /* Hacks */
318
324
  .unstyled-details {
319
325
  @apply appearance-none;
@@ -2,4 +2,22 @@
2
2
  <div class="page-title">
3
3
  <h1 class="heading-1">Dashboard</h1>
4
4
  </div>
5
+
6
+ <h2 class="heading-2 mb-4">Quick actions</h2>
7
+
8
+ <a href="<%= `/${_context.locale}/pages/new` %>" class="card-button">
9
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6 text-raketa-primary">
10
+ <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" />
11
+ </svg>
12
+
13
+ Create a page
14
+ </a>
15
+
16
+ <a href="<%= `/${_context.locale}/articles/new` %>" class="card-button">
17
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6 text-raketa-primary">
18
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z" />
19
+ </svg>
20
+
21
+ Create an article
22
+ </a>
5
23
  </div>
@@ -1,6 +1,6 @@
1
1
  <header class="sticky top-0 z-10 flex items-center bg-raketa-background border-b border-mono-25 dark:border-neutral-700">
2
2
  <div class="flex items-center justify-center flex-none size-14">
3
- <a href="<%= `/${_context.locale}/pages` %>">
3
+ <a href="<%= `/${_context.locale}` %>">
4
4
  <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="size-6 dark:invert">
5
5
  <path fill-rule="evenodd" clip-rule="evenodd" d="M5.77197 7.80835L11.5103 3.5V20.5H5.77197V7.80835Z" fill="#1C1C1E"/>
6
6
  <path fill-rule="evenodd" clip-rule="evenodd" d="M18.2274 8.59039L17.4877 8.5507C15.1691 8.55498 12.8885 8.98891 12.5514 9.96694L12.2573 9.95802C12.5778 5.34308 15.1646 3.41033 18.2163 3.50318L18.2274 8.59039Z" fill="#1C1C1E"/>