-
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.
* add change on interval to slideshow * add share functionality to floor plans * update slideshow version * allow grid in postcss * filtered-loop: bring react and babel up to date * add support for custom post types * filtered-loop: add template-1 * filtered-loop: small changes to template-1 * map: upgrade babel and react
- Loading branch information
1 parent
dd4e1c4
commit 15a8d63
Showing
32 changed files
with
355 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"presets": ["react", "env"], | ||
"presets": ["@babel/preset-react", "@babel/preset-env"], | ||
"plugins": [ | ||
"transform-runtime" | ||
"@babel/plugin-transform-runtime", | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} |
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
39 changes: 39 additions & 0 deletions
39
plugins/torque-filtered-loop/src/app/Posts/Templates/Template_1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
|
||
class Template_1 extends React.PureComponent { | ||
render() { | ||
const { post } = this.props; | ||
|
||
const backgroundImage = | ||
post?._embedded["wp:featuredmedia"] && | ||
post?._embedded["wp:featuredmedia"][0]?.source_url; | ||
const content = post?.content?.rendered; | ||
|
||
return ( | ||
<div className={"loop-post template-1"}> | ||
<div className={"featured-image-wrapper"}> | ||
<div | ||
className={"featured-image"} | ||
style={{ backgroundImage: `url(${backgroundImage})` }} | ||
/> | ||
</div> | ||
|
||
<div className={"content-wrapper"}> | ||
<h4 dangerouslySetInnerHTML={{ __html: post.title.rendered }} /> | ||
|
||
<div | ||
className="content" | ||
dangerouslySetInnerHTML={{ __html: content }} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
Template_1.propTypes = { | ||
post: PropTypes.object.isRequired | ||
}; | ||
|
||
export default Template_1; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as Template_0 } from "./Template_0"; | ||
export { default as Template_1 } from "./Template_1"; |
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
47 changes: 47 additions & 0 deletions
47
plugins/torque-floor-plans/src/app/data-sources/entrata/FloorPlanInfo/FloorPlanInfo.scss
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,47 @@ | ||
.root { | ||
.modal_wrapper { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: 100; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100%; | ||
|
||
background-color: rgba(0, 0, 0, 0.7); | ||
|
||
.modal { | ||
width: 90%; | ||
height: 75%; | ||
|
||
img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: contain; | ||
} | ||
} | ||
} | ||
|
||
.share { | ||
position: relative; | ||
|
||
.social_wrapper { | ||
position: absolute; | ||
bottom: 60px; | ||
padding: 5px; | ||
border-radius: 4px; | ||
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); | ||
background-color: white; | ||
|
||
i { | ||
margin-bottom: 10px; | ||
} | ||
} | ||
} | ||
|
||
i { | ||
cursor: pointer; | ||
} | ||
} |
Binary file added
BIN
+3.98 KB
...or-plans/src/app/data-sources/entrata/FloorPlanInfo/icons/Eleven33-Keyplans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+736 Bytes
...oor-plans/src/app/data-sources/entrata/FloorPlanInfo/icons/eleven33-printer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+887 Bytes
...loor-plans/src/app/data-sources/entrata/FloorPlanInfo/icons/eleven33-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1001 Bytes
...floor-plans/src/app/data-sources/entrata/FloorPlanInfo/icons/eleven33-share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.