1
1
<script setup lang="ts">
2
2
import { useScriptsRegistry } from ' ~/composables/useScriptsRegistry'
3
+ import { breakpointsTailwind , useBreakpoints } from ' @vueuse/core'
3
4
4
5
const registry = useScriptsRegistry ()
6
+ const breakpoints = useBreakpoints (breakpointsTailwind )
5
7
6
8
useSeoMeta ({
7
9
title: ' Third-Party Scripts Meets Nuxt DX.' ,
@@ -91,6 +93,8 @@ const features = [
91
93
},
92
94
]
93
95
96
+ const btnGroupOrientation = computed (() => breakpoints .smaller (' sm' ).value ? ' vertical' : ' horizontal' )
97
+
94
98
const benchmarks = {
95
99
googleMaps: {
96
100
logo: registry .find (s => s .import .name === ' useScriptGoogleMaps' ).logo ,
@@ -211,7 +215,7 @@ function timesFaster(nuxt: number, iframe: number) {
211
215
</ul>
212
216
</ULandingSection>
213
217
214
- <div class="py-6 sm:py-20 gap-20 mb-12 flex flex-col xl:flex-row items-center max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 ">
218
+ <UContainer class="py-6 sm:py-20 gap-20 mb-12 flex flex-col xl:flex-row items-center">
215
219
<div class="max-w-lg">
216
220
<h2 class="text-xl xl:text-4xl font-bold flex items-center gap-4 mb-4">
217
221
<UIcon name="i-ph-speedometer-duotone" class="h-12 w-12 shrink-0 text-primary" />
@@ -226,7 +230,7 @@ function timesFaster(nuxt: number, iframe: number) {
226
230
<p class="text-gray-500 dark:text-gray-400">
227
231
<span class="opacity-50 text-sm">*Benchmarks are from pagespeed.web.dev Mobile report running with variability, they are not accurate.</span>
228
232
</p>
229
- <UButtonGroup class="mt-10 flex flex-col sm:flex-row ">
233
+ <UButtonGroup class="mt-10 flex" :orientation="btnGroupOrientation ">
230
234
<UButton :variant="webVital === 'fcp' ? 'solid' : 'soft'" :active="webVital === 'fcp'" @click="webVital = 'fcp'">
231
235
First Contentful Paint
232
236
</UButton>
@@ -272,7 +276,7 @@ function timesFaster(nuxt: number, iframe: number) {
272
276
</div>
273
277
</div>
274
278
</div>
275
- </div >
279
+ </UContainer >
276
280
</div>
277
281
</template>
278
282
0 commit comments