Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebranding - HighlightBox Component #579

Open
wants to merge 2 commits into
base: rebrand
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -8,6 +8,7 @@ prototype(Neos.Presentation:Module.TextAndImage) < prototype(Neos.Fusion:Compone
image.imageSource = Sitegeist.Kaleidoscope:UriImageSource {
uri = 'https://source.unsplash.com/random/800x600'
}
button.text = 'More information'
}
}

Expand All @@ -21,18 +22,26 @@ prototype(Neos.Presentation:Module.TextAndImage) < prototype(Neos.Fusion:Compone
description = PropTypes:FromPrototype {
prototypeName = "Neos.Presentation:Paragraph"
}
imageRight = PropTypes:Bool
hasButton = PropTypes:Bool
}

imageRight = false
hasButton = false

renderer = afx`
<Neos.Presentation:Spacing size y>
<div class="grid md:grid-cols-2 items-center">
<Sitegeist.Kaleidoscope:Image {...props.image} />
<Sitegeist.Kaleidoscope:Image {...props.image} class={[props.imageRight ? 'order-last' : null]} />
<Neos.Presentation:Spacing x y="small">
<Neos.Presentation:Spacing y="small">
<Neos.Presentation:Headline {...props.headline} display="headline-lg" />
</Neos.Presentation:Spacing>
<Neos.Presentation:Spacing y="small">
<Neos.Presentation:Paragraph {...props.description} displafy="lead" />
<Neos.Presentation:Paragraph {...props.description} display="lead" />
</Neos.Presentation:Spacing>
<Neos.Presentation:Spacing y="small" @if={props.hasButton}>
<Neos.Presentation:Button @if={props.hasButton} {...props.button}/>
</Neos.Presentation:Spacing>
</Neos.Presentation:Spacing>
</div>
Expand Down