-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Display DRM information on product page (#1989)
* 💄 Add <NFTBookTooltips/> for drm info * 💄 Add <BottomDialog/> for mobile version * 💄 Implement drm info UI to <SpecTableValue/> * 💄 Fix z-index issue * 🚸 Improve backdrop behavior * 💄 Adjust minor style issues * ♻️ Optimize info icon * ✏️ Fix tooltip typo * 📈 Add event logging for tooltip clicks * ♻️ Optimize info Icon
- Loading branch information
1 parent
4704293
commit a813b96
Showing
11 changed files
with
226 additions
and
2 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,58 @@ | ||
<template> | ||
<div | ||
class="fixed inset-0 z-[1000001] bg-opacity-25 backdrop-filter bg-dark-gray backdrop-blur-sm" | ||
@click="close" | ||
> | ||
<div | ||
class="fixed left-0 bottom-0 flex flex-col items-center gap-[8px] w-full bg-white rounded-t-[16px]" | ||
@click.stop | ||
> | ||
<div class="relative w-full"> | ||
<ButtonV2 | ||
circle="true" | ||
size="small" | ||
preset="tertiary" | ||
class="absolute bottom-[12px] left-[12px]" | ||
@click.prevent="close" | ||
> | ||
<IconClose class="w-[20px]" /> | ||
</ButtonV2> | ||
</div> | ||
|
||
<div | ||
class="flex items-center justify-center w-full pt-[12px] pb-[8px] px-[20px]" | ||
> | ||
<p class="block text-[18px] font-600 text-black" v-text="title" /> | ||
</div> | ||
<div class="w-full h-[1px] bg-shade-gray" /> | ||
|
||
<div class="px-[20px] pt-[18px] pb-[48px]"> | ||
<slot name="content" /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
name: 'BottomDialog', | ||
props: { | ||
title: { | ||
type: String, | ||
default: undefined, | ||
}, | ||
}, | ||
mounted() { | ||
// Prevent scrolling on the body when the dialog is open | ||
document.body.classList.add('overflow-hidden'); | ||
}, | ||
beforeUnmount() { | ||
document.body.classList.remove('overflow-hidden'); | ||
}, | ||
methods: { | ||
close() { | ||
this.$emit('close'); | ||
document.body.classList.remove('overflow-hidden'); | ||
}, | ||
}, | ||
}; | ||
</script> |
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,8 @@ | ||
<template> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none"> | ||
<path | ||
fill="currentColor" | ||
d="M7.333 11.333h1.334v-4H7.333v4Zm.667-10A6.67 6.67 0 0 0 1.333 8 6.67 6.67 0 0 0 8 14.667 6.67 6.67 0 0 0 14.667 8 6.67 6.67 0 0 0 8 1.333Zm0 12A5.34 5.34 0 0 1 2.667 8 5.34 5.34 0 0 1 8 2.667 5.34 5.34 0 0 1 13.333 8 5.34 5.34 0 0 1 8 13.333ZM7.333 6h1.334V4.667H7.333V6Z" | ||
/> | ||
</svg> | ||
</template> |
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
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
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
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,45 @@ | ||
<template> | ||
<div | ||
:class="[ | ||
'absolute', | ||
'top-[24px]', | ||
'z-50', | ||
'flex', | ||
'flex-col', | ||
'items-start', | ||
'px-[16px]', | ||
'py-[8px]', | ||
'border border-[#E3E3E3]', | ||
'rounded-[12px]', | ||
'bg-white', | ||
'w-[230px]', | ||
'text-[14px]', | ||
'shadow-md', | ||
]" | ||
> | ||
<p | ||
class="block text-[14px] font-600 text-dark-gray" | ||
v-text="tooltipTitle" | ||
/> | ||
<p v-text="tooltipText" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'NFTBookTooltip', | ||
props: { | ||
tooltipText: { | ||
type: String, | ||
default: undefined, | ||
}, | ||
tooltipTitle: { | ||
type: String, | ||
default: undefined, | ||
}, | ||
}, | ||
}; | ||
</script> |
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
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
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
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
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