mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Implement logoEs
This commit is contained in:
parent
3e4551ea7a
commit
f495a1cee8
1 changed files with 8 additions and 3 deletions
|
|
@ -2,11 +2,10 @@
|
||||||
import { gql } from '@/graphql/__generated__/client/index.js'
|
import { gql } from '@/graphql/__generated__/client/index.js'
|
||||||
import { getApolloClient } from '@/graphql/apolloClientSSR.js'
|
import { getApolloClient } from '@/graphql/apolloClientSSR.js'
|
||||||
import { Image, Picture } from 'astro:assets'
|
import { Image, Picture } from 'astro:assets'
|
||||||
import { getSession } from 'auth-astro/server'
|
|
||||||
import * as m from '../paraglide/messages.js'
|
import * as m from '../paraglide/messages.js'
|
||||||
|
|
||||||
import logo from 'img/logos/winter.png'
|
import logo from 'img/logos/winter.png'
|
||||||
// import logoEs from 'img/logos/default_es.png'
|
import logoEs from 'img/logos/default_es.png'
|
||||||
|
|
||||||
import Dropdown from './header/Dropdown.astro'
|
import Dropdown from './header/Dropdown.astro'
|
||||||
import DropdownItem from './header/DropdownItem.astro'
|
import DropdownItem from './header/DropdownItem.astro'
|
||||||
|
|
@ -45,7 +44,13 @@ const session = await getSession(Astro.request)
|
||||||
</div>
|
</div>
|
||||||
<div class='relative px-20 size-full'>
|
<div class='relative px-20 size-full'>
|
||||||
<a href='/'>
|
<a href='/'>
|
||||||
<Image src={logo} class='h-full py-0.5 w-auto' alt='logo' height={150} width={265} />
|
<Image
|
||||||
|
src={Astro.currentLocale === 'es' ? logoEs : logo}
|
||||||
|
class='h-full py-0.5 w-auto'
|
||||||
|
alt='logo'
|
||||||
|
height={150}
|
||||||
|
width={265}
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<LoginNav />
|
<LoginNav />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue