Skip to content

Commit

Permalink
client side
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulqoyum6 committed Aug 22, 2023
1 parent 04e0f2f commit b8cf276
Show file tree
Hide file tree
Showing 14 changed files with 474 additions and 209 deletions.
File renamed without changes
Binary file added src/assets/enva-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/components/ClientListPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default defineComponent({
<tbody>
<tr class="text-center h-[7vh] text-[17px] border border-gray-300" v-for="(rows, index) in store.$state.clients" :key="rows.id" :class="index % 2 === 0 ? 'bg-gray-200' : 'bg-white'">
<td>{{ index+1 }}</td>
<td @click="viewClient((rows.id), rows)" class="hover:bg-gray-400 cursor-pointer">{{ rows.name }}</td>
<td class="hover:bg-gray-400 cursor-pointer">{{ rows.name }}</td>
<td>{{ rows.client_id }}</td>
<td>{{ rows?.samples_count }}</td>
<td>{{ rows.received_date.slice(0, 10) }}</td>
Expand All @@ -151,6 +151,9 @@ export default defineComponent({
<div @click="deleteModal(rows.id)">
<svg xmlns="http://www.w3.org/2000/svg" class="text-red-600 cursor-pointer" width="25" height="25" viewBox="0 0 24 24"><path fill="currentColor" d="M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7Zm2-5q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7Z"/></svg>
</div>
<div @click="viewClient((rows.id), rows)">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#0000fe" d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3z"/></svg>
</div>
</div>
</td>
</tr>
Expand Down
166 changes: 116 additions & 50 deletions src/components/ClientPage.vue

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions src/components/FeedbackForm.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<script>
import { defineComponent } from 'vue';
export default defineComponent({
props: ['open'],
emits: ['close'],
data() {
return {
}
}
})
</script>

<template>
<div @click.self="$emit('close')" v-if="open" class="h-screen w-screen fixed top-0 left-0 flex justify-center z-10 items-center bg-opacity-60 bg-black">
<div class="container mx-auto p-5 rounded-lg bg-white w-[370px] md:w-[90vw] lg:w-[800px] relative z-80 h-[70vh] lg:h-fit overflow-scroll">
<div class="flex justify-between md:justify-end">
<svg @click="$emit('close')" class="md:hidden" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21 21l-9-9m0 0L3 3m9 9l9-9m-9 9l-9 9"/></svg>
<img src="../assets/enva-logo.png" alt="" class="h-[60px]">
</div>
<div class="md:px-[60px]">
<p class="text-xl font-bold py-3">Customer Satisfaction Survey</p>

<p class="text font-semibold py-3">Overall level of satisfaction.</p>
<div class="mb-2">
<p class="text-[17px]">1. What is your overall level of satisfaction with our laboratory services?</p>
<div class="md:flex justify-between">
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Very pleased</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">pleased</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Adequate</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Dissatisfied</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Strongly dissatisfied</label>
</div>
</div>
</div>

<div class="mb-2">
<p class="text-[17px]">2. Will you use our service again?</p>
<div class="md:flex gap-[7%]">
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Yes</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Maybe</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">NO</label>
</div>
</div>
</div>

<div class="mb-2">
<p class="text-[17px]">3. Did you receive value for the fees charged?</p>
<div class="md:flex gap-[7%]">
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Yes</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">Maybe</label>
</div>
<div class="flex gap-[7px] justify-start item-center ">
<input type="checkbox">
<label class="w-fit">NO</label>
</div>
</div>
</div>
<p class="text-[17px]">4. What can we do to serve you better?</p>
<textarea rows="6" type="text" class="w-full my-2 border border-black p-2 rounded-lg" />
</div>
<div class="flex justify-end items-center space-x-8 mt-[15px] px-[30px]">
<p @click="$emit('close')" class="font-bold cursor-pointer text-xl text-red-600">Close</p>
<button class="bg-[#0000fe] text-white px-[35px] py-[10px] font-[600] rounded-lg">Submit</button>
</div>
</div>
</div>
</template>
4 changes: 2 additions & 2 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default defineComponent({
<template>
<div class="fixed bottom-0 bg-[#0000fe] w-[100%] py-3 lg:hidden">
<div class="flex justify-around">
<router-link to="/home" class="text-white flex flex-col items-center hover:cursor-pointer">
<router-link to="/" class="text-white flex flex-col items-center hover:cursor-pointer">
<div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M4 21V9l8-6l8 6v12h-6v-7h-4v7H4Z"/></svg></div>
<div :class="$route.path === '/home' ? 'border-b-2 border-white' : ''">Home</div>
<div :class="$route.path === '/' ? 'border-b-2 border-white' : ''">Home</div>
</router-link>
<router-link :to="{name: 'Add-client'}" class="text-white flex flex-col items-center hover:cursor-pointer">
<div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17.5 21h1v-2.5H21v-1h-2.5V15h-1v2.5H15v1h2.5V21Zm.5 2q-2.075 0-3.538-1.463T13 18q0-2.075 1.463-3.538T18 13q2.075 0 3.538 1.463T23 18q0 2.075-1.463 3.538T18 23ZM9 7V5h12v2H9ZM5 20q-.825 0-1.413-.588T3 18q0-.825.588-1.413T5 16q.825 0 1.413.588T7 18q0 .825-.588 1.413T5 20Zm0-6q-.825 0-1.413-.588T3 12q0-.825.588-1.413T5 10q.825 0 1.413.588T7 12q0 .825-.588 1.413T5 14Zm0-6q-.825 0-1.413-.588T3 6q0-.825.588-1.413T5 4q.825 0 1.413.588T7 6q0 .825-.588 1.413T5 8Zm4 11v-2h2.075Q11 17.5 11 18t.075 1H9Zm0-6v-2h9q-1.425 0-2.675.537T13.125 13H9Z"/></svg></div>
Expand Down
30 changes: 26 additions & 4 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { defineComponent } from 'vue'
export default defineComponent({
data() {
return {
isLogout: false
}
},
methods: {
logout() {
localStorage.clear();
Expand All @@ -12,22 +17,39 @@ export default defineComponent({
</script>

<template>
<div class="sticky top-0 z-10 bg-white w-full py-3 flex items-center justify-between px-[30px]">
<div class="sticky top-0 z-10 bg-white w-full py-3 flex items-center justify-between px-4 md:px-[30px]">
<div class="flex space-x-3 items-center">
<img class="h-[50px]" src="../assets/svg-rev-01.png" alt="">
<img class="h-[50px]" src="../assets/enva-logo.png" alt="">
<div class="">
<p class="text-xl font-bold">EnvAccord</p>
<p class="text-xl font-bold">Laboratory</p>
</div>

</div>
<div class="flex gap-8 items-center">
<div class="flex gap-2 md:gap-8 items-center">
<div class="flex gap-1">
<div>
<svg xmlns="http://www.w3.org/2000/svg" class="text-[#0000fe]" width="25" height="25" viewBox="0 0 24 24"><path fill="currentColor" d="M2 10q0-2.2.888-4.163T5.425 2.45l1.425 1.4Q5.5 5.025 4.75 6.613T4 10H2Zm18 0q0-1.8-.75-3.388t-2.1-2.762l1.425-1.4q1.65 1.425 2.538 3.388T22 10h-2ZM4 19v-2h2v-7q0-2.075 1.25-3.688T10.5 4.2v-.7q0-.625.438-1.063T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h2v2H4Zm8 3q-.825 0-1.413-.588T10 20h4q0 .825-.588 1.413T12 22Z"/></svg>
</div>
<a href="#" class="hidden md:block text-[#0000fe] font-semibold">Notification</a>
</div>
<div @click="logout" class="flex gap-1">
<div @click="isLogout = true" class="flex gap-1 cursor-pointer">
<div><svg xmlns="http://www.w3.org/2000/svg" class="text-[#0000fe]" width="25" height="25" viewBox="0 0 20 20"><path fill="currentColor" d="M8.5 11.25a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5ZM11 3.5a.5.5 0 0 0-.576-.494l-7 1.07A.5.5 0 0 0 3 4.57v10.86a.5.5 0 0 0 .424.494l7 1.071a.5.5 0 0 0 .576-.494V10h5.172l-.997.874a.5.5 0 0 0 .658.752l1.996-1.75a.5.5 0 0 0 0-.752l-1.996-1.75a.499.499 0 1 0-.658.752l.997.874H11V3.5Zm-1 .582V15.92L4 15V4.999l6-.917ZM12.5 16H12v-5h1v4.5a.5.5 0 0 1-.5.5ZM12 8V4h.5a.5.5 0 0 1 .5.5V8h-1Z"/></svg></div>
<p class="text-[#0000fe] hidden md:block font-semibold">Logout</p>
</div>
</div>

</div>
<Teleport to="body">
<div @click.self="logOutModal = true" v-if="isLogout" class="fixed top-0 left-0 h-screen w-screen z-20 flex justify-center items-center bg-opacity-75 bg-black">
<div class="z-30 bg-white w-[343px] lg:w-[450px] h-fit rounded-lg shadow-lg p-5">
<p class="text-xl font-semibold">Log Out</p>
<p class="w-full">Are you sure you want to log out?</p>
<div class="flex space-x-3 mt-8 w-fit ml-auto mr-0">
<button class="bg-red-600 text-white px-3 py-2 rounded-lg font-medium" @click="logout">Log out</button>
<button class="bg-[#0000fe] text-white px-3 py-2 rounded-lg font-medium" @click="isLogout = false">Cancel</button>
</div>
</div>
</div>
</Teleport>
</template>
Loading

0 comments on commit b8cf276

Please sign in to comment.