aboutsummaryrefslogtreecommitdiff
path: root/src/components/SearchBarItem.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/SearchBarItem.vue')
-rw-r--r--src/components/SearchBarItem.vue45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/components/SearchBarItem.vue b/src/components/SearchBarItem.vue
new file mode 100644
index 0000000..d81606a
--- /dev/null
+++ b/src/components/SearchBarItem.vue
@@ -0,0 +1,45 @@
+<script lang="ts" setup>
+import type { ITool } from '@/tools/tool';
+import { toRefs } from 'vue';
+
+const props = defineProps<{ tool: ITool }>();
+const { tool } = toRefs(props);
+</script>
+
+<template>
+ <div class="search-bar-item">
+ <n-icon class="icon" :component="tool.icon" />
+
+ <div>
+ <div class="name">{{ tool.name }}</div>
+ <div class="description">{{ tool.description }}</div>
+ </div>
+ </div>
+</template>
+
+<style lang="less" scoped>
+.search-bar-item {
+ padding: 10px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+
+ .icon {
+ font-size: 30px;
+ margin-right: 10px;
+ opacity: 0.7;
+ }
+
+ .name {
+ font-weight: bold;
+ font-size: 15px;
+ line-height: 1;
+ margin-bottom: 5px;
+ }
+
+ .description {
+ opacity: 0.7;
+ line-height: 1;
+ }
+}
+</style>