Skip to content

Commit

Permalink
Adding modal filter design
Browse files Browse the repository at this point in the history
  • Loading branch information
alhdo committed Nov 6, 2024
1 parent 28e4355 commit d230a19
Show file tree
Hide file tree
Showing 13 changed files with 503 additions and 114 deletions.
16 changes: 16 additions & 0 deletions assets/css/rport.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ input::placeholder,textarea::placeholder {
--tw-text-opacity: 1;
color: #374151;
}
.text-theme-inverted-light,.text-theme-inverted-lighter {
--tw-text-opacity: 1;
color: #4b5563;
}
.text-theme-label {
--tw-text-opacity: 1;
color: #6b7280;
Expand All @@ -178,6 +182,18 @@ input::placeholder,textarea::placeholder {
--tw-bg-opacity: 1;
background-color: #fff;
}
.bg-theme-light {
--tw-bg-opacity: 1;
background-color: #f3f4f6;
}
.bg-theme-lighter {
--tw-bg-opacity: 1;
background-color: #f9fafb;
}

.bg-theme-backdrop\/75 {
background-color: #6b7280bf;
}
.bg-warning {
background-color: #ef6c00;
background-color: rgb(239 108 0/var(--tw-bg-opacity))
Expand Down
102 changes: 0 additions & 102 deletions components/Modale.vue

This file was deleted.

9 changes: 6 additions & 3 deletions components/NewDevicesSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
>
</form>
<svg
data-v-ca945699=""
xmlns="http://www.w3.org/2000/svg"
width="22px"
height="22px"
viewBox="0 0 24 24"
class="icon text-primary"
@click="openFilter"
>
<path
fill="currentColor"
Expand All @@ -38,7 +38,6 @@
>
<span class="flex items-center justify-center">
<svg
data-v-ca945699=""
xmlns="http://www.w3.org/2000/svg"
width="20px"
height="20px"
Expand All @@ -63,7 +62,6 @@
style=""
>
<svg
data-v-ca945699=""
xmlns="http://www.w3.org/2000/svg"
width="20px"
height="20px"
Expand Down Expand Up @@ -261,6 +259,7 @@
</Accordion>
</div>
</div>
<CustomModalFilter v-model="isFilterModalOpen" />
</nav>
</template>

Expand All @@ -282,7 +281,11 @@ const props = defineProps({
const isClientSettingOpen = ref(false);
const selectedSettingOpt = useLocalStorage('dashboard_nav_drawer_item_lines', 1);
const isFilterModalOpen = ref(false);
const openFilter = () => {
isFilterModalOpen.value = true;
};
const toggleClientSetting = () => {
isClientSettingOpen.value = !isClientSettingOpen.value;
};
Expand Down
38 changes: 38 additions & 0 deletions components/custom/loading-spinner/LoadingSpinner.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<template>
<span
class="absolute inset-0 flex items-center justify-center rounded-md bg-gray-300/10 backdrop-blur-sm"
><svg
xmlns="http://www.w3.org/2000/svg"
width="24px"
height="24px"
viewBox="0 0 24 24"
class="icon text-white mr-2 animate-spin"
>
<path
fill="currentColor"
d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"
opacity=".25"
/>
<path
fill="currentColor"
d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
>
<animateTransform
attributeName="transform"
dur="0.75s"
repeatCount="indefinite"
type="rotate"
values="0 12 12;360 12 12"
/>
</path>
</svg>
</span>
</template>

<script setup lang="ts">
</script>

<style scoped>
</style>
1 change: 1 addition & 0 deletions components/custom/loading-spinner/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as LoadingSpinner } from './LoadingSpinner.vue';
Loading

0 comments on commit d230a19

Please sign in to comment.