diff --git a/frontend/src/lib/components/Footer.svelte b/frontend/src/lib/components/Footer.svelte new file mode 100644 index 0000000..5d5f914 --- /dev/null +++ b/frontend/src/lib/components/Footer.svelte @@ -0,0 +1,43 @@ + + +
+ +
diff --git a/frontend/src/lib/components/navigation/MainNav.svelte b/frontend/src/lib/components/navigation/MainNav.svelte new file mode 100644 index 0000000..bfd13fd --- /dev/null +++ b/frontend/src/lib/components/navigation/MainNav.svelte @@ -0,0 +1,72 @@ + + + + + diff --git a/frontend/src/lib/components/navigation/MobileDrawer.svelte b/frontend/src/lib/components/navigation/MobileDrawer.svelte new file mode 100644 index 0000000..46dbae2 --- /dev/null +++ b/frontend/src/lib/components/navigation/MobileDrawer.svelte @@ -0,0 +1,28 @@ + + + diff --git a/frontend/src/lib/components/navigation/index.js b/frontend/src/lib/components/navigation/index.js index 4eef507..60e85f8 100644 --- a/frontend/src/lib/components/navigation/index.js +++ b/frontend/src/lib/components/navigation/index.js @@ -1,3 +1,5 @@ +export { default as MainNav } from './MainNav.svelte'; +export { default as MobileDrawer } from './MobileDrawer.svelte'; export { default as AdminNav } from './AdminNav.svelte'; export { default as AdminSidebar } from './AdminSidebar.svelte'; export { default as AdminMobileDrawer } from './AdminMobileDrawer.svelte'; diff --git a/frontend/src/lib/utils/arrays.js b/frontend/src/lib/utils/arrays.js new file mode 100644 index 0000000..ca73811 --- /dev/null +++ b/frontend/src/lib/utils/arrays.js @@ -0,0 +1,17 @@ +export const getDistinct = (items) => { + return Array.from(getCounter(items).keys()); +}; + +export const getDuplicates = (items) => { + return Array.from(getCounter(items).entries()) + .filter(([, count]) => count !== 1) + .map(([key]) => key); +}; + +export const getCounter = (items) => { + const result = new Map(); + items.forEach((item) => { + result.set(item, (result.get(item) ?? 0) + 1); + }); + return result; +}; diff --git a/frontend/src/routes/(front)/+layout.svelte b/frontend/src/routes/(front)/+layout.svelte new file mode 100644 index 0000000..dd1d263 --- /dev/null +++ b/frontend/src/routes/(front)/+layout.svelte @@ -0,0 +1,210 @@ + + + + {meta.title} — xmr.ditatompel.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Navigation

+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +