Abbreviate Apple to symbol on core pages
This commit is contained in:
parent
003328f791
commit
e7658eb8a2
@ -6,6 +6,7 @@ import Link from 'next/link';
|
|||||||
import { pathForPhoto, pathForPhotoShare } from '@/site/paths';
|
import { pathForPhoto, pathForPhotoShare } from '@/site/paths';
|
||||||
import PhotoTags from '@/tag/PhotoTags';
|
import PhotoTags from '@/tag/PhotoTags';
|
||||||
import ShareButton from '@/components/ShareButton';
|
import ShareButton from '@/components/ShareButton';
|
||||||
|
import PhotoMakeModel from './PhotoMakeModel';
|
||||||
|
|
||||||
export default function PhotoLarge({
|
export default function PhotoLarge({
|
||||||
photo,
|
photo,
|
||||||
@ -63,9 +64,7 @@ export default function PhotoLarge({
|
|||||||
{tagsToShow.length > 0 &&
|
{tagsToShow.length > 0 &&
|
||||||
<PhotoTags tags={tagsToShow} />}
|
<PhotoTags tags={tagsToShow} />}
|
||||||
</div>
|
</div>
|
||||||
<div className="uppercase">
|
<PhotoMakeModel photo={photo} />
|
||||||
{photo.make} {photo.model}
|
|
||||||
</div>
|
|
||||||
</>)}
|
</>)}
|
||||||
{renderMiniGrid(<>
|
{renderMiniGrid(<>
|
||||||
<ul className={cc(
|
<ul className={cc(
|
||||||
|
|||||||
22
src/photo/PhotoMakeModel.tsx
Normal file
22
src/photo/PhotoMakeModel.tsx
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { Photo } from '.';
|
||||||
|
import { AiFillApple } from 'react-icons/ai';
|
||||||
|
import { cc } from '@/utility/css';
|
||||||
|
|
||||||
|
export default function PhotoMakeModel({
|
||||||
|
photo,
|
||||||
|
}: {
|
||||||
|
photo: Photo
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<div className={cc(
|
||||||
|
'inline-flex items-center self-start',
|
||||||
|
'uppercase',
|
||||||
|
)}>
|
||||||
|
{photo.make === 'Apple'
|
||||||
|
? <AiFillApple className="translate-y-[-0.5px]" />
|
||||||
|
: photo.make}
|
||||||
|
|
||||||
|
{photo.model}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user