From a9cc044eb3c9f4de7927a48ea7c476f34b5919bc Mon Sep 17 00:00:00 2001 From: Anton Shubin <2spy4x@gmail.com> Date: Tue, 30 Jan 2024 21:23:03 +0800 Subject: [PATCH] ui: add buttons to the map draw --- apps/front/src/app.css | 5 ++- .../components/icons/arrowUturnLeft.svelte | 14 +++++++ .../components/icons/arrowUturnRight.svelte | 14 +++++++ .../lib/client/components/icons/check.svelte | 10 +++++ .../components/icons/cursorArrowRays.svelte | 14 +++++++ .../src/lib/client/components/icons/index.ts | 5 +++ .../lib/client/components/icons/xMark.svelte | 10 +++++ apps/front/src/routes/+page.svelte | 4 +- apps/front/src/routes/map/+page.svelte | 39 ++++++++++++++++++- 9 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 apps/front/src/lib/client/components/icons/arrowUturnLeft.svelte create mode 100644 apps/front/src/lib/client/components/icons/arrowUturnRight.svelte create mode 100644 apps/front/src/lib/client/components/icons/check.svelte create mode 100644 apps/front/src/lib/client/components/icons/cursorArrowRays.svelte create mode 100644 apps/front/src/lib/client/components/icons/xMark.svelte diff --git a/apps/front/src/app.css b/apps/front/src/app.css index 6c7737d..effb85a 100644 --- a/apps/front/src/app.css +++ b/apps/front/src/app.css @@ -4,7 +4,10 @@ @layer components { .btn { - @apply flex items-center gap-2 rounded-md px-3 py-2 text-sm font-semibold text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2; + @apply cursor-pointer flex items-center gap-2 + rounded-md px-3 py-2 + text-sm font-semibold text-white shadow-sm + focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2; } .btn-primary { diff --git a/apps/front/src/lib/client/components/icons/arrowUturnLeft.svelte b/apps/front/src/lib/client/components/icons/arrowUturnLeft.svelte new file mode 100644 index 0000000..ec02619 --- /dev/null +++ b/apps/front/src/lib/client/components/icons/arrowUturnLeft.svelte @@ -0,0 +1,14 @@ + + + diff --git a/apps/front/src/lib/client/components/icons/arrowUturnRight.svelte b/apps/front/src/lib/client/components/icons/arrowUturnRight.svelte new file mode 100644 index 0000000..fd0aef1 --- /dev/null +++ b/apps/front/src/lib/client/components/icons/arrowUturnRight.svelte @@ -0,0 +1,14 @@ + + + diff --git a/apps/front/src/lib/client/components/icons/check.svelte b/apps/front/src/lib/client/components/icons/check.svelte new file mode 100644 index 0000000..5197d39 --- /dev/null +++ b/apps/front/src/lib/client/components/icons/check.svelte @@ -0,0 +1,10 @@ + + + diff --git a/apps/front/src/lib/client/components/icons/cursorArrowRays.svelte b/apps/front/src/lib/client/components/icons/cursorArrowRays.svelte new file mode 100644 index 0000000..d2c8f02 --- /dev/null +++ b/apps/front/src/lib/client/components/icons/cursorArrowRays.svelte @@ -0,0 +1,14 @@ + + + diff --git a/apps/front/src/lib/client/components/icons/index.ts b/apps/front/src/lib/client/components/icons/index.ts index 895f236..fd4c84d 100644 --- a/apps/front/src/lib/client/components/icons/index.ts +++ b/apps/front/src/lib/client/components/icons/index.ts @@ -1,11 +1,16 @@ +export { default as IconArrowUturnLeft } from './arrowUturnLeft.svelte'; +export { default as IconArrowUturnRight } from './arrowUturnRight.svelte'; export { default as IconBell } from './bell.svelte'; export { default as IconBuildingOffice2 } from './buildingOffice2.svelte'; export { default as IconBulb } from './bulb.svelte'; export { default as IconChartPie } from './chartPie.svelte'; +export { default as IconCheck } from './check.svelte'; export { default as IconCog6Tooth } from './cog6tooth.svelte'; export { default as IconCpuChip } from './cpuChip.svelte'; +export { default as IconCursorArrowRays } from './cursorArrowRays.svelte'; export { default as IconExclamationTriangle } from './exclamationTriangle.svelte'; export { default as IconHome } from './home.svelte'; export { default as IconMap } from './map.svelte'; export { default as IconUser } from './user.svelte'; export { default as IconUsers } from './users.svelte'; +export { default as IconXMark } from './xMark.svelte'; diff --git a/apps/front/src/lib/client/components/icons/xMark.svelte b/apps/front/src/lib/client/components/icons/xMark.svelte new file mode 100644 index 0000000..773d2dc --- /dev/null +++ b/apps/front/src/lib/client/components/icons/xMark.svelte @@ -0,0 +1,10 @@ + + + diff --git a/apps/front/src/routes/+page.svelte b/apps/front/src/routes/+page.svelte index dec9c40..b853dc4 100644 --- a/apps/front/src/routes/+page.svelte +++ b/apps/front/src/routes/+page.svelte @@ -109,7 +109,7 @@ - + @@ -119,7 +119,7 @@ - + diff --git a/apps/front/src/routes/map/+page.svelte b/apps/front/src/routes/map/+page.svelte index 76b0db5..6a2d29a 100644 --- a/apps/front/src/routes/map/+page.svelte +++ b/apps/front/src/routes/map/+page.svelte @@ -1,11 +1,48 @@
-
+
+ +
+
+
+ + + +
+ + + + + +
+ + +
+
+