Skip to content
Snippets Groups Projects
Commit d5d75ef8 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

BildPanel: Added option to disable gradient

parent ce875367
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,8 @@ export type BildPanelDefinition = { ...@@ -7,7 +7,8 @@ export type BildPanelDefinition = {
url: string, url: string,
fit?: "fill" | "fit", fit?: "fill" | "fit",
title?: string, title?: string,
description?: string description?: string,
gradient?: boolean
} }
const BildPanel = (props: {definition: BildPanelDefinition}) => { const BildPanel = (props: {definition: BildPanelDefinition}) => {
...@@ -31,7 +32,10 @@ const BildPanel = (props: {definition: BildPanelDefinition}) => { ...@@ -31,7 +32,10 @@ const BildPanel = (props: {definition: BildPanelDefinition}) => {
> >
{props.definition.title && ( {props.definition.title && (
<> <>
<div className={"absolute inset-0 w-full h-full bg-lower-gradient"}> <div className={classNames(
"absolute inset-0 w-full h-full",
(props.definition.gradient ?? true) ? "bg-lower-gradient" : ""
)}>
</div> </div>
<PanelContent className={"absolute inset-0 w-full h-full flex flex-col justify-end"}> <PanelContent className={"absolute inset-0 w-full h-full flex flex-col justify-end"}>
......
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