Standardproduktbild hinzugefügt und mit useState konfiguriert.

This commit is contained in:
tekh 2025-07-02 11:05:16 +02:00
parent 6bb1758040
commit 8771e025bc
27 changed files with 8 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

View File

@ -19,7 +19,7 @@ type AppProps = {
export default function App({ children }: AppProps) {
useScrollToTop();
const githubButton = () => (
const ddButton = () => (
<Fab
size="medium"
aria-label="Github"
@ -41,7 +41,7 @@ export default function App({ children }: AppProps) {
return (
<ThemeProvider>
{children}
{githubButton()}
{ddButton()}
</ThemeProvider>
);
}

View File

@ -1,3 +1,5 @@
import { useState } from 'react';
import Box from '@mui/material/Box';
import Link from '@mui/material/Link';
import Card from '@mui/material/Card';
@ -38,11 +40,14 @@ export function ProductItem({ product }: { product: ProductItemProps }) {
</Label>
);
const [imgSrc, setImgSrc] = useState(product.coverUrl);
const renderImg = (
<Box
component="img"
alt={product.name}
src={product.coverUrl}
src={imgSrc}
onError={() => setImgSrc('/assets/images/product/product-default.webp')}
sx={{
top: 0,
width: 1,