Skip to content

Commit 8967b63

Browse files
committed
Ready for QA
1 parent 19f2305 commit 8967b63

57 files changed

Lines changed: 1528 additions & 142 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/app.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ useHead({
1212
src: 'https://f.convertkit.com/ckjs/ck.5.js',
1313
async: true,
1414
defer: true
15+
},
16+
{
17+
src: 'https://cdn.jsdelivr.net/npm/amplitudejs@latest/dist/amplitude.min.js'
1518
}
1619
]
1720
})

docs/components/AppHeader.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="w-full top-[43px] bg-black/10 backdrop-blur-lg z-[9999999]" :class="{ 'fixed left-1/2 -translate-x-1/2': fixed }">
3-
<header class="w-full mx-auto max-w-screen-xl px-8 py-5 flex items-center justify-between">
3+
<header class="w-full mx-auto max-w-screen-xl px-4 lg:px-8 py-5 flex items-center justify-between">
44
<nav class="flex items-center">
55
<NuxtLink to="/" class="mr-5">
66
<img src="/images/logos/amplitudejs.svg" alt="AmplitudeJS" class="h-8"/>
@@ -26,7 +26,7 @@
2626
Discord
2727
</NuxtLink>
2828

29-
<button type="button" class="hidden lg:inline-flex items-center py-2 px-3 font-sans font-semibold text-[#CECFD2] hover:text-white">
29+
<button @click="promptSearch()" type="button" class="hidden lg:inline-flex items-center py-2 px-3 font-sans font-semibold text-[#CECFD2] hover:text-white">
3030
<svg class="mr-1" width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
3131
<path d="M19 19.4468L13.0001 13.4468M15 8.44684C15 12.3128 11.866 15.4468 8 15.4468C4.13401 15.4468 1 12.3128 1 8.44684C1 4.58084 4.13401 1.44684 8 1.44684C11.866 1.44684 15 4.58084 15 8.44684Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3232
</svg>
@@ -43,7 +43,7 @@
4343
Star on GitHub
4444
</NuxtLink>
4545

46-
<NuxtLink to="/" class="ml-3 hidden md:flex bg-[#155EEF] py-2.5 px-4 font-sans font-semibold text-white items-center border-2 border-[rgba(255,255,255,0.12)] rounded-lg hover:bg-[#004EEB] transition-colors duration-200">
46+
<NuxtLink to="/docs" class="ml-3 hidden md:flex bg-[#155EEF] py-2.5 px-4 font-sans font-semibold text-white items-center border-2 border-[rgba(255,255,255,0.12)] rounded-lg hover:bg-[#004EEB] transition-colors duration-200">
4747
Get Started
4848
</NuxtLink>
4949

@@ -70,4 +70,10 @@ const showMenu = ref( false );
7070
const toggleMenu = () => {
7171
showMenu.value = showMenu.value ? false : true;
7272
}
73+
74+
const docsEventBus = useEventBus('amplitudejs-docs-event-bus');
75+
76+
const promptSearch = () => {
77+
docsEventBus.emit('prompt-search');
78+
}
7379
</script>

docs/components/AppMobileMenu.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
</NuxtLink>
9393

9494
<button
95+
@click="promptSearch()"
9596
@click.native="toggleMenu()"
9697
class="flex items-center font-inter font-bold text-slate-300 text-xl mb-6">
9798
<div class="flex items-center justify-center w-5 h-5 mr-2">
@@ -113,7 +114,7 @@
113114
</div>
114115

115116
<div>
116-
<NuxtLink to="/" class="inline-flex bg-[#155EEF] py-2.5 px-4 font-sans font-semibold text-white items-center border-2 border-[rgba(255,255,255,0.12)] rounded-lg hover:bg-[#004EEB] transition-colors duration-200">
117+
<NuxtLink to="/docs" class="inline-flex bg-[#155EEF] py-2.5 px-4 font-sans font-semibold text-white items-center border-2 border-[rgba(255,255,255,0.12)] rounded-lg hover:bg-[#004EEB] transition-colors duration-200">
117118
Get Started
118119
</NuxtLink>
119120
</div>
@@ -175,6 +176,12 @@ const toggleMenu = () => {
175176
emit('toggle-menu')
176177
}
177178
179+
const docsEventBus = useEventBus('amplitudejs-docs-event-bus');
180+
181+
const promptSearch = () => {
182+
docsEventBus.emit('prompt-search');
183+
}
184+
178185
const route = useRoute();
179186
180187
const { data: navigation } = await useAsyncData('mobile-navigation', () => {

docs/components/Examples/Navigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<nav class="overflow-y-auto h-screen pt-[131px] no-scrollbar md:w-64 lg:w-96 px-6">
2+
<nav class="overflow-y-auto h-screen pt-[131px] no-scrollbar md:w-64 px-6">
33
<ul role="list">
44
<li class="my-6">
55
<span class="text-white font-semibold">Examples</span>

0 commit comments

Comments
 (0)