-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from codesyntax/fixes
Fixes
- Loading branch information
Showing
25 changed files
with
1,824 additions
and
1,805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Remove barrel imports @erral | ||
Add inline docs @erral | ||
Remove definition of variations (use withBlockExtensions) @erral | ||
Remove unneeded files @erral |
2 changes: 1 addition & 1 deletion
2
packages/volto-featured-block/src/components/Blocks/FeaturedBlock/FeaturedAdapter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 2 additions & 19 deletions
21
packages/volto-featured-block/src/components/Blocks/FeaturedBlock/FeaturedSchema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...olto-featured-block/src/components/Blocks/FeaturedBlock/Variations/BannerFeaturedView.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import { Button } from 'semantic-ui-react'; | ||
import { ConditionalLink } from '@plone/volto/components'; | ||
|
||
export const BannerFeaturedView = (props) => { | ||
const { data, isEditMode } = props; | ||
return ( | ||
<div | ||
className="banner-top-main" | ||
style={{ | ||
backgroundImage: `url(${data?.url}/@@images/image)`, | ||
}} | ||
> | ||
<div className="banner-top-main-block-title"> | ||
{data.title && ( | ||
<h2> | ||
<ConditionalLink | ||
to={data?.href?.[0]?.['@id']} | ||
condition={!isEditMode} | ||
> | ||
{data?.title} | ||
</ConditionalLink> | ||
</h2> | ||
)} | ||
{data.description && <h3>{data?.description} </h3>} | ||
{data.hrefText && ( | ||
<Button | ||
as="a" | ||
size="large" | ||
href={'' + data?.link?.[0]?.['@id']} | ||
primary | ||
> | ||
{data.hrefText} | ||
</Button> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.