docs-ko
docs-ko copied to clipboard
[SYNC] docs: update browser baseline features (#9316)
docs: update browser baseline features (#9316) (b82ee5d)
+++ b/docs/.vitepress/theme/components/AsideSponsors.vue
@@ -18,5 +18,71 @@ const sponsors = computed(() => {
</script>
<template>
+ <a class="viteconf" href="https://viteconf.org" target="_blank">
+ <img width="22" height="22" src="/viteconf.svg" />
+ <span>
+ <p class="extra-info">Free Online Conference</p>
+ <p class="heading">ViteConf - Oct 11</p>
+ <p class="extra-info">Get your ticket now!</p>
+ </span>
+ </a>
<VPDocAsideSponsors v-if="data" :data="sponsors" />
</template>
+
+<style>
+.viteconf {
+ margin-top: 1rem;
+ margin-bottom: 1rem;
+ border-radius: 14px;
+ padding-left: 2.5rem;
+ padding-top: 0.4rem;
+ padding-bottom: 0.4rem;
+ position: relative;
+ font-size: 1rem;
+ font-weight: 700;
+ line-height: 1.1rem;
+ filter: grayscale(100%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.75rem;
+ background-color: var(--vp-c-bg-alt);
+ border: 2px solid var(--vp-c-bg-alt);
+ transition: border-color 0.5s;
+}
+.viteconf:hover {
+ filter: grayscale(0%);
+ border: 2px solid var(--vp-c-brand-light);
+}
+.viteconf img {
+ position: absolute;
+ left: 1.5rem;
+ transition: transform 0.5s;
+}
+.viteconf:hover img {
+ transform: scale(1.75);
+}
+
+.viteconf:hover .heading {
+ background-image: linear-gradient(
+ 120deg,
+ #bd34fe 16%,
+ var(--vp-c-brand-light),
+ var(--vp-c-brand-light)
+ );
+ background-clip: text;
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+}
+
+.viteconf .extra-info {
+ color: var(--vp-c-text-1);
+ opacity: 0;
+ font-size: 0.7rem;
+ padding-left: 0.1rem;
+ transition: opacity 0.5s;
+}
+.viteconf:hover .extra-info {
+ opacity: 0.9;
+}
+</style>