From 9c51cd91ccf824342963491faeb435aa1ddeb22f Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Fri, 06 Jun 2025 15:32:58 +0000
Subject: [PATCH] adding search

---
 vue/src/components/Pagination.vue |    6 +++++-
 vue/src/pages/Users.vue           |   19 +++++++++++++++++--
 2 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/vue/src/components/Pagination.vue b/vue/src/components/Pagination.vue
index ece7eba..5fd63ea 100644
--- a/vue/src/components/Pagination.vue
+++ b/vue/src/components/Pagination.vue
@@ -133,7 +133,6 @@
    display flex;
    flex-direction column
    align-items center;
-   margin -1em 0 1em 0;
 .pagination-buttons
    font-size 1.33rem
    display flex;
@@ -161,6 +160,11 @@
    //all: unset
    border none
    width 1em
+input[type=button]
+   color rgb(0,0,238)
+   cursor pointer;
+   &:hover
+      background-color #ddd;
 
 
 button
diff --git a/vue/src/pages/Users.vue b/vue/src/pages/Users.vue
index 3971e71..69ce06a 100644
--- a/vue/src/pages/Users.vue
+++ b/vue/src/pages/Users.vue
@@ -51,7 +51,13 @@
 
       <div class="users">
 
-         <Pagination :offset="users.offset" :limit="users.limit" :total="users.total" @go="go" />
+         <div class="users-header">
+            <div class="search">
+               Search
+               <input type="text" size="30">
+            </div>
+            <Pagination :offset="users.offset" :limit="users.limit" :total="users.total" @go="go" />
+         </div>
 
          <table class="w100p">
             <thead>
@@ -90,6 +96,15 @@
 
 </template>
 
-<style scoped>
+<style scoped lang="stylus">
+
+.users-header
+   display flex;
+   align-items center
+   justify-content space-around
+   margin-bottom 1em;
+   margin-top -.5em;
+   border 1px dotted #ccc
+   background-color #eee;
 
 </style>

--
Gitblit v1.8.0