forked from osoc24/loama
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(requestView): add extra information to inputs
- Loading branch information
1 parent
50e22f8
commit 2e3736c
Showing
2 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<div class="popup-container"> | ||
<PhQuestion :size="24" @mouseover="showPopup = true;" @mouseleave="showPopup = false" /> | ||
<div class="floating-popup" v-if="showPopup"> | ||
<h3>{{ title }}</h3> | ||
<p>{{ message }}</p> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang='ts'> | ||
import { PhQuestion } from '@phosphor-icons/vue'; | ||
import { ref } from 'vue'; | ||
defineProps<{title: string; message: string}>() | ||
let showPopup = ref(false) | ||
</script> | ||
<style scoped> | ||
.popup-container { | ||
position: relative; | ||
} | ||
.floating-popup { | ||
position: absolute; | ||
z-index: 10; | ||
left: 30px; | ||
top: 0; | ||
border: 0.25rem solid var(--solid-purple); | ||
background-color: var(--off-white); | ||
padding: var(--base-unit); | ||
border-radius: var(--base-corner); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
width: 30rem; | ||
} | ||
h3 { | ||
margin-bottom: calc(var(--base-unit) * 2); | ||
font-size: calc(var(--base-unit)*3); | ||
} | ||
p { | ||
margin-bottom: calc(var(--base-unit)); | ||
} | ||
aside { | ||
display: flex; | ||
padding: 8px; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 8px; | ||
border-radius: var(--base-corner); | ||
background-color: var(--solid-purple); | ||
color: var(--off-white); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters