Skip to content
Snippets Groups Projects
Commit 373bd03f authored by Jürgen Voskuhl's avatar Jürgen Voskuhl
Browse files

- Do NOT show default icon (IconBooks)- Some documentation added

parent ff2f2c66
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
/*
* 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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment