mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
General fixes
This commit is contained in:
parent
1032011b55
commit
c16243df76
7 changed files with 31 additions and 33 deletions
6
.vscode/extensions.json
vendored
6
.vscode/extensions.json
vendored
|
|
@ -4,6 +4,8 @@
|
||||||
"inlang.vs-code-extension",
|
"inlang.vs-code-extension",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"bradlc.vscode-tailwindcss"
|
"bradlc.vscode-tailwindcss",
|
||||||
|
"prisma.prisma",
|
||||||
|
"csstools.postcss"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import NavButton from './NavButton.astro'
|
||||||
<NavButton class='dropdown-btn group relative px-0'>
|
<NavButton class='dropdown-btn group relative px-0'>
|
||||||
<div class='after:content-["▼"] after:text-xs'><slot /></div>
|
<div class='after:content-["▼"] after:text-xs'><slot /></div>
|
||||||
<div
|
<div
|
||||||
class='dropdown-items md:absolute flex-col bg-gray hidden md:group-hover:flex top-full left-0 py-1 min-w-36 rounded-md md:rounded-t-none mt-1.5 md:mt-0'
|
class='dropdown-items md:absolute flex-col bg-gray hidden md:group-hover:flex top-full left-0 min-w-36 rounded-md md:rounded-t-none mt-1.5 md:mt-0'
|
||||||
>
|
>
|
||||||
<slot name='items' />
|
<slot name='items' />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ import clsx from 'clsx'
|
||||||
const { class: className } = Astro.props
|
const { class: className } = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<Button
|
<button
|
||||||
className={clsx(
|
class:list={[
|
||||||
'w-full md:w-fit md:h-full bg-dark hover:bg-dark-hover py-3.5 md:py-1 px-2 rounded-none text-left md:text-center',
|
'w-full md:w-fit md:h-full bg-dark hover:bg-gray py-3.5 md:py-1 px-2 rounded-none text-left md:text-center',
|
||||||
className
|
className
|
||||||
)}
|
]}
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</Button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,7 @@ const comments = await prismaClient.comments.findMany({
|
||||||
|
|
||||||
<SidebarSection>
|
<SidebarSection>
|
||||||
<Looper comments={comments} client:only='react'>
|
<Looper comments={comments} client:only='react'>
|
||||||
<Icon name='arrow-right' slot='arrowRight' class='group-hover:fill-black' height={30} width={15} fill='white' />
|
<Icon name='arrow-right' slot='arrowLeft' class='scale-x-[-1]' height={30} width={15} />
|
||||||
<Icon
|
<Icon name='arrow-right' slot='arrowRight' height={30} width={15} />
|
||||||
name='arrow-right'
|
|
||||||
slot='arrowLeft'
|
|
||||||
class='group-hover:fill-black scale-x-[-1]'
|
|
||||||
height={30}
|
|
||||||
width={15}
|
|
||||||
fill='white'
|
|
||||||
/>
|
|
||||||
</Looper>
|
</Looper>
|
||||||
</SidebarSection>
|
</SidebarSection>
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,7 @@ export default function Looper(props: Props) {
|
||||||
<div className='text-md/6 font-extralight'>
|
<div className='text-md/6 font-extralight'>
|
||||||
<div>{comment.text}</div>
|
<div>{comment.text}</div>
|
||||||
<div className='mt-1'>
|
<div className='mt-1'>
|
||||||
-{' '}
|
- <a href={`/album/${comment.albums?.id}`}>{comment.albums?.title}</a>
|
||||||
<a href={`/album/${comment.albums?.id}`} className='hover:text-hover-link hover:underline'>
|
|
||||||
{comment.albums?.title}
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
{isMultiple ? (
|
{isMultiple ? (
|
||||||
<div className='flex mt-2.5'>
|
<div className='flex mt-2.5'>
|
||||||
|
|
|
||||||
|
|
@ -32,14 +32,8 @@ const lastAlbums = await prismaClient.albums.findMany({
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class='flex gap-x-2 py-4'>
|
<div class='flex gap-x-2 py-4'>
|
||||||
<button
|
<a class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-1/2'>{m.moreGameReleases}</a>
|
||||||
class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-1/2 hover:text-hover-link hover:underline'
|
<a class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-1/2'>{m.moreAnimReleases}</a>
|
||||||
>{m.moreGameReleases}</button
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-1/2 hover:text-hover-link hover:underline'
|
|
||||||
>{m.moreAnimReleases}</button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<h1 class='uppercase font-medium tracking-wide text-5xl drop-shadow-2xl mt-5 mb-2 text-center'>
|
<h1 class='uppercase font-medium tracking-wide text-5xl drop-shadow-2xl mt-5 mb-2 text-center'>
|
||||||
|
|
@ -53,10 +47,7 @@ const lastAlbums = await prismaClient.albums.findMany({
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class='flex gap-x-2 py-4'>
|
<div class='flex gap-x-2 py-4'>
|
||||||
<button
|
<a class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-full'>{m.moreLastAdded}</a>
|
||||||
class='bg-dark uppercase rounded-md text-2xl p-1.5 font-semibold w-full hover:text-hover-link hover:underline'
|
|
||||||
>{m.moreLastAdded}</button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,19 @@
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
a {
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
:disabled {
|
||||||
|
cursor: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: var(--color-hover-link);
|
||||||
|
text-decoration-line: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue