|
| 1 | + <!-- |
| 2 | + - @copyright Copyright (c) 2020 Fon E. Noel NFEBE <fenn25.fn@gmail.com> |
| 3 | + - |
| 4 | + - @author Fon E. Noel NFEBE <fenn25.fn@gmail.com> |
| 5 | + - |
| 6 | + - @license GNU AGPL version 3 or any later version |
| 7 | + - |
| 8 | + - This program is free software: you can redistribute it and/or modify |
| 9 | + - it under the terms of the GNU Affero General Public License as |
| 10 | + - published by the Free Software Foundation, either version 3 of the |
| 11 | + - License, or (at your option) any later version. |
| 12 | + - |
| 13 | + - This program is distributed in the hope that it will be useful, |
| 14 | + - but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | + - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | + - GNU Affero General Public License for more details. |
| 17 | + - |
| 18 | + - You should have received a copy of the GNU Affero General Public License |
| 19 | + - along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | + - |
| 21 | + --> |
| 22 | +<template> |
| 23 | + <div class="result-item"> |
| 24 | + <slot name="icon"></slot> |
| 25 | + <div class="details"> |
| 26 | + <span>Result Title</span> |
| 27 | + <small>More details about result</small> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | +</template> |
| 31 | + |
| 32 | +<script> |
| 33 | +
|
| 34 | +export default { |
| 35 | + name: 'SearchResultItem', |
| 36 | + components: { |
| 37 | + }, |
| 38 | +
|
| 39 | + data() { |
| 40 | + return { |
| 41 | + } |
| 42 | + }, |
| 43 | +
|
| 44 | + methods: { |
| 45 | +
|
| 46 | + }, |
| 47 | +} |
| 48 | +</script> |
| 49 | + |
| 50 | +<style lang="scss" scoped> |
| 51 | +.result-item { |
| 52 | + display: flex; |
| 53 | + padding: 5px; /* Add padding for the border effect */ |
| 54 | + border: 1px solid #f0f0f0; /* Faint border */ |
| 55 | + border-radius: 10px; |
| 56 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); /* Light shadow */ |
| 57 | + transition: background-color 0.3s ease; /* Smooth hover transition */ |
| 58 | +
|
| 59 | + & .details { |
| 60 | + display: flex; |
| 61 | + flex-direction: column; |
| 62 | + } |
| 63 | +
|
| 64 | + &:hover { |
| 65 | + background-color: var(--color-placeholder-light); |
| 66 | + } |
| 67 | +} |
| 68 | +</style> |
0 commit comments