diff --git a/pages/[user].tsx b/pages/[user].tsx index 58e28c30..2cebe68c 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -4,50 +4,65 @@ import Link from "next/link"; import prisma, { whereAndSelect } from "@lib/prisma"; import Avatar from "../components/Avatar"; import Theme from "@components/Theme"; +import { ClockIcon, InformationCircleIcon, UserIcon } from "@heroicons/react/solid"; +import React from "react"; export default function User(props): User { const { isReady } = Theme(props.user.theme); const eventTypes = props.eventTypes.map((type) => ( -
  • + className="dark:bg-gray-800 dark:opacity-90 dark:hover:opacity-100 dark:hover:bg-gray-800 bg-white hover:bg-gray-50 border border-neutral-200 hover:border-black rounded-sm"> -
    -

    {type.title}

    -

    {type.description}

    +

    {type.title}

    +
    +
    +
    +
    +
    +
    +
    +
    -
  • + )); return ( isReady && ( -
    +
    {props.user.name || props.user.username} | Calendso -
    +
    -

    +

    {props.user.name || props.user.username}

    -

    {props.user.bio}

    +

    {props.user.bio}

    -
    -
      {eventTypes}
    - {eventTypes.length == 0 && ( +
    {eventTypes}
    + {eventTypes.length == 0 && ( +

    Uh oh!

    This user hasn't set up any event types yet.

    - )} -
    +
    + )}
    ) @@ -76,6 +91,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => { select: { slug: true, title: true, + length: true, description: true, }, });