cleaned up and made block visible in editor
This commit is contained in:
parent
80ca6eb40a
commit
3590b53f5f
|
|
@ -13,7 +13,6 @@
|
|||
"textdomain": "theatergf-gallery",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"render": "file:./render.php",
|
||||
"viewScript": "file:./view.js"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ import './editor.scss';
|
|||
*/
|
||||
export default function Edit() {
|
||||
return (
|
||||
<theatergf-gallery { ...useBlockProps() }>
|
||||
{ __( 'Gallery', 'theatergf-gallery' ) }
|
||||
</theatergf-gallery>
|
||||
<div { ...useBlockProps() }>
|
||||
<img src="http://localhost:8000/wp-content/uploads/2026/02/thumbnail_tgf-logo-transparent-fuer-hg-weiss-512x512-1.png" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
* Replace them with your own styles or remove the file completely.
|
||||
*/
|
||||
|
||||
.wp-block-theatergf-theatergf-gallery {
|
||||
.wp-block-theatergf-gallery {
|
||||
border: 1px dotted #f00;
|
||||
width: 100%;
|
||||
aspect-ratio: 2/1;
|
||||
overflow: hidden;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,15 +5,6 @@
|
|||
*/
|
||||
import { registerBlockType } from '@wordpress/blocks';
|
||||
|
||||
/**
|
||||
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
|
||||
* All files containing `style` keyword are bundled together. The code used
|
||||
* gets applied both to the front of your site and to the editor.
|
||||
*
|
||||
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
|
||||
*/
|
||||
import './style.scss';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
* The following styles get applied both on the front of your site
|
||||
* and in the editor.
|
||||
*
|
||||
* Replace them with your own styles or remove the file completely.
|
||||
*/
|
||||
|
||||
.wp-block-theatergf-theatergf-gallery {
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue