diff --git a/components/it-standards/LifecyclePicture.tsx b/components/it-standards/LifecyclePicture.tsx index a5cf27b0656c25866088b21b1b84e79ab8d47c2b..75a818a11777be55a9684770f56c3b5d95242cee 100644 --- a/components/it-standards/LifecyclePicture.tsx +++ b/components/it-standards/LifecyclePicture.tsx @@ -1,4 +1,5 @@ import useImgPath from 'shared/use-img-path' +import MY_CONSTANTS from '@/lib/constants-standards.js' const { getImgPath } = useImgPath() @@ -8,17 +9,26 @@ type LifecylceOptions = { // Display the image corresponding to the lifecycle phase export default ({ status } : LifecylceOptions) => { const imagePath = `/img/standards/lifecycle/${status}.svg` - console.log(status) - return ( - <div className="border border-gray-300 rounded-lg overflow-hidden py-2"> - {/* Die Next.js Image-Komponente verwendet das "src" Attribut */} - <img - src={getImgPath(imagePath)} - alt={`Bild für Tag ${status}`} - width={500} // Breite des Bildes - height={0} // Höhe des Bildes - /> - </div> - ) + if (MY_CONSTANTS.LYFE_CYCLE_PHASES.includes(status)) { + return ( + <div className="border border-gray-300 rounded-lg overflow-hidden py-2"> + {/* Die Next.js Image-Komponente verwendet das "src" Attribut */} + <img + src={getImgPath(imagePath)} + alt={`${status}`} + width={500} // Breite des Bildes + height={0} // Höhe des Bildes + /> + </div> + ) + } + else { + return ( + <div className="border border-gray-300 rounded-lg overflow-hidden p-2"> + #INVALID! (tags.status) + </div> + + ) + } } diff --git a/content/standards/xbezahldienste/xbezahldienste.md b/content/standards/xbezahldienste/xbezahldienste.md index 25c8f23f058eba64202cea0b9bb7a9763dd2fc43..e17a92ce0512b280780ed51ff08ddbb066806603 100644 --- a/content/standards/xbezahldienste/xbezahldienste.md +++ b/content/standards/xbezahldienste/xbezahldienste.md @@ -40,8 +40,8 @@ childResources: slug: xxx - name: Test2 slug: yyy -- name: Test3 - slug: zzz +- name: XBezahldienste + slug: xbezahldienste sourceCodeUrl: https://docs.fitko.de/xbezahldienste/ docsUrl: https://docs.fitko.de/xbezahldienste/ diff --git a/content/standards/xeinkauf/xeinkauf.md b/content/standards/xeinkauf/xeinkauf.md index 6622984d2d9ab2f51c6341d8cb3113b7d5e30d65..72da9c8397e8751b005c6dec31a380833a6ed387 100644 --- a/content/standards/xeinkauf/xeinkauf.md +++ b/content/standards/xeinkauf/xeinkauf.md @@ -36,10 +36,13 @@ contactInformation: tags: - status: regelbetrieb -- type: -- slugMaster: +- type:xxx +- label:external +- - slugMaster:xeinkauf childResources: +- name: XStandards Einkauf + slug: xeinkauf - name: XRechnung slug: xrechnung diff --git a/content/standards/xrechnung/xrechnung.md b/content/standards/xrechnung/xrechnung.md index b0065878332d02aeb2d542de59dcd7f281b6b8c6..1385322542cebd345f15c7e67d4c909bd87b48a5 100644 --- a/content/standards/xrechnung/xrechnung.md +++ b/content/standards/xrechnung/xrechnung.md @@ -27,8 +27,7 @@ developer: contactInformation: - organisation: Senator für Finanzen - Koordinierungsstelle für IT Standards (KoSIT) + organisation: Koordinierungsstelle für IT Standards (KoSIT) url: https://xeinkauf.de/xrechnung/ name: phone: +49 421 361 10062 @@ -36,13 +35,15 @@ contactInformation: mail: xrechnung@finanzen.bremen.de tags: -- status: regelbetrieb -- type: -- slugMaster: xstandards_einkauf + status:regelbetrieb + type: xxx + slugMaster:xeinkauf childResources: -- name: - slug: +- name: XStandards Einkauf + slug: xeinkauf +- name: XRechnung + slug: xrechnung docsUrl: https://xeinkauf.de/dokumente/ sourceCodeUrl: https://xeinkauf.de/app/uploads/2023/09/xrechnung-3.0.1-bundle-2023-09-22.zip diff --git a/styles/it-standards.scss b/styles/it-standards.scss index dda36226131f07213ad14361263887aa1ae4374b..5b472eddfb1cd36378b43b85ac8d58aaecc710bc 100644 --- a/styles/it-standards.scss +++ b/styles/it-standards.scss @@ -6,7 +6,11 @@ --tw-text-opacity: 1; color: rgb(59 130 246 / var(--tw-text-opacity)); } -.it-standard .cms-blog-text p a:hover{ +.infoboxes a{ + color:blue; +} +.it-standard .cms-blog-text p a:hover, +.infoboxes a:hover{ text-underline-offset:2px; text-decoration:underline; }