diff --git a/dev-dist/sw.js b/dev-dist/sw.js index db2a07b..5f3d99b 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -79,7 +79,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict'; */ workbox.precacheAndRoute([{ "url": "index.html", - "revision": "0.3s1v9t4dfmo" + "revision": "0.fnrrna5najg" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/src/assets/index.css b/src/assets/index.css index 5abffd2..4c7ded6 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -1,165 +1,182 @@ @import "tailwindcss"; @layer base { - :root { - /* Catppuccin Latte */ - --color-background: #eff1f5; - --color-foreground: #4c4f69; - --color-card: #e6e9ef; - --color-card-foreground: #4c4f69; - --color-popover: #e6e9ef; - --color-popover-foreground: #4c4f69; - --color-primary: #1e66f5; - --color-primary-foreground: #eff1f5; - --color-secondary: #ccd0da; - --color-secondary-foreground: #4c4f69; - --color-muted: #ccd0da; - --color-muted-foreground: #6c6f85; - --color-accent: #dc8a78; - --color-accent-foreground: #eff1f5; - --color-destructive: #d20f39; - --color-destructive-foreground: #eff1f5; - --color-border: #bcc0cc; - --color-input: #bcc0cc; - --color-ring: #1e66f5; - --radius: 0.5rem; - --popover: 220 23% 95%; + --background: 227 92% 95%; + --foreground: 234 16% 35%; + + --card: 225 23% 92%; + --card-foreground: 234 16% 35%; + + --popover: 225 23% 92%; --popover-foreground: 234 16% 35%; - /* Fallback colors for older browsers */ - --fallback-background: #ffffff; - --fallback-popover: #f5f5f5; + + --primary: 220 91% 54%; + --primary-foreground: 227 92% 95%; + + --secondary: 227 23% 83%; + --secondary-foreground: 234 16% 35%; + + --muted: 227 23% 83%; + --muted-foreground: 231 11% 47%; + + --accent: 11 83% 67%; + --accent-foreground: 227 92% 95%; + + --destructive: 347 87% 44%; + --destructive-foreground: 227 92% 95%; + + --border: 228 17% 77%; + --input: 228 17% 77%; + --ring: 220 91% 54%; + + --radius: 0.5rem; } .dark { - /* Catppuccin Macchiato - we'll use the same colors for dark mode */ - --color-background: #24273a; - --color-foreground: #cad3f5; - --color-card: #1e2030; - --color-card-foreground: #cad3f5; - --color-popover: #1e2030; - --color-popover-foreground: #cad3f5; - --color-primary: #8aadf4; - --color-primary-foreground: #24273a; - --color-secondary: #363a4f; - --color-secondary-foreground: #cad3f5; - --color-muted: #363a4f; - --color-muted-foreground: #a5adcb; - --color-accent: #f4dbd6; - --color-accent-foreground: #24273a; - --color-destructive: #ed8796; - --color-destructive-foreground: #24273a; - --color-border: #363a4f; - --color-input: #363a4f; - --color-ring: #8aadf4; - --popover: 240 21% 15%; - --popover-foreground: 226 64% 88%; - /* Fallback colors for older browsers */ - --fallback-background: #1e1e2e; - --fallback-popover: #313244; - } + --background: 233 31% 18%; + --foreground: 227 68% 88%; + --card: 234 32% 15%; + --card-foreground: 227 68% 88%; + + --popover: 234 32% 15%; + --popover-foreground: 227 68% 88%; + + --primary: 220 83% 76%; + --primary-foreground: 233 31% 18%; + + --secondary: 233 25% 26%; + --secondary-foreground: 227 68% 88%; + + --muted: 233 25% 26%; + --muted-foreground: 225 27% 72%; + + --accent: 11 77% 90%; + --accent-foreground: 233 31% 18%; + + --destructive: 351 74% 76%; + --destructive-foreground: 233 31% 18%; + + --border: 233 25% 26%; + --input: 233 25% 26%; + --ring: 220 83% 76%; + } +} + +@layer base { * { @apply box-border; } body { - @apply bg-background text-foreground; + background-color: hsl(var(--background)); + color: hsl(var(--foreground)); } } -@utility bg-background { - background-color: var(--color-background); -} +@layer utilities { + .bg-background { + background-color: hsl(var(--background)); + } + .bg-foreground { + background-color: hsl(var(--foreground)); + } + .bg-card { + background-color: hsl(var(--card)); + } + .bg-card-foreground { + background-color: hsl(var(--card-foreground)); + } + .bg-popover { + background-color: hsl(var(--popover)); + } + .bg-popover-foreground { + background-color: hsl(var(--popover-foreground)); + } + .bg-primary { + background-color: hsl(var(--primary)); + } + .bg-primary-foreground { + background-color: hsl(var(--primary-foreground)); + } + .bg-secondary { + background-color: hsl(var(--secondary)); + } + .bg-secondary-foreground { + background-color: hsl(var(--secondary-foreground)); + } + .bg-muted { + background-color: hsl(var(--muted)); + } + .bg-muted-foreground { + background-color: hsl(var(--muted-foreground)); + } + .bg-accent { + background-color: hsl(var(--accent)); + } + .bg-accent-foreground { + background-color: hsl(var(--accent-foreground)); + } + .bg-destructive { + background-color: hsl(var(--destructive)); + } + .bg-destructive-foreground { + background-color: hsl(var(--destructive-foreground)); + } -@utility text-foreground { - color: var(--color-foreground); -} + .text-background { + color: hsl(var(--background)); + } + .text-foreground { + color: hsl(var(--foreground)); + } + .text-card { + color: hsl(var(--card)); + } + .text-card-foreground { + color: hsl(var(--card-foreground)); + } + .text-popover { + color: hsl(var(--popover)); + } + .text-popover-foreground { + color: hsl(var(--popover-foreground)); + } + .text-primary { + color: hsl(var(--primary)); + } + .text-primary-foreground { + color: hsl(var(--primary-foreground)); + } + .text-secondary { + color: hsl(var(--secondary)); + } + .text-secondary-foreground { + color: hsl(var(--secondary-foreground)); + } + .text-muted { + color: hsl(var(--muted)); + } + .text-muted-foreground { + color: hsl(var(--muted-foreground)); + } + .text-accent { + color: hsl(var(--accent)); + } + .text-accent-foreground { + color: hsl(var(--accent-foreground)); + } + .text-destructive { + color: hsl(var(--destructive)); + } + .text-destructive-foreground { + color: hsl(var(--destructive-foreground)); + } -/* Add other utility classes for colors */ -@utility bg-card { - background-color: var(--color-card); -} - -@utility text-card-foreground { - color: var(--color-card-foreground); -} - -@utility bg-primary { - background-color: var(--color-primary); -} - -@utility text-primary-foreground { - color: var(--color-primary-foreground); -} - -/* ... add other utility classes as needed ... */ - /* :root { */ - /* /* gruvbox light theme */ */ - /* --color-background: hsl(32 92% 87%); /* bg0 */ */ - /* --color-foreground: hsl(40 13% 23%); /* fg */ */ - /**/ - /* --color-card: hsl(39 59% 88%); /* bg1 */ */ - /* --color-card-foreground: hsl(40 13% 23%); /* fg */ */ - /**/ - /* --color-popover: hsl(39 59% 88%); /* bg1 */ */ - /* --color-popover-foreground: hsl(40 13% 23%); /* fg */ */ - /**/ - /* --color-primary: hsl(0 100% 31%); /* red */ */ - /* --color-primary-foreground: hsl(40 92% 88%); /* bg */ */ - /**/ - /* --color-secondary: hsl(39 46% 81%); /* bg2 */ */ - /* --color-secondary-foreground: hsl(40 13% 23%); /* fg */ */ - /**/ - /* --color-muted: hsl(37 29% 73%); /* bg3 */ */ - /* --color-muted-foreground: hsl(40 4% 36%); /* gray */ */ - /**/ - /* --color-accent: hsl(40 71% 49%); /* yellow */ */ - /* --color-accent-foreground: hsl(0 0% 16%); */ - /**/ - /* --color-destructive: hsl(0 76% 46%); /* bright_red */ */ - /* --color-destructive-foreground: hsl(40 92% 88%); /* bg */ */ - /**/ - /* --color-border: hsl(33 14% 59%); /* fg4 */ */ - /* --color-input: hsl(33 14% 59%); /* fg4 */ */ - /* --color-ring: hsl(0 100% 31%); /* red */ */ - /**/ - /* --radius: 0.5rem; */ - /* } */ - - /* .dark { */ - /* /* gruvbox dark theme */ */ - /* --color-background: hsl(0 0% 16%); /* bg0 */ */ - /* --color-foreground: hsl(40 92% 88%); /* fg */ */ - /**/ - /* --color-card: hsl(0 7% 23%); /* bg1 */ */ - /* --color-card-foreground: hsl(40 92% 88%); /* fg */ */ - /**/ - /* --color-popover: hsl(0 7% 23%); /* bg1 */ */ - /* --color-popover-foreground: hsl(40 92% 88%); /* fg */ */ - /**/ - /* --color-primary: hsl(6 93% 59%); /* red */ */ - /* --color-primary-foreground: hsl(0 0% 16%); /* bg */ */ - /**/ - /* --color-secondary: hsl(0 5% 29%); /* bg2 */ */ - /* --color-secondary-foreground: hsl(40 92% 88%); /* fg */ */ - /**/ - /* --color-muted: hsl(20 6% 36%); /* bg3 */ */ - /* --color-muted-foreground: hsl(33 14% 59%); /* gray */ */ - /**/ - /* --color-accent: hsl(42 95% 58%); /* yellow */ */ - /* --color-accent-foreground: hsl(0 0% 16%); */ - /**/ - /* --color-destructive: hsl(6 93% 59%); /* bright_red */ */ - /* --color-destructive-foreground: hsl(40 92% 88%); /* bg */ */ - /**/ - /* --color-border: hsl(24 10% 51%); /* fg4 */ */ - /* --color-input: hsl(24 10% 51%); /* fg4 */ */ - /* --color-ring: hsl(6 93% 59%); /* red */ */ - /* } */ - -@supports not (backdrop-filter: blur(1px)) { - .select-content { - background-color: var(--fallback-background) !important; + @supports not (backdrop-filter: blur(1px)) { + .select-content { + background-color: hsl(var(--background)); + } } } diff --git a/src/assets/index.css.gruv b/src/assets/index.css.gruv new file mode 100644 index 0000000..14a0dc8 --- /dev/null +++ b/src/assets/index.css.gruv @@ -0,0 +1,64 @@ +/* ... add other utility classes as needed ... */ + /* :root { */ + /* /* gruvbox light theme */ */ + /* --color-background: hsl(32 92% 87%); /* bg0 */ */ + /* --color-foreground: hsl(40 13% 23%); /* fg */ */ + /**/ + /* --color-card: hsl(39 59% 88%); /* bg1 */ */ + /* --color-card-foreground: hsl(40 13% 23%); /* fg */ */ + /**/ + /* --color-popover: hsl(39 59% 88%); /* bg1 */ */ + /* --color-popover-foreground: hsl(40 13% 23%); /* fg */ */ + /**/ + /* --color-primary: hsl(0 100% 31%); /* red */ */ + /* --color-primary-foreground: hsl(40 92% 88%); /* bg */ */ + /**/ + /* --color-secondary: hsl(39 46% 81%); /* bg2 */ */ + /* --color-secondary-foreground: hsl(40 13% 23%); /* fg */ */ + /**/ + /* --color-muted: hsl(37 29% 73%); /* bg3 */ */ + /* --color-muted-foreground: hsl(40 4% 36%); /* gray */ */ + /**/ + /* --color-accent: hsl(40 71% 49%); /* yellow */ */ + /* --color-accent-foreground: hsl(0 0% 16%); */ + /**/ + /* --color-destructive: hsl(0 76% 46%); /* bright_red */ */ + /* --color-destructive-foreground: hsl(40 92% 88%); /* bg */ */ + /**/ + /* --color-border: hsl(33 14% 59%); /* fg4 */ */ + /* --color-input: hsl(33 14% 59%); /* fg4 */ */ + /* --color-ring: hsl(0 100% 31%); /* red */ */ + /**/ + /* --radius: 0.5rem; */ + /* } */ + + /* .dark { */ + /* /* gruvbox dark theme */ */ + /* --color-background: hsl(0 0% 16%); /* bg0 */ */ + /* --color-foreground: hsl(40 92% 88%); /* fg */ */ + /**/ + /* --color-card: hsl(0 7% 23%); /* bg1 */ */ + /* --color-card-foreground: hsl(40 92% 88%); /* fg */ */ + /**/ + /* --color-popover: hsl(0 7% 23%); /* bg1 */ */ + /* --color-popover-foreground: hsl(40 92% 88%); /* fg */ */ + /**/ + /* --color-primary: hsl(6 93% 59%); /* red */ */ + /* --color-primary-foreground: hsl(0 0% 16%); /* bg */ */ + /**/ + /* --color-secondary: hsl(0 5% 29%); /* bg2 */ */ + /* --color-secondary-foreground: hsl(40 92% 88%); /* fg */ */ + /**/ + /* --color-muted: hsl(20 6% 36%); /* bg3 */ */ + /* --color-muted-foreground: hsl(33 14% 59%); /* gray */ */ + /**/ + /* --color-accent: hsl(42 95% 58%); /* yellow */ */ + /* --color-accent-foreground: hsl(0 0% 16%); */ + /**/ + /* --color-destructive: hsl(6 93% 59%); /* bright_red */ */ + /* --color-destructive-foreground: hsl(40 92% 88%); /* bg */ */ + /**/ + /* --color-border: hsl(24 10% 51%); /* fg4 */ */ + /* --color-input: hsl(24 10% 51%); /* fg4 */ */ + /* --color-ring: hsl(6 93% 59%); /* red */ */ + /* } */ diff --git a/src/components/ui/button/Button.vue b/src/components/ui/button/Button.vue index d3e3786..0575816 100644 --- a/src/components/ui/button/Button.vue +++ b/src/components/ui/button/Button.vue @@ -16,11 +16,7 @@ const props = withDefaults(defineProps(), { diff --git a/src/components/ui/logout-dialog/LogoutDialog.vue b/src/components/ui/logout-dialog/LogoutDialog.vue index 0192188..d91b30c 100644 --- a/src/components/ui/logout-dialog/LogoutDialog.vue +++ b/src/components/ui/logout-dialog/LogoutDialog.vue @@ -15,7 +15,7 @@ const hasCopied = ref(false) const copyPrivateKey = async () => { if (!nostrStore.account?.privkey) return - + try { await navigator.clipboard.writeText(nostrStore.account.privkey) hasCopied.value = true @@ -43,44 +43,34 @@ const handleLogout = () => { -
+
- +
- + Backup Required - - If you haven't saved your private key, you will permanently lose access to this chat history. Make sure to copy and securely store your private key before logging out. + + If you haven't saved your private key, you will permanently lose access to this chat history. Make sure to + copy and securely store your private key before logging out.
-
- - @@ -92,7 +82,7 @@ const handleLogout = () => { \ No newline at end of file + diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 1f78fed..d7ebf5c 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -1,12 +1,9 @@ export default { nav: { - title: 'Directorio Atitlán', home: 'Inicio', directory: 'Directorio', faq: 'Preguntas', - support: 'Soporte', - login: 'Iniciar Sesión', - logout: 'Cerrar Sesión' + title: 'Directorio Atitlán' }, home: { title: 'Encuentra Aceptadores de Bitcoin Lightning', @@ -17,7 +14,7 @@ export default { selectTownPlaceholder: 'Selecciona tu ubicación...' }, directory: { - title: 'Directorio', + title: 'Directorio de Pagos Lightning', subtitle: 'Encuentra lugares que aceptan pagos Bitcoin Lightning', search: 'Buscar...', categories: { diff --git a/src/pages/Directory.vue b/src/pages/Directory.vue index d52c202..ed2e45c 100644 --- a/src/pages/Directory.vue +++ b/src/pages/Directory.vue @@ -60,27 +60,52 @@ const filteredItems = computed(() => { + + diff --git a/src/pages/Home.vue b/src/pages/Home.vue index 3ad0a22..72115be 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -63,21 +63,24 @@ const towns = computed(() => [