Skip to content

Commit f04ba30

Browse files
author
GitHub Copilot
committed
Fix i18n, improve header styling, and add generated images
1 parent 08b3822 commit f04ba30

6 files changed

Lines changed: 47 additions & 12 deletions

File tree

components/SiteHeader.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
</div>
1212

1313
<!-- Desktop Navigation -->
14-
<nav class="hidden md:flex space-x-8">
15-
<NuxtLink :to="localePath('/')" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors">
14+
<nav class="hidden md:flex space-x-2">
15+
<NuxtLink :to="localePath('/')" class="text-gray-600 hover:text-blue-600 hover:bg-blue-50 px-4 py-2 rounded-full text-sm font-medium transition-all duration-200">
1616
{{ $t('nav.home') }}
1717
</NuxtLink>
18-
<NuxtLink :to="localePath('/classes')" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors">
18+
<NuxtLink :to="localePath('/classes')" class="text-gray-600 hover:text-blue-600 hover:bg-blue-50 px-4 py-2 rounded-full text-sm font-medium transition-all duration-200">
1919
{{ $t('nav.classes') }}
2020
</NuxtLink>
21-
<NuxtLink :to="localePath('/booking')" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors">
21+
<NuxtLink :to="localePath('/booking')" class="text-gray-600 hover:text-blue-600 hover:bg-blue-50 px-4 py-2 rounded-full text-sm font-medium transition-all duration-200">
2222
{{ $t('nav.booking') }}
2323
</NuxtLink>
24-
<NuxtLink :to="localePath('/prices')" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors">
24+
<NuxtLink :to="localePath('/prices')" class="text-gray-600 hover:text-blue-600 hover:bg-blue-50 px-4 py-2 rounded-full text-sm font-medium transition-all duration-200">
2525
{{ $t('nav.prices') }}
2626
</NuxtLink>
27-
<NuxtLink :to="localePath('/references')" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors">
27+
<NuxtLink :to="localePath('/references')" class="text-gray-600 hover:text-blue-600 hover:bg-blue-50 px-4 py-2 rounded-full text-sm font-medium transition-all duration-200">
2828
{{ $t('nav.references') }}
2929
</NuxtLink>
3030
</nav>

locales/en.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"welcome": "Welcome to TOP",
3+
"nav": {
4+
"home": "Home",
5+
"classes": "Classes",
6+
"booking": "Booking",
7+
"prices": "Prices",
8+
"references": "References",
9+
"contact": "Contact"
10+
},
11+
"hero": {
12+
"title": "Unleash Your Potential",
13+
"subtitle": "Join TOP – The premier destination for Paddle and Tennis excellence.",
14+
"cta": "Book a Court"
15+
}
16+
}

locales/es.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"welcome": "Bienvenido a TOP",
3+
"nav": {
4+
"home": "Inicio",
5+
"classes": "Clases",
6+
"booking": "Reservas",
7+
"prices": "Precios",
8+
"references": "Referencias",
9+
"contact": "Contacto"
10+
},
11+
"hero": {
12+
"title": "Libera Tu Potencial",
13+
"subtitle": "Únete a TOP – El destino principal para la excelencia en Pádel y Tenis.",
14+
"cta": "Reservar Pista"
15+
}
16+
}

nuxt.config.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@ export default defineNuxtConfig({
99
'@nuxtjs/i18n'
1010
],
1111
i18n: {
12-
vueI18n: './i18n.config.ts',
12+
strategy: 'prefix_except_default',
13+
defaultLocale: 'en',
14+
lazy: true,
15+
langDir: 'locales',
1316
locales: [
1417
{
1518
code: 'en',
16-
name: 'English'
19+
name: 'English',
20+
file: 'en.json'
1721
},
1822
{
1923
code: 'es',
20-
name: 'Español'
24+
name: 'Español',
25+
file: 'es.json'
2126
}
2227
],
23-
defaultLocale: 'en',
24-
strategy: 'prefix_except_default',
2528
detectBrowserLanguage: {
2629
useCookie: true,
2730
cookieKey: 'i18n_redirected',
28-
redirectOn: 'root', // recommended
31+
redirectOn: 'root',
2932
}
3033
}
3134
})

public/paddle_court.png

868 KB
Loading

public/tennis_coaching.png

700 KB
Loading

0 commit comments

Comments
 (0)