mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 13:15:18 -05:00
* Remove light mode * Trim header * New front page initial * Get rid of build layout * Breadcrumbs * Desktop side nav * Overhaul colors * Add breadcrumbs * New sub nav style * Front page action buttons * Add back add new build button * Add articles page with icon * Minor Object damage page layout tweaks * Remove one unnecessary render from object damage * Fix wrong link in article page * Profile -> My Page in header * Log in/out buttons in front * Add drawings to front page * Remove unnecessary comment
41 lines
722 B
TypeScript
41 lines
722 B
TypeScript
export function Image({
|
|
path,
|
|
alt,
|
|
title,
|
|
className,
|
|
width,
|
|
height,
|
|
style,
|
|
containerClassName,
|
|
}: {
|
|
path: string;
|
|
alt: string;
|
|
title?: string;
|
|
className?: string;
|
|
containerClassName?: string;
|
|
width?: number;
|
|
height?: number;
|
|
style?: React.CSSProperties;
|
|
}) {
|
|
return (
|
|
<picture title={title} className={containerClassName}>
|
|
<source
|
|
type="image/avif"
|
|
srcSet={`${path}.avif`}
|
|
width={width}
|
|
height={height}
|
|
style={style}
|
|
/>
|
|
<img
|
|
alt={alt}
|
|
src={`${path}.png`}
|
|
className={className}
|
|
width={width}
|
|
height={height}
|
|
style={style}
|
|
draggable="false"
|
|
/>
|
|
</picture>
|
|
);
|
|
}
|