mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
added: upload drop down
This commit is contained in:
278
src/components/Topbar/UploadDropdown.vue
Normal file
278
src/components/Topbar/UploadDropdown.vue
Normal file
@@ -0,0 +1,278 @@
|
||||
<template>
|
||||
<div
|
||||
flex="~ col"
|
||||
bg="$bew-content-solid-1"
|
||||
rounded="$bew-radius"
|
||||
style="box-shadow: var(--bew-shadow-3);"
|
||||
p="4"
|
||||
w="180px"
|
||||
>
|
||||
<a
|
||||
class="upload-item"
|
||||
href="//member.bilibili.com/platform/upload/text/apply"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
width="26"
|
||||
height="26"
|
||||
viewBox="0 0 26 26"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="item-icon"
|
||||
>
|
||||
<rect
|
||||
opacity="0.01"
|
||||
x="1"
|
||||
y="1"
|
||||
width="24"
|
||||
height="24"
|
||||
fill="#C4C4C4"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M5.5 3.5H15.5C17.9853 3.5 20 5.51472 20 8V12.5C20 13.0523 20.4477 13.5 21 13.5C21.5523 13.5 22 13.0523 22 12.5V11.5C22 11.4989 22 11.4977 22 11.4966V8C22 4.41015 19.0899 1.5 15.5 1.5H5.5C4.11929 1.5 3 2.61929 3 4V21C3 22.3807 4.11929 23.5 5.5 23.5H14.2615H15H15.2615C15.8138 23.5 16.2615 23.0523 16.2615 22.5C16.2615 21.9477 15.8138 21.5 15.2615 21.5H15H14.2615H5.5C5.22386 21.5 5 21.2761 5 21V4C5 3.72386 5.22386 3.5 5.5 3.5Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M7 10C7 9.44772 7.44772 9 8 9H14C14.5523 9 15 9.44772 15 10C15 10.5523 14.5523 11 14 11H8C7.44772 11 7 10.5523 7 10Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M7 14C7 13.4477 7.44772 13 8 13H11C11.5523 13 12 13.4477 12 14C12 14.5523 11.5523 15 11 15H8C7.44772 15 7 14.5523 7 14Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M22.0502 15.348C21.4644 14.7622 20.5146 14.7622 19.9288 15.348L17.454 17.8228C17.0634 18.2134 17.0634 18.8465 17.454 19.237C17.8445 19.6276 18.4777 19.6276 18.8682 19.237L20.9895 17.1157L23.1108 19.237C23.5013 19.6276 24.1345 19.6276 24.525 19.237C24.9156 18.8465 24.9156 18.2134 24.525 17.8228L22.0502 15.348Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M20.9895 14.9758C21.5418 14.9758 21.9895 15.4235 21.9895 15.9758L21.9895 22.5C21.9895 23.0523 21.5418 23.5 20.9895 23.5C20.4372 23.5 19.9895 23.0523 19.9895 22.5L19.9895 15.9758C19.9895 15.4235 20.4372 14.9758 20.9895 14.9758Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<div>Article</div>
|
||||
</a>
|
||||
<a
|
||||
class="upload-item"
|
||||
href="//member.bilibili.com/platform/upload/audio/frame"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
width="26"
|
||||
height="26"
|
||||
viewBox="0 0 26 26"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="item-icon"
|
||||
>
|
||||
<rect
|
||||
opacity="0.01"
|
||||
x="0.5"
|
||||
y="1"
|
||||
width="24"
|
||||
height="24"
|
||||
fill="#C4C4C4"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M5 3.5H15C17.4853 3.5 19.5 5.51472 19.5 8V11.5V12.5C19.5 13.0523 19.9477 13.5 20.5 13.5C21.0523 13.5 21.5 13.0523 21.5 12.5V11.5V8C21.5 4.41015 18.5899 1.5 15 1.5H5C3.61929 1.5 2.5 2.61929 2.5 4V21C2.5 22.3807 3.61929 23.5 5 23.5H13.5H14.0802H14.5C15.0523 23.5 15.5 23.0523 15.5 22.5C15.5 21.9477 15.0523 21.5 14.5 21.5H14.0802H13.5H5C4.72386 21.5 4.5 21.2761 4.5 21V4C4.5 3.72386 4.72386 3.5 5 3.5Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M21.5611 15.348C20.9753 14.7622 20.0255 14.7622 19.4397 15.348L16.9649 17.8228C16.5743 18.2134 16.5743 18.8465 16.9649 19.237C17.3554 19.6276 17.9886 19.6276 18.3791 19.237L20.5004 17.1157L22.6217 19.237C23.0122 19.6276 23.6454 19.6276 24.0359 19.237C24.4265 18.8465 24.4265 18.2134 24.0359 17.8228L21.5611 15.348Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M20.5004 14.9758C21.0527 14.9758 21.5004 15.4235 21.5004 15.9758L21.5004 22.5C21.5004 23.0523 21.0527 23.5 20.5004 23.5C19.9481 23.5 19.5004 23.0523 19.5004 22.5L19.5004 15.9758C19.5004 15.4235 19.9481 14.9758 20.5004 14.9758Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
d="M12.7504 9.54767V12.5477"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M8.75037 13.9222C8.75037 13.1631 9.39507 12.5477 10.1904 12.5477H12.7504V14.1731C12.7504 14.9323 12.1057 15.5477 11.3104 15.5477H10.1904C9.39507 15.5477 8.75037 14.9323 8.75037 14.1731V13.9222Z"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M15.2504 10.0477L12.7504 9.54767"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<div>Music</div>
|
||||
</a>
|
||||
<a
|
||||
class="upload-item"
|
||||
href="//member.bilibili.com/platform/upload/sticker"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
width="26"
|
||||
height="26"
|
||||
viewBox="0 0 26 26"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="item-icon"
|
||||
>
|
||||
<path d="M24 2H0V26H24V2Z" fill="white" fill-opacity="0.01" />
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M23.0607 15.348C22.4749 14.7622 21.5251 14.7622 20.9393 15.348L18.4645 17.8228C18.0739 18.2134 18.0739 18.8465 18.4645 19.237C18.855 19.6276 19.4882 19.6276 19.8787 19.237L22 17.1157L24.1213 19.237C24.5118 19.6276 25.145 19.6276 25.5355 19.237C25.9261 18.8465 25.9261 18.2134 25.5355 17.8228L23.0607 15.348Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M22 14.9759C22.5523 14.9759 23 15.4236 23 15.9759L23 22.5C23 23.0523 22.5523 23.5 22 23.5C21.4477 23.5 21 23.0523 21 22.5L21 15.9759C21 15.4236 21.4477 14.9759 22 14.9759Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path d="M24 1H0V25H24V1Z" fill="white" fill-opacity="0.01" />
|
||||
<path
|
||||
d="M22 12.4875C22 6.96464 17.5229 2.48749 12 2.48749C6.47715 2.48749 2 6.96464 2 12.4875C2 18.0103 6.47715 22.4875 12 22.4875C13.8026 22.4875 15.4938 22.0105 16.9543 21.176"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M12 16.4132C13.6072 16.4132 14.2501 15.1274 14.2501 15.1274H9.74991C9.74991 15.1274 10.3928 16.4132 12 16.4132Z"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M15.5 9.48749V11.4875"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M8.5 9.48749V11.4875"
|
||||
stroke="var(--bew-text-1)"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<div>Sticker</div>
|
||||
</a>
|
||||
<a
|
||||
class="upload-item"
|
||||
href="//member.bilibili.com/platform/upload/video/frame"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
width="26"
|
||||
height="26"
|
||||
viewBox="0 0 26 26"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="item-icon"
|
||||
>
|
||||
<rect opacity="0.01" x="1.55603" width="24" height="24" fill="#C4C4C4" />
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M21.556 10.1866C21.0037 10.1866 20.556 10.6343 20.556 11.1866V12.5712C20.556 13.1234 21.0037 13.5712 21.556 13.5712C22.1083 13.5712 22.556 13.1234 22.556 12.5712V11.1866C22.556 10.6343 22.1083 10.1866 21.556 10.1866ZM14.556 20.5C14.0037 20.5 13.556 20.9477 13.556 21.5C13.556 22.0523 14.0037 22.5 14.556 22.5H15.556C16.1083 22.5 16.556 22.0523 16.556 21.5C16.556 20.9477 16.1083 20.5 15.556 20.5H14.556Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M22.6093 15.348C22.0235 14.7622 21.0738 14.7622 20.488 15.348L18.0131 17.8229C17.6226 18.2134 17.6226 18.8465 18.0131 19.2371C18.4037 19.6276 19.0368 19.6276 19.4274 19.2371L21.5487 17.1158L23.67 19.2371C24.0605 19.6276 24.6937 19.6276 25.0842 19.2371C25.4747 18.8465 25.4747 18.2134 25.0842 17.8229L22.6093 15.348Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M21.5487 14.9759C22.101 14.9759 22.5487 15.4236 22.5487 15.9759L22.5487 22.5C22.5487 23.0523 22.101 23.5 21.5487 23.5C20.9964 23.5 20.5487 23.0523 20.5487 22.5L20.5487 15.9759C20.5487 15.4236 20.9964 14.9759 21.5487 14.9759Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M3.20868 5.5H19.556C20.1083 5.5 20.556 5.94771 20.556 6.5V11.8911H22.556V6.5C22.556 4.84315 21.2129 3.5 19.556 3.5H3.20868C1.55183 3.5 0.208679 4.84315 0.208679 6.5V19.5C0.208679 21.1569 1.55182 22.5 3.20868 22.5H15.453V20.5H3.20868C2.65639 20.5 2.20868 20.0523 2.20868 19.5V6.5C2.20868 5.94772 2.6564 5.5 3.20868 5.5Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
<path
|
||||
d="M13.3617 12.134C14.0284 12.5189 14.0284 13.4811 13.3617 13.866L10.3617 15.5981C9.69503 15.983 8.86169 15.5019 8.86169 14.7321V11.2679C8.86169 10.4981 9.69503 10.017 10.3617 10.4019L13.3617 12.134Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<div>Video</div>
|
||||
</a>
|
||||
<a
|
||||
class="upload-item"
|
||||
href="//member.bilibili.com/platform/upload-manager/article"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
width="26"
|
||||
height="26"
|
||||
viewBox="0 0 26 26"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="item-icon"
|
||||
>
|
||||
<rect
|
||||
opacity="0.01"
|
||||
x="1.5"
|
||||
y="1"
|
||||
width="24"
|
||||
height="24"
|
||||
fill="#C4C4C4"
|
||||
/>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M16 3.5H6C5.72386 3.5 5.5 3.72386 5.5 4V21C5.5 21.2761 5.72386 21.5 6 21.5H10.5H11.5C12.0523 21.5 12.5 21.9477 12.5 22.5C12.5 23.0523 12.0523 23.5 11.5 23.5H10.5H6C4.61929 23.5 3.5 22.3807 3.5 21V4C3.5 2.61929 4.61929 1.5 6 1.5H16C19.5899 1.5 22.5 4.41015 22.5 8V11.2806V11.818V12.2806C22.5 12.8329 22.0523 13.2806 21.5 13.2806C20.9477 13.2806 20.5 12.8329 20.5 12.2806V11.818V11.2806V8C20.5 5.51472 18.4853 3.5 16 3.5ZM15 10.634C15.6667 11.0189 15.6667 11.9811 15 12.366L12 14.0981C11.3333 14.483 10.5 14.0019 10.5 13.2321V9.76795C10.5 8.99815 11.3333 8.51702 12 8.90192L15 10.634ZM23.9227 20.238C24.2799 19.6192 24.2799 18.8568 23.9227 18.238L22.3274 15.4748C21.9701 14.856 21.3098 14.4748 20.5953 14.4748H17.4047C16.6902 14.4748 16.0299 14.856 15.6727 15.4748L14.0774 18.238C13.7201 18.8568 13.7201 19.6192 14.0774 20.238L15.6727 23.0011C16.0299 23.6199 16.6902 24.0011 17.4047 24.0011H20.5953C21.3098 24.0011 21.9701 23.6199 22.3274 23.0011L23.9227 20.238ZM17.2604 16.7248C17.3497 16.5701 17.5148 16.4748 17.6934 16.4748H20.3066C20.4853 16.4748 20.6503 16.5701 20.7397 16.7248L22.0463 18.988C22.1356 19.1427 22.1356 19.3333 22.0463 19.488L20.7397 21.7511C20.6503 21.9058 20.4853 22.0011 20.3066 22.0011H17.6934C17.5148 22.0011 17.3497 21.9058 17.2604 21.7511L15.9538 19.488C15.8644 19.3333 15.8644 19.1427 15.9538 18.988L17.2604 16.7248ZM19 17.9879C18.3096 17.9879 17.75 18.5476 17.75 19.2379C17.75 19.9283 18.3096 20.4879 19 20.4879C19.6904 20.4879 20.25 19.9283 20.25 19.2379C20.25 18.5476 19.6904 17.9879 19 17.9879Z"
|
||||
fill="var(--bew-text-1)"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<div>Creator center</div>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.upload-item {
|
||||
@apply flex items-center p-2 rounded-$bew-radius mb-1 last:mb-0
|
||||
transition-all duration-300
|
||||
hover:bg-$bew-fill-2;
|
||||
|
||||
.item-icon {
|
||||
@apply mr-2;
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,185 +1,3 @@
|
||||
<template>
|
||||
<header>
|
||||
<transition name="topbar">
|
||||
<div
|
||||
v-show="showTopbarMask"
|
||||
class="fixed top-0 left-0"
|
||||
w="full"
|
||||
h="160px"
|
||||
opacity="100"
|
||||
pointer="none"
|
||||
style="background: linear-gradient(var(--bew-bg), transparent)"
|
||||
></div>
|
||||
</transition>
|
||||
|
||||
<div
|
||||
class="left-side"
|
||||
@mouseenter.self="showLogoMenuDropdown()"
|
||||
@mouseleave.self="closeLogoMenuDropdown()"
|
||||
>
|
||||
<div
|
||||
ref="logo"
|
||||
class="logo"
|
||||
>
|
||||
<svg
|
||||
t="1645466458357"
|
||||
class="icon"
|
||||
viewBox="0 0 2299 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="2663"
|
||||
width="60"
|
||||
height="60"
|
||||
>
|
||||
<path
|
||||
d="M1775.840814 322.588002c6.0164 1.002733 53.144869-9.525967 55.150336-6.016401 3.0082 4.5123 24.065601 155.92504 18.550567 156.927774s-44.621635 10.027334-44.621635 10.027334c-3.0082-20.556034-28.577901-147.903173-29.079268-160.938707m75.205003-14.539634l20.556034 162.944174c10.5287-0.501367 53.144869-3.509567 57.155803-4.010934-6.0164-61.668103-16.545101-158.933241-16.545101-158.93324-20.054668-4.010934-41.112069-4.010934-61.166736 0m-40.610702 226.116376s92.752838-23.564234 126.344406-12.0328c17.046467 61.668103 48.131202 407.611118 51.139402 421.649386-21.057401 2.506833-90.246004 8.523234-95.761037 10.027333-4.5123-26.071068-81.72277-403.098818-81.722771-419.643919m343.436183-207.565809c5.515034 1.5041 54.648969-5.013667 55.150335-1.5041 1.002733 12.032801 6.0164 157.42914 0.501367 157.930507s-44.621635 4.010934-44.621635 4.010934c-1.002733-20.054668-12.032801-146.90044-11.030067-160.437341m75.70637-4.010933l4.010933 160.938707c10.5287 0 52.643502 2.506833 57.155803 2.005467-1.002733-61.668103 0-158.933241 0-158.933241-20.054668-3.509567-40.610702-5.013667-61.166736-4.010933m-64.676303 216.089043s94.758304-12.534167 126.845772 2.506833c7.019134 72.196803 6.0164 408.613852 7.019134 422.652119-21.558768 0-90.246004 1.002733-95.761038 2.005467-1.002733-26.071068-39.607968-410.619319-38.103868-427.164419m-220.099977-413.627519c54.648969 278.759879 96.262404 755.058234 97.766504 785.641602 0 0 43.117535 1.002733 91.750105 4.010934C2105.740095 614.383415 2070.644427 134.575493 2071.145794 119.033126c-12.032801-13.536901-126.344406 6.0164-126.344406 6.0164m-120.328005 659.297196c-10.5287-78.213204-290.291313-166.955108-447.720454-138.377206 0 0-19.553301-172.470141-27.073801-339.425248-6.517767-143.390873-1.002733-282.770813 0.501366-305.833681-10.5287-7.5205-123.837572 46.627102-185.004308 69.188603 0 0 73.199537 309.844614 126.344406 952.59671 0 0 84.730971 9.0246 230.12731-19.051934s317.365114-115.815705 302.825481-219.097244m-341.932083 140.88404l-24.566967-176.982441c6.0164-3.0082 156.927774 53.144869 172.971507 63.172203-2.506833 11.030067-148.40454 113.810238-148.40454 113.810238M610.664628 322.588002c6.0164 1.002733 53.144869-9.525967 55.150335-6.016401 3.0082 4.5123 24.065601 155.92504 18.550568 156.927774s-44.621635 10.027334-44.621635 10.027334c-3.0082-20.556034-28.577901-147.903173-29.079268-160.938707m75.205003-14.539634l20.556034 162.944174c10.5287-0.501367 53.144869-3.509567 57.155803-4.010934-6.517767-61.668103-16.545101-158.933241-16.545101-158.93324-20.054668-4.010934-41.112069-4.010934-61.166736 0m-40.610702 226.116376s92.752838-23.564234 126.344406-12.0328c17.046467 61.668103 48.131202 407.611118 51.139402 421.649386-21.057401 2.506833-90.246004 8.523234-95.761037 10.027333-4.5123-26.071068-81.72277-403.098818-81.722771-419.643919m343.436182-207.565809c5.515034 1.5041 54.648969-5.013667 55.150336-1.5041 1.002733 12.032801 6.0164 157.42914 0.501367 157.930507s-44.621635 4.010934-44.621635 4.010934c-1.002733-20.054668-11.531434-146.90044-11.030068-160.437341m75.706371-4.010933l4.010933 160.938707c10.5287 0 52.643502 2.506833 57.155803 2.005467-1.002733-61.668103 0-158.933241 0-158.933241-20.054668-3.509567-40.610702-4.5123-61.166736-4.010933m-64.676303 216.089043s94.758304-12.534167 126.845772 2.506833c7.019134 72.196803 6.0164 408.613852 7.019134 422.652119-21.558768 0-90.246004 1.002733-95.761038 2.005467-0.501367-26.071068-39.607968-410.619319-38.103868-427.164419m-220.099977-413.627519c54.648969 278.759879 96.262404 755.058234 97.766504 785.641602 0 0 43.117535 1.002733 91.750105 4.010934-28.577901-300.318647-63.67357-780.126569-63.172203-796.170303-12.032801-13.035534-126.344406 6.517767-126.344406 6.517767m-120.328005 659.297196c-10.5287-78.213204-290.291313-166.955108-447.720454-138.377206 0 0-19.553301-172.470141-27.073801-339.425248-6.517767-143.390873-1.002733-282.770813 0.501366-305.833681C174.475608-6.308547 61.166736 47.337689 0 69.89919c0 0 73.199537 309.844614 126.344406 952.59671 0 0 84.730971 9.0246 230.12731-19.051934s317.365114-115.815705 302.825481-219.097244m-341.932083 140.88404l-24.566967-176.982441c6.0164-3.0082 156.927774 53.144869 172.971507 63.172203-2.506833 11.030067-148.40454 113.810238-148.40454 113.810238"
|
||||
p-id="2664"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<tabler:chevron-down w="!4" h="!4" m="l-4" icon="stroke-4 fill-$bew-text-1" />
|
||||
</div>
|
||||
<transition name="slide">
|
||||
<logo-menu-dropdown
|
||||
v-if="showLogoDropDown"
|
||||
pos="absolute"
|
||||
m="t-2"
|
||||
after:content="t"
|
||||
after:select="none"
|
||||
after:opacity="0"
|
||||
after:w="full"
|
||||
after:h="2"
|
||||
after:pos="absolute -top-2 left-0"
|
||||
after:z="-1"
|
||||
></logo-menu-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
<search-bar></search-bar>
|
||||
|
||||
<div class="right-side">
|
||||
<div v-if="!isLogin" class="right-side-item">
|
||||
<a href="https://passport.bilibili.com/login" class="login">
|
||||
<ic-outline-account-circle class="text-base mr-2" />LOGIN IN
|
||||
</a>
|
||||
</div>
|
||||
<template v-if="isLogin">
|
||||
<div
|
||||
id="avatar"
|
||||
class="right-side-item"
|
||||
@mouseenter="openUserPanel"
|
||||
@mouseleave="closeUserPanel"
|
||||
>
|
||||
<div
|
||||
id="avatar-img"
|
||||
ref="avatarImg"
|
||||
class="rounded-full z-1 w-40px h-40px bg-$bew-fill-3 bg-cover bg-center"
|
||||
:style="{ backgroundImage: `url(${(userInfo.face + '').replace('http:', '')})` }"
|
||||
></div>
|
||||
<div
|
||||
id="avatar-shadow"
|
||||
ref="avatarShadow"
|
||||
class="absolute top-0 rounded-full z-0 w-40px h-40px filter blur-sm bg-cover bg-center"
|
||||
opacity="80"
|
||||
:style="{ backgroundImage: `url(${(userInfo.face + '').replace('http:', '')})` }"
|
||||
></div>
|
||||
|
||||
<transition name="slide">
|
||||
<user-panel-dropdown
|
||||
v-if="showUserPanel"
|
||||
:user-info="userInfo"
|
||||
pos="absolute top-60px left-1/2"
|
||||
m="-l-150px"
|
||||
></user-panel-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="right-side-item"
|
||||
@mouseenter="showNotificationsDropDown = true"
|
||||
@mouseleave="showNotificationsDropDown = false"
|
||||
>
|
||||
<div
|
||||
v-if="unReadmessageCount !== 0"
|
||||
class="unread-message"
|
||||
>
|
||||
{{ unReadmessageCount > 999 ? '999+' : unReadmessageCount }}
|
||||
</div>
|
||||
<a href="https://message.bilibili.com" target="_blank" title="Notifications">
|
||||
<tabler:bell />
|
||||
</a>
|
||||
|
||||
<transition name="slide">
|
||||
<notifications-dropdown
|
||||
v-if="showNotificationsDropDown"
|
||||
pos="absolute top-60px left-1/2"
|
||||
m="-l-85px"
|
||||
after:content="t"
|
||||
after:select="none"
|
||||
after:opacity="0"
|
||||
after:w="full"
|
||||
after:h="32"
|
||||
after:pos="absolute -top-16 left-0"
|
||||
after:z="-1"
|
||||
></notifications-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
<div class="right-side-item">
|
||||
<div
|
||||
v-if="newMomentsCount !== 0"
|
||||
class="unread-message"
|
||||
>
|
||||
{{ newMomentsCount > 999 ? '999+' : newMomentsCount }}
|
||||
</div>
|
||||
<a href="https://t.bilibili.com" target="_blank" title="Moments">
|
||||
<tabler:windmill />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a
|
||||
:href="'https://space.bilibili.com/' + mid + '/favlist'"
|
||||
target="_blank"
|
||||
title="Faviours"
|
||||
>
|
||||
<tabler:star />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a href="https://www.bilibili.com/account/history" target="_blank" title="History">
|
||||
<tabler:clock />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a
|
||||
href="https://member.bilibili.com/platform/home"
|
||||
target="_blank"
|
||||
title="Creative Center"
|
||||
>
|
||||
<tabler:bulb />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a
|
||||
href="https://member.bilibili.com/platform/upload/video/frame"
|
||||
target="_blank"
|
||||
class="bg-$bew-theme-color rounded-full !text-white !text-base !px-4 mx-1"
|
||||
w="xl:auto <xl:42px"
|
||||
h="xl:auto <xl:42px"
|
||||
p="xl:auto <xl:unset"
|
||||
>
|
||||
<tabler:upload />
|
||||
<span
|
||||
m="l-2"
|
||||
display="xl:block <xl:hidden"
|
||||
>Upload</span>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { getUserID } from '~/utils'
|
||||
|
||||
@@ -192,6 +10,7 @@ export default defineComponent({
|
||||
showUserPanel: false,
|
||||
showTopbarMask: false,
|
||||
showNotificationsDropDown: false,
|
||||
showUploadDropDown: false,
|
||||
isLogin: !!getUserID(),
|
||||
unReadmessage: {},
|
||||
unReadDm: {},
|
||||
@@ -277,6 +96,186 @@ export default defineComponent({
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<header>
|
||||
<transition name="topbar">
|
||||
<div
|
||||
v-show="showTopbarMask"
|
||||
class="fixed top-0 left-0"
|
||||
w="full"
|
||||
h="160px"
|
||||
opacity="100"
|
||||
pointer="none"
|
||||
style="background: linear-gradient(var(--bew-bg), transparent)"
|
||||
></div>
|
||||
</transition>
|
||||
|
||||
<div
|
||||
class="left-side"
|
||||
@mouseenter.self="showLogoMenuDropdown()"
|
||||
@mouseleave.self="closeLogoMenuDropdown()"
|
||||
>
|
||||
<div
|
||||
ref="logo"
|
||||
class="logo"
|
||||
>
|
||||
<svg
|
||||
t="1645466458357"
|
||||
class="icon"
|
||||
viewBox="0 0 2299 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="2663"
|
||||
width="60"
|
||||
height="60"
|
||||
>
|
||||
<path
|
||||
d="M1775.840814 322.588002c6.0164 1.002733 53.144869-9.525967 55.150336-6.016401 3.0082 4.5123 24.065601 155.92504 18.550567 156.927774s-44.621635 10.027334-44.621635 10.027334c-3.0082-20.556034-28.577901-147.903173-29.079268-160.938707m75.205003-14.539634l20.556034 162.944174c10.5287-0.501367 53.144869-3.509567 57.155803-4.010934-6.0164-61.668103-16.545101-158.933241-16.545101-158.93324-20.054668-4.010934-41.112069-4.010934-61.166736 0m-40.610702 226.116376s92.752838-23.564234 126.344406-12.0328c17.046467 61.668103 48.131202 407.611118 51.139402 421.649386-21.057401 2.506833-90.246004 8.523234-95.761037 10.027333-4.5123-26.071068-81.72277-403.098818-81.722771-419.643919m343.436183-207.565809c5.515034 1.5041 54.648969-5.013667 55.150335-1.5041 1.002733 12.032801 6.0164 157.42914 0.501367 157.930507s-44.621635 4.010934-44.621635 4.010934c-1.002733-20.054668-12.032801-146.90044-11.030067-160.437341m75.70637-4.010933l4.010933 160.938707c10.5287 0 52.643502 2.506833 57.155803 2.005467-1.002733-61.668103 0-158.933241 0-158.933241-20.054668-3.509567-40.610702-5.013667-61.166736-4.010933m-64.676303 216.089043s94.758304-12.534167 126.845772 2.506833c7.019134 72.196803 6.0164 408.613852 7.019134 422.652119-21.558768 0-90.246004 1.002733-95.761038 2.005467-1.002733-26.071068-39.607968-410.619319-38.103868-427.164419m-220.099977-413.627519c54.648969 278.759879 96.262404 755.058234 97.766504 785.641602 0 0 43.117535 1.002733 91.750105 4.010934C2105.740095 614.383415 2070.644427 134.575493 2071.145794 119.033126c-12.032801-13.536901-126.344406 6.0164-126.344406 6.0164m-120.328005 659.297196c-10.5287-78.213204-290.291313-166.955108-447.720454-138.377206 0 0-19.553301-172.470141-27.073801-339.425248-6.517767-143.390873-1.002733-282.770813 0.501366-305.833681-10.5287-7.5205-123.837572 46.627102-185.004308 69.188603 0 0 73.199537 309.844614 126.344406 952.59671 0 0 84.730971 9.0246 230.12731-19.051934s317.365114-115.815705 302.825481-219.097244m-341.932083 140.88404l-24.566967-176.982441c6.0164-3.0082 156.927774 53.144869 172.971507 63.172203-2.506833 11.030067-148.40454 113.810238-148.40454 113.810238M610.664628 322.588002c6.0164 1.002733 53.144869-9.525967 55.150335-6.016401 3.0082 4.5123 24.065601 155.92504 18.550568 156.927774s-44.621635 10.027334-44.621635 10.027334c-3.0082-20.556034-28.577901-147.903173-29.079268-160.938707m75.205003-14.539634l20.556034 162.944174c10.5287-0.501367 53.144869-3.509567 57.155803-4.010934-6.517767-61.668103-16.545101-158.933241-16.545101-158.93324-20.054668-4.010934-41.112069-4.010934-61.166736 0m-40.610702 226.116376s92.752838-23.564234 126.344406-12.0328c17.046467 61.668103 48.131202 407.611118 51.139402 421.649386-21.057401 2.506833-90.246004 8.523234-95.761037 10.027333-4.5123-26.071068-81.72277-403.098818-81.722771-419.643919m343.436182-207.565809c5.515034 1.5041 54.648969-5.013667 55.150336-1.5041 1.002733 12.032801 6.0164 157.42914 0.501367 157.930507s-44.621635 4.010934-44.621635 4.010934c-1.002733-20.054668-11.531434-146.90044-11.030068-160.437341m75.706371-4.010933l4.010933 160.938707c10.5287 0 52.643502 2.506833 57.155803 2.005467-1.002733-61.668103 0-158.933241 0-158.933241-20.054668-3.509567-40.610702-4.5123-61.166736-4.010933m-64.676303 216.089043s94.758304-12.534167 126.845772 2.506833c7.019134 72.196803 6.0164 408.613852 7.019134 422.652119-21.558768 0-90.246004 1.002733-95.761038 2.005467-0.501367-26.071068-39.607968-410.619319-38.103868-427.164419m-220.099977-413.627519c54.648969 278.759879 96.262404 755.058234 97.766504 785.641602 0 0 43.117535 1.002733 91.750105 4.010934-28.577901-300.318647-63.67357-780.126569-63.172203-796.170303-12.032801-13.035534-126.344406 6.517767-126.344406 6.517767m-120.328005 659.297196c-10.5287-78.213204-290.291313-166.955108-447.720454-138.377206 0 0-19.553301-172.470141-27.073801-339.425248-6.517767-143.390873-1.002733-282.770813 0.501366-305.833681C174.475608-6.308547 61.166736 47.337689 0 69.89919c0 0 73.199537 309.844614 126.344406 952.59671 0 0 84.730971 9.0246 230.12731-19.051934s317.365114-115.815705 302.825481-219.097244m-341.932083 140.88404l-24.566967-176.982441c6.0164-3.0082 156.927774 53.144869 172.971507 63.172203-2.506833 11.030067-148.40454 113.810238-148.40454 113.810238"
|
||||
p-id="2664"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<tabler:chevron-down w="!4" h="!4" m="l-4" icon="stroke-4 fill-$bew-text-1" />
|
||||
</div>
|
||||
<transition name="slide">
|
||||
<logo-menu-dropdown
|
||||
v-if="showLogoDropDown"
|
||||
class="bew-popover"
|
||||
pos="!left-0 !top-70px"
|
||||
transform="!translate-x-0"
|
||||
></logo-menu-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
<search-bar></search-bar>
|
||||
|
||||
<div class="right-side">
|
||||
<div v-if="!isLogin" class="right-side-item">
|
||||
<a href="https://passport.bilibili.com/login" class="login">
|
||||
<ic-outline-account-circle class="text-base mr-2" />LOGIN IN
|
||||
</a>
|
||||
</div>
|
||||
<template v-if="isLogin">
|
||||
<div
|
||||
id="avatar"
|
||||
class="right-side-item"
|
||||
@mouseenter="openUserPanel"
|
||||
@mouseleave="closeUserPanel"
|
||||
>
|
||||
<div
|
||||
id="avatar-img"
|
||||
ref="avatarImg"
|
||||
class="rounded-full z-1 w-40px h-40px bg-$bew-fill-3 bg-cover bg-center"
|
||||
:style="{ backgroundImage: `url(${(userInfo.face + '').replace('http:', '')})` }"
|
||||
></div>
|
||||
<div
|
||||
id="avatar-shadow"
|
||||
ref="avatarShadow"
|
||||
class="absolute top-0 rounded-full z-0 w-40px h-40px filter blur-sm bg-cover bg-center"
|
||||
opacity="80"
|
||||
:style="{ backgroundImage: `url(${(userInfo.face + '').replace('http:', '')})` }"
|
||||
></div>
|
||||
|
||||
<transition name="slide">
|
||||
<user-panel-dropdown
|
||||
v-if="showUserPanel"
|
||||
:user-info="userInfo"
|
||||
class="bew-popover"
|
||||
></user-panel-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="right-side-item"
|
||||
@mouseenter="showNotificationsDropDown = true"
|
||||
@mouseleave="showNotificationsDropDown = false"
|
||||
>
|
||||
<div
|
||||
v-if="unReadmessageCount !== 0"
|
||||
class="unread-message"
|
||||
>
|
||||
{{ unReadmessageCount > 999 ? '999+' : unReadmessageCount }}
|
||||
</div>
|
||||
<a href="https://message.bilibili.com" target="_blank" title="Notifications">
|
||||
<tabler:bell />
|
||||
</a>
|
||||
|
||||
<transition name="slide">
|
||||
<notifications-dropdown
|
||||
v-if="showNotificationsDropDown"
|
||||
class="bew-popover"
|
||||
></notifications-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
<div class="right-side-item">
|
||||
<div
|
||||
v-if="newMomentsCount !== 0"
|
||||
class="unread-message"
|
||||
>
|
||||
{{ newMomentsCount > 999 ? '999+' : newMomentsCount }}
|
||||
</div>
|
||||
<a href="https://t.bilibili.com" target="_blank" title="Moments">
|
||||
<tabler:windmill />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a
|
||||
:href="'https://space.bilibili.com/' + mid + '/favlist'"
|
||||
target="_blank"
|
||||
title="Faviours"
|
||||
>
|
||||
<tabler:star />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a href="https://www.bilibili.com/account/history" target="_blank" title="History">
|
||||
<tabler:clock />
|
||||
</a>
|
||||
</div>
|
||||
<div class="right-side-item">
|
||||
<a
|
||||
href="https://member.bilibili.com/platform/home"
|
||||
target="_blank"
|
||||
title="Creative Center"
|
||||
>
|
||||
<tabler:bulb />
|
||||
</a>
|
||||
</div>
|
||||
<div
|
||||
class="right-side-item"
|
||||
@mouseenter="showUploadDropDown = true"
|
||||
@mouseleave="showUploadDropDown = false"
|
||||
>
|
||||
<a
|
||||
href="https://member.bilibili.com/platform/upload/video/frame"
|
||||
target="_blank"
|
||||
class="bg-$bew-theme-color rounded-full !text-white !text-base !px-4 mx-1"
|
||||
w="xl:auto <xl:42px"
|
||||
h="xl:auto <xl:42px"
|
||||
p="xl:auto <xl:unset"
|
||||
>
|
||||
<tabler:upload />
|
||||
<span
|
||||
m="l-2"
|
||||
display="xl:block <xl:hidden"
|
||||
>Upload</span>
|
||||
</a>
|
||||
|
||||
<transition name="slide">
|
||||
<upload-dropdown
|
||||
v-if="showUploadDropDown"
|
||||
class="bew-popover"
|
||||
pos="!left-auto !-right-2"
|
||||
transform="!translate-x-0"
|
||||
></upload-dropdown>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.slide-enter-active,
|
||||
.slide-leave-active {
|
||||
@@ -285,7 +284,7 @@ export default defineComponent({
|
||||
|
||||
.slide-leave-to,
|
||||
.slide-enter-from {
|
||||
@apply transform -translate-y-4 opacity-0;
|
||||
@apply transform '!-translate-y-4' opacity-0;
|
||||
}
|
||||
|
||||
.topbar-enter-active,
|
||||
@@ -298,6 +297,14 @@ export default defineComponent({
|
||||
@apply opacity-0;
|
||||
}
|
||||
|
||||
.bew-popover {
|
||||
@apply absolute top-60px left-1/2
|
||||
transform -translate-x-1/2
|
||||
after:content-open-quote
|
||||
after:opacity-0 after:w-full after:h-16
|
||||
after:absolute after:-top-8 after:left-0 after:-z-1;
|
||||
}
|
||||
|
||||
header {
|
||||
@apply flex justify-between px-23 py-2 w-screen items-center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user