mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 06:29:30 -07:00
fix: update logoloopdemo
This commit is contained in:
@@ -17,10 +17,7 @@
|
||||
|
||||
<div class="desktop-nav">
|
||||
<FadeContent blur>
|
||||
<button
|
||||
class="search-button"
|
||||
@click="openSearch"
|
||||
>
|
||||
<button class="search-button" @click="openSearch">
|
||||
<i class="pi pi-search search-icon"></i>
|
||||
<span class="search-text">Search Docs</span>
|
||||
<kbd class="search-kbd">/</kbd>
|
||||
@@ -92,11 +89,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<SearchDialog
|
||||
:is-open="isSearchOpen"
|
||||
@close="closeSearch"
|
||||
@open="openSearch"
|
||||
/>
|
||||
<SearchDialog :is-open="isSearchOpen" @close="closeSearch" @open="openSearch" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -108,11 +101,11 @@ import { CATEGORIES, NEW, UPDATED } from '../../constants/Categories';
|
||||
import FadeContent from '../../content/Animations/FadeContent/FadeContent.vue';
|
||||
import Logo from '../../assets/logos/vue-bits-logo.svg';
|
||||
import Star from '../../assets/common/star.svg';
|
||||
import SearchDialog from '../common/SearchDialog.vue'
|
||||
import SearchDialog from '../common/SearchDialog.vue';
|
||||
|
||||
const isDrawerOpen = ref(false);
|
||||
const isTransitioning = ref(false);
|
||||
const isSearchOpen = ref(false)
|
||||
const isSearchOpen = ref(false);
|
||||
const stars = useStars();
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -155,11 +148,11 @@ const handleKeyDown = (e: KeyboardEvent) => {
|
||||
closeDrawer();
|
||||
}
|
||||
if (e.key === '/' && !isSearchOpen.value) {
|
||||
e.preventDefault()
|
||||
openSearch()
|
||||
e.preventDefault();
|
||||
openSearch();
|
||||
}
|
||||
if (e.key === 'Escape' && isSearchOpen.value) {
|
||||
closeSearch()
|
||||
closeSearch();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -254,12 +247,12 @@ const Category = defineComponent({
|
||||
});
|
||||
|
||||
const openSearch = () => {
|
||||
isSearchOpen.value = true
|
||||
}
|
||||
isSearchOpen.value = true;
|
||||
};
|
||||
|
||||
const closeSearch = () => {
|
||||
isSearchOpen.value = false
|
||||
}
|
||||
isSearchOpen.value = false;
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
document.addEventListener('keydown', handleKeyDown);
|
||||
|
||||
@@ -12,15 +12,15 @@
|
||||
:scale-on-hover="scaleOnHover"
|
||||
:pause-on-hover="pauseOnHover"
|
||||
:fade-out="fadeOut"
|
||||
fade-out-color="#060010"
|
||||
fade-out-color="#0b0b0b"
|
||||
aria-label="Our icons"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Customize>
|
||||
<PreviewSelect title="Direction" v-model="direction" :options="directionOptions" />
|
||||
<PreviewSlider title="Speed" :min="0" :max="300" :step="10" value-unit="px/s" v-model="speed" />
|
||||
<PreviewSlider title="Gap" :min="10" :max="120" :step="5" value-unit="px" v-model="gap" />
|
||||
<PreviewSelect title="Direction" v-model="direction" :options="directionOptions" />
|
||||
<PreviewSwitch title="Pause on Hover" v-model="pauseOnHover" />
|
||||
<PreviewSwitch title="Fade Out" v-model="fadeOut" />
|
||||
<PreviewSwitch title="Scale on Hover" v-model="scaleOnHover" />
|
||||
@@ -68,20 +68,15 @@ const directionOptions = [
|
||||
];
|
||||
|
||||
const items = [
|
||||
{ node: `<i class="pi pi-cog" style="font-size: 4rem;"></i>`, title: 'Settings', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-globe" style="font-size: 4rem;"></i>`, title: 'Web', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-code" style="font-size: 4rem;"></i>`, title: 'Code', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-palette" style="font-size: 4rem;"></i>`, title: 'Design', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-cloud" style="font-size: 4rem;"></i>`, title: 'Cloud', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-reddit" style="font-size: 4rem;"></i>`, title: 'Settings', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-paypal" style="font-size: 4rem;"></i>`, title: 'Web', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-linkedin" style="font-size: 4rem;"></i>`, title: 'Code', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-facebook" style="font-size: 4rem;"></i>`, title: 'Design', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-tiktok" style="font-size: 4rem;"></i>`, title: 'Cloud', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-github" style="font-size: 4rem;"></i>`, title: 'GitHub', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-box" style="font-size: 4rem;"></i>`, title: 'Container', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-database" style="font-size: 4rem;"></i>`, title: 'Database', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-server" style="font-size: 4rem;"></i>`, title: 'Server', href: 'https://vue-bits.dev/' },
|
||||
{
|
||||
node: `<i class="pi pi-credit-card" style="font-size: 4rem;"></i>`,
|
||||
title: 'Payments',
|
||||
href: 'https://vue-bits.dev/'
|
||||
}
|
||||
{ node: `<i class="pi pi-google" style="font-size: 4rem;"></i>`, title: 'Container', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-youtube" style="font-size: 4rem;"></i>`, title: 'Database', href: 'https://vue-bits.dev/' },
|
||||
{ node: `<i class="pi pi-twitch" style="font-size: 4rem;"></i>`, title: 'Server', href: 'https://vue-bits.dev/' }
|
||||
];
|
||||
|
||||
const propData = [
|
||||
|
||||
Reference in New Issue
Block a user