Skip to content

Instantly share code, notes, and snippets.

Avatar

sylvaincordiere

View GitHub Profile
View gist:3642a97146e0f07538138f639eefebe6
/**
* BLOCK: Card Block.
*
* Registering a basic block with Gutenberg.
* Simple block, renders and saves the same content without any interactivity.
*/
// Import CSS.
import './style.scss';
import './editor.scss';
View gist:e199884fda4ba5c7ec9720ab4ee65286
import AOS from 'aos';
import 'aos/dist/aos.css';
const { addFilter } = wp.hooks;
const { Fragment } = wp.element;
const {
registerBlockType,
InspectorAdvancedControls,
ToggleControl,
SelectControl
} = wp.blocks;
View gist:15442ea3b01ef86e9cf84284dfbf66da
import AOS from 'aos';
import 'aos/dist/aos.css';
const { __ } = wp.i18n;
const { Component } = wp.element;
const { registerBlockType, InnerBlocks } = wp.blocks;
class App extends Component {
constructor(props){
super(props);
}
You can’t perform that action at this time.