Skip to content
Snippets Groups Projects
Commit dea362e8 authored by Andy Leuchtturm's avatar Andy Leuchtturm
Browse files

Merge branch 'feature/it-standards' of...

Merge branch 'feature/it-standards' of https://git.fitko.de/fit-connect/entwicklungsportal into feature/it-standards
parents 74849a6b fcf73d8d
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
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>
)
}
}
......@@ -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/
......
......@@ -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
......
......@@ -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
......
......@@ -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;
}
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