-
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 #98 from marzeelabs/release/1.2.0
Release/1.2.0
- Loading branch information
Showing
136 changed files
with
7,147 additions
and
2,290 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,50 @@ | ||
import React from 'react'; | ||
import BesugoComponent from 'Besugo'; | ||
|
||
import SrcSet from 'partials/SrcSet'; | ||
|
||
const cns = 'teaser-text-side'; | ||
|
||
export default class BlogTeaser extends BesugoComponent { | ||
static config = { | ||
tag: 'BlogTeaser', | ||
} | ||
|
||
static buildContainer(parserUtils) { | ||
const li = parserUtils.createNode('li'); | ||
parserUtils.setAttribute(li, 'class', `${cns}__wrapper`); | ||
|
||
return li; | ||
} | ||
|
||
renderBlock() { | ||
const data = this.props; | ||
|
||
return ( | ||
<div className={ `${cns}__container` }> | ||
<div className={ `${cns}__image__wrapper` }> | ||
<a href={ data.url }> | ||
<SrcSet | ||
classname={ `${cns}__image` } | ||
src={ data.image } | ||
sizes=" | ||
(max-width: 729px) 100vw, | ||
(max-width: 1024px) 60vw, | ||
705px" | ||
/> | ||
</a> | ||
</div> | ||
|
||
<div className={ `${cns}__text__wrapper` }> | ||
<p className={ `${cns}__text` }> | ||
{ data.title } | ||
</p> | ||
|
||
<span className={ `${cns}__text__link` }> | ||
<a href={ data.url } className="link__button-black-secondary">{ data.more }</a> | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
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,30 @@ | ||
import React from 'react'; | ||
import BesugoComponent from 'Besugo'; | ||
|
||
const cns = 'location-amenity'; | ||
|
||
export default class Amenity extends BesugoComponent { | ||
static config = { | ||
tag: 'Amenity', | ||
} | ||
|
||
static buildContainer(parserUtils) { | ||
const li = parserUtils.createNode('li'); | ||
parserUtils.setAttribute(li, 'class', `${cns}__wrapper`); | ||
|
||
return li; | ||
} | ||
|
||
render() { | ||
const data = this.props; | ||
|
||
return ( | ||
<div key={data.title}> | ||
<span className={ `icon icon-${data.icon}` } /> | ||
<span className={ `${cns}__title` }> | ||
{ data.title } | ||
</span> | ||
</div> | ||
); | ||
} | ||
} |
Oops, something went wrong.