Links visited styles and fixes (#1)

Co-authored-by: Juan Manzanero <59628111+juancmandev@users.noreply.github.com>
Reviewed-on: https://git.juancman.dev/juancmandev/website/pulls/1
Co-authored-by: juancmandev <juancmandev@protonmail.com>
Co-committed-by: juancmandev <juancmandev@protonmail.com>
This commit is contained in:
juancmandev
2025-03-12 12:07:57 -04:00
committed by Juan Manzanero
parent 60bb38130b
commit ca16d19dca
6 changed files with 703 additions and 697 deletions

View File

@ -11,7 +11,7 @@ export default function CustomAnchor(props: TAnchor) {
) : (
<a
{...props}
className='inline-flex outline-ring'
className='inline-flex outline-ring visited:text-purple-600'
target='_blank'
/>
);

View File

@ -15,7 +15,7 @@ export default function PostItem(props: Props) {
asChild
size={null}
variant='link'
className='px-4 whitespace-normal py-2 hover:no-underline focus:no-underline flex flex-col items-start italic border border-secondary hover:border-foreground focus:border-foreground transition-colors rounded-md'
className='group hover:no-underline focus:no-underline text-foreground visited:text-purple-600 px-4 whitespace-normal py-2 flex flex-col items-start italic border border-secondary hover:border-foreground focus:border-foreground transition-colors rounded-md'
>
<a
className='no-underline'
@ -25,10 +25,10 @@ export default function PostItem(props: Props) {
: `/es/${props.type}/${[props.id]}`
}
>
<span className='text-sm font-light no-underline'>
<span className='text-foreground text-sm font-light no-underline'>
{formatDate(props.date, props.lang)}
</span>
<span className='text-primary text-underline text-lg font-semibold underline'>
<span className='text-lg font-semibold group-hover:underline group-focus:underline'>
{props.title}
</span>
</a>

View File

@ -3,7 +3,7 @@ import MicroblogItem from '@/components/microblog-item.astro';
import Layout from '@/layouts/Layout.astro';
import { createServerClient } from '@/utils/pocketbase';
const pb = createServerClient(import.meta.env.SECRET_POCKETBASE_API_URL);
const pb = createServerClient('https://juancman.dev/pb');
const data = await pb.collection('microblogs').getFullList({
expand: 'tags',
sort: '-published',

View File

@ -69,7 +69,7 @@ export type TypedPocketBase = PocketBase & {
export function createServerClient(url: string) {
if (!url) {
throw new Error('Pocketbase API url not defined !');
throw new Error('Pocketbase API url not defined!');
}
if (typeof window !== 'undefined') {