mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Compare commits
4 commits
cfca4ed9e1
...
27ac1d4b67
| Author | SHA1 | Date | |
|---|---|---|---|
| 27ac1d4b67 | |||
| 8578038d5a | |||
| 3c7d25f574 | |||
|
|
ba3d59e0f2 |
5 changed files with 12 additions and 12 deletions
|
|
@ -0,0 +1 @@
|
|||
UPDATE `albums` SET `publishedAt` = `createdAt`;
|
||||
|
|
@ -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 |
|
|
@ -50,7 +50,7 @@ const lastAlbums = await prismaClient.albums.findMany({
|
|||
}
|
||||
</div>
|
||||
<div class='flex gap-x-2 py-4'>
|
||||
<a class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-full'>{m.moreLastAdded}</a>
|
||||
<a href="/last-added" class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-full'>{m.moreLastAdded}</a>
|
||||
</div>
|
||||
</div>
|
||||
<Sidebar />
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { AlbumStatus } from '@prisma/client'
|
|||
|
||||
import PaginatedAlbumList from 'layouts/PaginatedAlbumList.astro'
|
||||
|
||||
const page = Math.min(1, parseInt(Astro.params.page ?? '1'))
|
||||
const take = 40
|
||||
const page = Math.max(1, parseInt(Astro.params.page ?? '1'))
|
||||
const take = 50
|
||||
const limitMD = 12
|
||||
const limitXS = 5
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue