From 373bd03f8e38be13a06c2becf0cc69d2eade4ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Voskuhl?= <juergen.voskuhl@itcv-software.com> Date: Wed, 30 Aug 2023 05:58:02 +0200 Subject: [PATCH] - Do NOT show default icon (IconBooks)- Some documentation added --- pages/standards/index.tsx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pages/standards/index.tsx b/pages/standards/index.tsx index 32fcde9..39967fe 100644 --- a/pages/standards/index.tsx +++ b/pages/standards/index.tsx @@ -1,3 +1,6 @@ +/* + * Controls the list view of it-standards + */ import { useRouter } from 'next/router' import { IconArrowBigRight, IconChevronLeft, IconMail, IconBooks, IconBook2 } from '@tabler/icons' @@ -118,6 +121,7 @@ export default function ({ contentsString }) { <div className="mt-4"> <ul role="list" className="space-y-4"> {filteredServices.map((service: ServiceContent, key) => ( + // *** A list entry <li key={service.name} className="bg-white px-4 pt-3 pb-6 shadow sm:p-6 sm:rounded-lg" @@ -136,23 +140,20 @@ export default function ({ contentsString }) { <div aria-labelledby={'service-' + key}> <div className="flex justify-between"> <div className="flex space-x-3"> - <div className="flex-shrink-0 xl:py-6"> - {service.logo.path !== '' && service.logo.title !== '' - ? ( + {service.logo.path !== '' && service.logo.title !== '' + ? ( + <div className="flex-shrink-0 xl:py-6"> <img className="max-w-[100px] h-10" src={getImgPath(service.logo.path)} alt={service.logo.title} /> - ) - : ( - <IconBooks - className={'h10'} - /> - )} - </div> + </div> + ) + : '' + } <div className="min-w-0 flex-1 xl:py-6"> - <p className="text-lg font-medium text-gray-900"> + <p className="text-xl font-bold text-gray-900"> <Link href={`/standards/${service.slug}`} passHref legacyBehavior> <a className="hover:underline"> {service.name} -- GitLab