Compare commits

...

2 Commits

Author SHA1 Message Date
Guus van Meerveld 6423bae178 results: exchange author image for avatar
continuous-integration/drone/push Build is passing Details
8 months ago
Guus van Meerveld a5ece4aeb3 nav: fix import name in elements file
8 months ago

@ -1,6 +1,6 @@
import { Suspense } from "react";
import { Nav } from "@/components/Nav/Nav";
import { Nav } from "@/components/Nav";
import { NavClient } from "@/components/Nav/NavClient";
import { Component } from "@/typings/component";

@ -3,6 +3,7 @@
import NextImage from "next/image";
import NextLink from "next/link";
import { Avatar } from "@nextui-org/avatar";
import { Card, CardBody } from "@nextui-org/card";
import { Image } from "@nextui-org/image";
import { Link } from "@nextui-org/link";
@ -49,7 +50,7 @@ export const Video: Component<{ data: VideoItem }> = ({ data }) => {
<h1 className="text-xl">{data.title}</h1>
<div className="flex flex-row gap-4 items-center font-semibold text-default-600">
<h1>{formatBigNumber(data.views)} views</h1>
<h1>{formatUploadedTime(data.uploaded)}</h1>
{data.uploaded && <h1>{formatUploadedTime(data.uploaded)}</h1>}
</div>
<Link
as={NextLink}
@ -57,14 +58,12 @@ export const Video: Component<{ data: VideoItem }> = ({ data }) => {
className="flex flex-row gap-2 items-center"
>
{data.author.avatar && (
<Image
width={64}
height={64}
<Avatar
isBordered
name={data.author.name}
size="lg"
src={data.author.avatar}
alt={data.author.name}
className="rounded-full"
as={NextImage}
unoptimized
/>
)}
<h1 className="text-lg text-default-600">{data.author.name}</h1>

Loading…
Cancel
Save