Skip to content

Commit

Permalink
improve menu and seo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Chopin committed Jul 3, 2023
1 parent bd6f04e commit 6019762
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,19 @@ function scrollToTop(e) {
<span class="i-ph-rocket-light h-5 w-5 mr-3 block lg:hidden" />
Docs
</NuxtLink>
<NuxtLink
to="/showcases"
class="flex items-center"
>
<span class="i-ph-sparkle-light h-5 w-5 mr-3 block lg:hidden" />
Showcase
</NuxtLink>
<NuxtLink
to="/integrations"
class="flex items-center"
>
<span class="i-ph-plug-light h-5 w-5 mr-3 block lg:hidden" />
Integrations
Modules
</NuxtLink>
<NuxtLink
to="/templates"
Expand All @@ -76,19 +83,12 @@ function scrollToTop(e) {
<span class="i-ph-app-window-light h-5 w-5 mr-3 block lg:hidden" />
Templates
</NuxtLink>
<NuxtLink
to="/showcases"
class="flex items-center"
>
<span class="i-ph-sparkle-light h-5 w-5 mr-3 block lg:hidden" />
Showcases
</NuxtLink>
<NuxtLink
to="/blog"
class="flex items-center"
>
<span class="i-ph-newspaper-light h-5 w-5 mr-3 block lg:hidden" />
News
Blog
</NuxtLink>
</nav>
<div class="hidden lg:flex flex-1 items-center justify-end space-x-4">
Expand Down Expand Up @@ -127,7 +127,7 @@ function scrollToTop(e) {

<style scoped lang="postcss">
a {
@apply text-sm font-medium tracking-wide text-gray-300 hover:text-green-500;
@apply text-[15px] font-medium tracking-wide text-gray-300 hover:text-green-500;
}
a.router-link-active {
@apply text-green-500 hover:text-green-500;
Expand Down
2 changes: 1 addition & 1 deletion components/hero/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="relative z-0">
<div class="hidden dark:block absolute w-full h-full top-5 grad blur-2xl opacity-20 z-0" />
<div class="relative text-center py-12 sm:py-16 md:py-20 lg:py-24 xl:py-28 z-10">
<h2 class="text-gray-900 dark:text-gray-100 text-3xl sm:text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-bold tracking-tight">
<h2 class="text-gray-100 text-3xl sm:text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-bold tracking-tight">
<slot name="title">
Missing Title
</slot>
Expand Down
26 changes: 13 additions & 13 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ const { data: page } = await useFetch('/api/pages/index')
watch(page.value, () => {
console.log('page updated', page.value)
})
const { editing } = useEditable(page)
useSeoMeta(page.value.$seoMeta)
// Perfect SeoMeta sentences length and key wording according to Google:
// Title: 55-60 characters
// Description: 150-165 characters
useSeoMeta({
title: 'Nuxt: Open source software for web developers and teams',
description: 'Nuxt is an open source cutting-edge software vendor and developer community specializing in the creation of intuitive and powerful modern web development tools.'
})
</script>

<template>
<div>
<!-- Welcome -->
<section class="bg-navy py-20 sm:py-30 md:py-44">
<UContainer class="flex items-center justify-center">
<div class="text-center z-10">
<Text
v-model="page.hero.title"
tag="h2"
class="text-gray-100 text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-bold text-center tracking-tight"
/>
<UContainer class="flex items-center">
<div class="z-10">
<h2 class="text-gray-100 text-4xl sm:text-6xl md:text-7xl font-semibold tracking-tight">
The complete solution<br/>for web businesses
</h2>
<Text
v-model="page.hero.description"
tag="p"
class="text-gray-300 md:text-lg lg:text-xl text-center pt-4 pb-6 md:pt-6 md:pb-8 lg:pt-7 lg:pb-10 xl:pt-8 xl:pb-10 lg:!leading-relaxed"
class="text-gray-300 md:text-lg lg:text-xl pt-4 pb-6 md:pt-6 md:pb-8 lg:pt-7 lg:pb-10 xl:pt-8 xl:pb-10 lg:!leading-relaxed"
/>
<InlineCodeBlock :code="page.hero.snippet" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/integrations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const stats = computed(() => {
<UContainer>
<HeroPage>
<template #title>
Ship faster with<br><span class="text-green-500">seamless integrations</span>
Connect with<br><span class="text-green-500">seamless integrations</span>
</template>
<template #description>
Extend your application by using integrations for your favorite tools and services such as headless CMS, eCommerce, Database or UI/UX libraries with a single line of code.
Expand Down

0 comments on commit 6019762

Please sign in to comment.