-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -105,10 +269,7 @@ onMounted(() => {
@tailwind utilities;
.host {
- line-height: 1.5;
-webkit-text-size-adjust: 100%;
- -moz-tab-size: 4;
- tab-size: 4;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
@@ -116,14 +277,38 @@ onMounted(() => {
}
@layer components {
+ .nav-item-mobile {
+ @apply text-xl block text-center py-3 mx-2 w-full border-b border-b-secondary/10 first-letter:capitalize;
+ }
.nav-item {
- @apply px-6 hover:bg-primary/70 hover:text-slate-100 transition-colors leading-[5];
+ @apply relative text-lg w-fit block after:hover:scale-x-[82%] px-2 mx-2 hover:text-black first-letter:capitalize;
+ }
+ .nav-item:after {
+ @apply block content-[''] absolute h-[3px] bg-gradient-to-r from-primary to-primary/30 w-full scale-x-0 transition duration-300 origin-left;
+ }
+ .nav-item.active {
+ @apply after:scale-x-[82%] after:bg-primary text-gray-900;
}
.btn {
- @apply px-4 py-2 text-slate-100 bg-primary rounded hover:bg-primary/70 transition-colors;
+ @apply px-4 py-2 mx-2 text-slate-100 bg-primary rounded hover:bg-primary/70 transition-colors first-letter:capitalize;
}
.link-btn {
- @apply text-primary/70 hover:underline underline-offset-8 decoration-2 decoration-primary/50;
+ @apply text-primary/60 hover:text-primary hover:underline underline-offset-8 decoration-2 decoration-primary/50 flex flex-col items-center;
+ }
+ .admin-dropdown > li {
+ @apply block text-center hover:bg-primary/10 text-gray-700 hover:text-black capitalize;
+ }
+ .admin-dropdown > li > a {
+ @apply block w-full h-full py-3;
+ }
+ .admin-dropdown > li.active {
+ @apply bg-primary/20;
+ }
+ .icon-dropdown {
+ @apply w-4 h-4 inline-block align-text-top;
+ }
+ * {
+ -webkit-tap-highlight-color: transparent;
}
}
diff --git a/src/i18n.ts b/src/i18n.ts
new file mode 100644
index 0000000..0fb1271
--- /dev/null
+++ b/src/i18n.ts
@@ -0,0 +1,40 @@
+import en from './i18n/en.json'
+import de from './i18n/de.json'
+import fr from './i18n/fr.json'
+import es from './i18n/es.json'
+import nl from './i18n/nl.json'
+import ru from './i18n/ru.json'
+import { createI18n } from 'vue-i18n'
+
+const i18n = createI18n({
+ locale: navigator.language,
+ fallbackLocale: 'fr',
+ messages: {
+ en: en,
+ de: de,
+ fr: fr,
+ es: es,
+ nl: nl,
+ ru: ru,
+ },
+})
+
+export const t = i18n.global.t.bind(i18n.global)
+
+export const LANG_2_TO_3_MAPPER: { [index: string]: any } = {
+ en: 'eng',
+ nl: 'dut',
+ fr: 'fre',
+ de: 'ger',
+ ko: 'kor',
+ es: 'spa',
+ cs: 'cze',
+ ca: 'cat',
+ fi: 'fin',
+ is: 'ice',
+ it: 'ita',
+ pt: 'por',
+ ru: 'rus',
+ zh: 'chi',
+ sk: 'slo',
+}
diff --git a/src/i18n/de.json b/src/i18n/de.json
new file mode 100644
index 0000000..b2eb577
--- /dev/null
+++ b/src/i18n/de.json
@@ -0,0 +1,16 @@
+{
+ "go.home": "Zurück zur Startseite",
+ "logo": "geOrchestra",
+ "catalogue": "Katalog",
+ "viewer": "Viewer",
+ "maps": "Maps",
+ "datafeeder": "Importieren",
+ "services": "Services",
+ "admin": "Verwaltung",
+ "users": "Benutzer",
+ "logout": "Abmelden",
+ "login": "Anmelden",
+ "remaining_days_msg_part1": "Nur noch",
+ "remaining_days_msg_part2": "Tage zum",
+ "remaining_days_msg_part3": "Ändern Sie Ihr Passwort"
+}
diff --git a/src/i18n/en.json b/src/i18n/en.json
new file mode 100644
index 0000000..4698ffd
--- /dev/null
+++ b/src/i18n/en.json
@@ -0,0 +1,16 @@
+{
+ "go.home": "go home",
+ "logo": "geOrchestra",
+ "catalogue": "catalogue",
+ "viewer": "viewer",
+ "maps": "maps",
+ "datafeeder": "import",
+ "services": "services",
+ "admin": "administration",
+ "users": "users",
+ "logout": "logout",
+ "login": "login",
+ "remaining_days_msg_part1": "Only",
+ "remaining_days_msg_part2": "days left to",
+ "remaining_days_msg_part3": "change your password"
+}
diff --git a/src/i18n/es.json b/src/i18n/es.json
new file mode 100644
index 0000000..57e879f
--- /dev/null
+++ b/src/i18n/es.json
@@ -0,0 +1,16 @@
+{
+ "go.home": "volver al inicio",
+ "logo": "geOrchestra",
+ "catalogue": "catálogo",
+ "viewer": "visualizador",
+ "maps": "mapas",
+ "datafeeder": "importar",
+ "services": "servicios",
+ "admin": "administración",
+ "users": "usuarios",
+ "logout": "Cerrar sesión",
+ "login": "Iniciar sesión",
+ "remaining_days_msg_part1": "Solo quedan",
+ "remaining_days_msg_part2": "días para",
+ "remaining_days_msg_part3": "cambiar su contraseña"
+}
diff --git a/src/i18n/fr.json b/src/i18n/fr.json
new file mode 100644
index 0000000..3a6f438
--- /dev/null
+++ b/src/i18n/fr.json
@@ -0,0 +1,16 @@
+{
+ "go.home": "retourner à l'accueil",
+ "logo": "geOrchestra",
+ "catalogue": "catalogue",
+ "viewer": "visualiseur",
+ "maps": "cartes",
+ "datafeeder": "importer",
+ "services": "services",
+ "admin": "administration",
+ "users": "utilisateurs",
+ "logout": "déconnexion",
+ "login": "connexion",
+ "remaining_days_msg_part1": "Plus que",
+ "remaining_days_msg_part2": "jours restants pour",
+ "remaining_days_msg_part3": "modifier votre mot de passe"
+}
diff --git a/src/i18n/nl.json b/src/i18n/nl.json
new file mode 100644
index 0000000..dea3c80
--- /dev/null
+++ b/src/i18n/nl.json
@@ -0,0 +1,16 @@
+{
+ "go.home": "startpagina",
+ "logo": "geOrchestra",
+ "catalogue": "catalogus",
+ "viewer": "viewer",
+ "maps": "maps",
+ "datafeeder": "importeren",
+ "services": "diensten",
+ "admin": "beheer",
+ "users": "gebruikers",
+ "logout": "Uitloggen",
+ "login": "Log in",
+ "remaining_days_msg_part1": "Nog maar",
+ "remaining_days_msg_part2": "dagen om te",
+ "remaining_days_msg_part3": "verander uw wachtwoord"
+}
diff --git a/src/i18n/ru.json b/src/i18n/ru.json
new file mode 100644
index 0000000..6795c93
--- /dev/null
+++ b/src/i18n/ru.json
@@ -0,0 +1,16 @@
+{
+ "go.home": "домашняя страница",
+ "logo": "geOrchestra",
+ "catalogue": "Каталог",
+ "viewer": "вьюера",
+ "maps": "карты",
+ "datafeeder": "импортер",
+ "services": "сервисов",
+ "admin": "администрация",
+ "users": "пользователи",
+ "logout": "Отключение",
+ "login": "Соединение",
+ "remaining_days_msg_part1": "Осталось всего",
+ "remaining_days_msg_part2": "дня на",
+ "remaining_days_msg_part3": "измените свой пароль"
+}
diff --git a/src/ui/CatalogIcon.vue b/src/ui/CatalogIcon.vue
new file mode 100644
index 0000000..86ef63b
--- /dev/null
+++ b/src/ui/CatalogIcon.vue
@@ -0,0 +1,15 @@
+
+
+
diff --git a/src/ui/ChartPieIcon.vue b/src/ui/ChartPieIcon.vue
new file mode 100644
index 0000000..ca94b08
--- /dev/null
+++ b/src/ui/ChartPieIcon.vue
@@ -0,0 +1,20 @@
+
+
+
diff --git a/src/ui/ChevronDownIcon.vue b/src/ui/ChevronDownIcon.vue
new file mode 100644
index 0000000..b122247
--- /dev/null
+++ b/src/ui/ChevronDownIcon.vue
@@ -0,0 +1,15 @@
+
+
+
diff --git a/src/ui/GeorchestraLogo.vue b/src/ui/GeorchestraLogo.vue
new file mode 100644
index 0000000..4994f86
--- /dev/null
+++ b/src/ui/GeorchestraLogo.vue
@@ -0,0 +1,138 @@
+
+
+
diff --git a/src/ui/MapIcon.vue b/src/ui/MapIcon.vue
new file mode 100644
index 0000000..19713cd
--- /dev/null
+++ b/src/ui/MapIcon.vue
@@ -0,0 +1,15 @@
+
+
+
diff --git a/src/ui/UsersIcon.vue b/src/ui/UsersIcon.vue
new file mode 100644
index 0000000..7739c06
--- /dev/null
+++ b/src/ui/UsersIcon.vue
@@ -0,0 +1,15 @@
+
+
+
diff --git a/tailwind.config.js b/tailwind.config.js
index ea72bc5..7faaddf 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -9,5 +9,8 @@ module.exports = {
},
},
},
+ variants: {
+ display: ['group-hover'],
+ },
plugins: [],
}
diff --git a/vite.config.js b/vite.config.js
index a49655d..062bec3 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -13,6 +13,7 @@ export default defineConfig({
build: {
rollupOptions: {
output: {
+ format: 'iife',
entryFileNames: `assets/header.js`,
},
},
@@ -20,7 +21,7 @@ export default defineConfig({
server: {
proxy: {
'^/(whoami|\\?login|logout)': {
- target: 'https://mel.integration.apps.gs-fr-prod.camptocamp.com',
+ target: 'https://demo.georchestra.org',
changeOrigin: true,
},
},