mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
parent
3c7d25f574
commit
8578038d5a
2 changed files with 8 additions and 9 deletions
|
|
@ -5,7 +5,6 @@ import prismaClient from 'utils/prisma-client.js'
|
|||
|
||||
import logo from 'img/logos/winter.png'
|
||||
import logoEs from 'img/logos/default_es.png'
|
||||
import offScript from 'img/assets/ian-zhang-offscript.gif'
|
||||
|
||||
import Dropdown from './header/Dropdown.astro'
|
||||
import DropdownItem from './header/DropdownItem.astro'
|
||||
|
|
@ -14,33 +13,33 @@ import NavButton from './header/NavButton.astro'
|
|||
import LoginNav from './header/LoginNav.astro'
|
||||
import SearchBar from './search/SearchBar.astro'
|
||||
|
||||
/* const [bannerConfig, bannerPositionConfig] = await Promise.all([
|
||||
const [bannerConfig, bannerPositionConfig] = await Promise.all([
|
||||
prismaClient.config.findUnique({ where: { name: 'banner' }, select: { value: true } }),
|
||||
prismaClient.config.findUnique({ where: { name: 'banner-position' }, select: { value: true } })
|
||||
])
|
||||
|
||||
const bannerId = bannerConfig?.value || ''
|
||||
const bannerPosition = bannerPositionConfig?.value || 'top' */
|
||||
const bannerPosition = bannerPositionConfig?.value || 'top'
|
||||
|
||||
const { session } = Astro.locals
|
||||
---
|
||||
|
||||
<header class='relative'>
|
||||
<div class='relative h-[150px] bg-top bg-no-repeat bg-cover justify-center'>
|
||||
<div class='absolute size-full bg-white'>
|
||||
<!-- <Picture
|
||||
<div class='absolute size-full'>
|
||||
<Picture
|
||||
class={`size-full object-cover object-${bannerPosition || 'top'}`}
|
||||
src={`https://cdn.sittingonclouds.net/live/${bannerId}.png`}
|
||||
alt=''
|
||||
width={2560}
|
||||
height={150}
|
||||
/> -->
|
||||
/>
|
||||
</div>
|
||||
<div class='relative md:px-20 size-full flex justify-center'>
|
||||
<a href='https://www.youtube.com/shorts/nOQT7tPUnTA'>
|
||||
<a href='/'>
|
||||
<Image
|
||||
src={offScript}
|
||||
class='h-full md:py-0.5 w-auto animate-bounce'
|
||||
src={Astro.currentLocale === 'es' ? logoEs : logo}
|
||||
class='h-full md:py-0.5 w-auto'
|
||||
alt='logo'
|
||||
height={150}
|
||||
width={265}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 MiB |
Loading…
Add table
Add a link
Reference in a new issue