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