mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
fix: update logoloopdemo
This commit is contained in:
@@ -17,10 +17,7 @@
|
|||||||
|
|
||||||
<div class="desktop-nav">
|
<div class="desktop-nav">
|
||||||
<FadeContent blur>
|
<FadeContent blur>
|
||||||
<button
|
<button class="search-button" @click="openSearch">
|
||||||
class="search-button"
|
|
||||||
@click="openSearch"
|
|
||||||
>
|
|
||||||
<i class="pi pi-search search-icon"></i>
|
<i class="pi pi-search search-icon"></i>
|
||||||
<span class="search-text">Search Docs</span>
|
<span class="search-text">Search Docs</span>
|
||||||
<kbd class="search-kbd">/</kbd>
|
<kbd class="search-kbd">/</kbd>
|
||||||
@@ -92,11 +89,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<SearchDialog
|
<SearchDialog :is-open="isSearchOpen" @close="closeSearch" @open="openSearch" />
|
||||||
:is-open="isSearchOpen"
|
|
||||||
@close="closeSearch"
|
|
||||||
@open="openSearch"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -108,11 +101,11 @@ import { CATEGORIES, NEW, UPDATED } from '../../constants/Categories';
|
|||||||
import FadeContent from '../../content/Animations/FadeContent/FadeContent.vue';
|
import FadeContent from '../../content/Animations/FadeContent/FadeContent.vue';
|
||||||
import Logo from '../../assets/logos/vue-bits-logo.svg';
|
import Logo from '../../assets/logos/vue-bits-logo.svg';
|
||||||
import Star from '../../assets/common/star.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 isDrawerOpen = ref(false);
|
||||||
const isTransitioning = ref(false);
|
const isTransitioning = ref(false);
|
||||||
const isSearchOpen = ref(false)
|
const isSearchOpen = ref(false);
|
||||||
const stars = useStars();
|
const stars = useStars();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -155,11 +148,11 @@ const handleKeyDown = (e: KeyboardEvent) => {
|
|||||||
closeDrawer();
|
closeDrawer();
|
||||||
}
|
}
|
||||||
if (e.key === '/' && !isSearchOpen.value) {
|
if (e.key === '/' && !isSearchOpen.value) {
|
||||||
e.preventDefault()
|
e.preventDefault();
|
||||||
openSearch()
|
openSearch();
|
||||||
}
|
}
|
||||||
if (e.key === 'Escape' && isSearchOpen.value) {
|
if (e.key === 'Escape' && isSearchOpen.value) {
|
||||||
closeSearch()
|
closeSearch();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -254,12 +247,12 @@ const Category = defineComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const openSearch = () => {
|
const openSearch = () => {
|
||||||
isSearchOpen.value = true
|
isSearchOpen.value = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
const closeSearch = () => {
|
const closeSearch = () => {
|
||||||
isSearchOpen.value = false
|
isSearchOpen.value = false;
|
||||||
}
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
document.addEventListener('keydown', handleKeyDown);
|
document.addEventListener('keydown', handleKeyDown);
|
||||||
|
|||||||
@@ -12,15 +12,15 @@
|
|||||||
:scale-on-hover="scaleOnHover"
|
:scale-on-hover="scaleOnHover"
|
||||||
:pause-on-hover="pauseOnHover"
|
:pause-on-hover="pauseOnHover"
|
||||||
:fade-out="fadeOut"
|
:fade-out="fadeOut"
|
||||||
fade-out-color="#060010"
|
fade-out-color="#0b0b0b"
|
||||||
aria-label="Our icons"
|
aria-label="Our icons"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Customize>
|
<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="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" />
|
<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="Pause on Hover" v-model="pauseOnHover" />
|
||||||
<PreviewSwitch title="Fade Out" v-model="fadeOut" />
|
<PreviewSwitch title="Fade Out" v-model="fadeOut" />
|
||||||
<PreviewSwitch title="Scale on Hover" v-model="scaleOnHover" />
|
<PreviewSwitch title="Scale on Hover" v-model="scaleOnHover" />
|
||||||
@@ -68,20 +68,15 @@ const directionOptions = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const items = [
|
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-reddit" 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-paypal" 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-linkedin" 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-facebook" 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-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-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-google" 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-youtube" 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-twitch" 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/'
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const propData = [
|
const propData = [
|
||||||
|
|||||||
Reference in New Issue
Block a user