Small cleanup.

This commit is contained in:
Lee Robinson 2024-07-28 23:26:03 -05:00
parent 9a4c995bb6
commit 37cb5e38da
8 changed files with 810 additions and 304 deletions

View File

@ -12,7 +12,7 @@ export async function Carousel() {
const carouselProducts = [...products, ...products, ...products]; const carouselProducts = [...products, ...products, ...products];
return ( return (
<div className=" w-full overflow-x-auto pb-6 pt-1"> <div className="w-full overflow-x-auto pb-6 pt-1">
<ul className="flex animate-carousel gap-4"> <ul className="flex animate-carousel gap-4">
{carouselProducts.map((product, i) => ( {carouselProducts.map((product, i) => (
<li <li

View File

@ -4,7 +4,7 @@ import clsx from 'clsx';
export default function CloseCart({ className }: { className?: string }) { export default function CloseCart({ className }: { className?: string }) {
return ( return (
<div className="relative flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors dark:border-neutral-700 dark:text-white"> <div className="relative flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors dark:border-neutral-700 dark:text-white">
<XMarkIcon className={clsx('h-6 transition-all ease-in-out hover:scale-110 ', className)} /> <XMarkIcon className={clsx('h-6 transition-all ease-in-out hover:scale-110', className)} />
</div> </div>
); );
} }

View File

@ -11,7 +11,7 @@ export default function OpenCart({
return ( return (
<div className="relative flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors dark:border-neutral-700 dark:text-white"> <div className="relative flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors dark:border-neutral-700 dark:text-white">
<ShoppingCartIcon <ShoppingCartIcon
className={clsx('h-4 transition-all ease-in-out hover:scale-110 ', className)} className={clsx('h-4 transition-all ease-in-out hover:scale-110', className)}
/> />
{quantity ? ( {quantity ? (

View File

@ -29,7 +29,6 @@ export function GridTileImage({
)} )}
> >
{props.src ? ( {props.src ? (
// eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
<Image <Image
className={clsx('relative h-full w-full object-contain', { className={clsx('relative h-full w-full object-contain', {
'transition duration-300 ease-in-out group-hover:scale-105': isInteractive 'transition duration-300 ease-in-out group-hover:scale-105': isInteractive

View File

@ -6,7 +6,7 @@ import Link from 'next/link';
import { usePathname } from 'next/navigation'; import { usePathname } from 'next/navigation';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
const FooterMenuItem = ({ item }: { item: Menu }) => { export function FooterMenuItem({ item }: { item: Menu }) {
const pathname = usePathname(); const pathname = usePathname();
const [active, setActive] = useState(pathname === item.path); const [active, setActive] = useState(pathname === item.path);
@ -29,7 +29,7 @@ const FooterMenuItem = ({ item }: { item: Menu }) => {
</Link> </Link>
</li> </li>
); );
}; }
export default function FooterMenu({ menu }: { menu: Menu[] }) { export default function FooterMenu({ menu }: { menu: Menu[] }) {
if (!menu.length) return null; if (!menu.length) return null;

View File

@ -9,14 +9,5 @@ module.exports = {
pathname: '/s/files/**' pathname: '/s/files/**'
} }
] ]
},
async redirects() {
return [
{
source: '/password',
destination: '/',
permanent: true
}
];
} }
}; };

View File

@ -28,7 +28,6 @@
"@types/node": "20.14.12", "@types/node": "20.14.12",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/react-dom": "18.3.0", "@types/react-dom": "18.3.0",
"@vercel/git-hooks": "^1.0.0",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"postcss": "^8.4.39", "postcss": "^8.4.39",
"prettier": "3.3.3", "prettier": "3.3.3",

1093
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff