Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Entwicklungsportal - ARCHIVED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FIT-Connect
Entwicklungsportal - ARCHIVED
Commits
065ddf9a
Commit
065ddf9a
authored
1 year ago
by
Andy Leuchtturm
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into feature/it-standards
parents
ad4123fc
1a140731
No related branches found
No related tags found
1 merge request
!86
planning#1203: Standards
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/PageHeaderCard.tsx
+11
-11
11 additions, 11 deletions
components/PageHeaderCard.tsx
shared/use-service-filter.ts
+4
-0
4 additions, 0 deletions
shared/use-service-filter.ts
with
15 additions
and
11 deletions
components/PageHeaderCard.tsx
+
11
−
11
View file @
065ddf9a
...
...
@@ -13,21 +13,18 @@ type HeaderOptions = {
export
default
({
title
,
description
,
img
,
children
}:
HeaderOptions
)
=>
{
return
(
<
section
className
=
"bg-white mt-10 lg:mt-32 w-full mx-auto relative z-10 lg:pb-32"
aria-labelledby
=
"heading"
>
<
section
className
=
"bg-white mt-10 w-full mx-auto relative z-10 lg:pb-32"
aria-labelledby
=
"heading"
>
<
h2
className
=
"sr-only"
id
=
"heading"
>
{
title
}
</
h2
>
<
div
className
=
"flex flex-col bg-white rounded-b-lg shadow-xl"
>
<
div
className
=
"flex-1 relative pt-24 px-6 pb-8 md:px-8"
>
<
div
className
=
"h-32
absolute
top-0 p-4 inline-block transform -translate-y-1/2"
>
<
header
className
=
{
'
flex justify-between space-x-6
'
}
>
<
div
className
=
"h-32 top-0 p-4 inline-block transform -translate-y-1/2"
>
<
header
className
=
{
'
flex justify-between space-x-6
items-center
'
}
>
{
img
&&
img
.
src
?
(
<
img
className
=
{
'
w-24
h-24
'
}
className
=
{
'
h-24
'
}
src
=
{
img
.
src
}
alt
=
{
img
.
alt
}
/>
...
...
@@ -42,15 +39,18 @@ export default ({ title, description, img, children }: HeaderOptions) => {
</
h1
>
</
header
>
</
div
>
<
div
className
=
"cms-blog-text text-xl text-gray-800 mt-14"
dangerouslySetInnerHTML
=
{
{
__html
:
description
}
}
/>
<
div
className
=
"flex flex-col md:flex-row md:items-center"
>
<
div
className
=
"cms-blog-text text-xl text-gray-800 mt-5 md:flex-1"
dangerouslySetInnerHTML
=
{
{
__html
:
description
}
}
/>
</
div
>
</
div
>
<
div
className
=
"p-6 bg-gray-50 rounded-b-lg md:px-8 flex flex-row items-center gap-16"
>
{
children
}
</
div
>
</
div
>
</
section
>
)
}
This diff is collapsed.
Click to expand it.
shared/use-service-filter.ts
+
4
−
0
View file @
065ddf9a
...
...
@@ -54,6 +54,10 @@ const useServiceFilter = (services: ServiceContent[], filter: any) => {
return
filterServiceByTags
(
service
,
activeTypeFilterTags
,
FilterMatchRequirement
.
ALL
)
&&
filterServiceByTags
(
service
,
activeStatusFilterTags
,
FilterMatchRequirement
.
SOME
)
})
servicesFilteredByTags
.
sort
((
sortableServiceContantA
:
ServiceContent
,
sortableServiceContantB
:
ServiceContent
)
=>
{
return
sortableServiceContantA
.
name
.
localeCompare
(
sortableServiceContantB
.
name
)
})
setFilteredServices
(
servicesFilteredByTags
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment