This file contains hidden or 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 is the method in my Service that calls Wally. | |
public function getWallData($exhibit, $wall) { | |
$criteria = craft()->elements->getCriteria(ElementType::Entry); | |
$criteria->section = $exhibit; | |
$response = $criteria->find(); | |
$wally = new Wally(); | |
return $wally->create($response[0], $wall); | |
} |
This file contains hidden or 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
<ProgressBar | |
containerStyles={{ | |
border: '2px solid #323435', | |
width: '100%', | |
borderRadius: '0', | |
height: '16px' | |
}} | |
fillerStyles={{ | |
background: '#FC585B' | |
}} |
This file contains hidden or 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
import { myContainerStyles, myFillerStyles } from '../../some-directory/some-file' | |
<ProgressBar | |
containerStyles={myContainerStyles} | |
fillerStyles={myFillerStyles} | |
percentageDone={80} | |
/> |
This file contains hidden or 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
<DottedProgress | |
numSteps={6} | |
activeStep={4} | |
activeDotColor="rgb(252, 88, 91)" | |
dotStyles={{ | |
width: 20, | |
height: 20, | |
borderRadius: '0', | |
border: '1px solid #333' | |
}} |
This file contains hidden or 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
<Spinner | |
height={75} | |
/> |
This file contains hidden or 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
<?php | |
$section = Craft::$app->sections->getSectionByHandle('journalArticles'); | |
$entryTypes = $section->getEntryTypes(); | |
$entryType = reset($entryTypes); | |
$entry = new Entry([ | |
'sectionId' => $section->id, | |
'typeId' => $entryType->id, | |
'fieldLayoutId' => $entryType->fieldLayoutId, |
This file contains hidden or 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
import React from 'react' | |
const Slide = () => { | |
return <div className="slide"></div> | |
} | |
export default Slide |
This file contains hidden or 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
import React, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = {} |
This file contains hidden or 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
import React, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = {} |
This file contains hidden or 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
import React from 'react'; | |
const RightArrow = (props) => { | |
return ( | |
<div className="nextArrow" onClick={props.goToNextSlide}> | |
<i className="fa fa-arrow-right fa-2x" aria-hidden="true"></i> | |
</div> | |
); | |
} |