gatsby-layout-builder-cursor
v0.1.0
Published
Gatsby more.
Downloads
9
Maintainers
Readme
[v.0.6.x:next]
: More types.[v.0.x.0:warning]
: The first grand finale release will be publish at v1.0.0.
Gatsby Layout Builder
LAYOUT BUILDER by Edu4Dev
Engine Agent: Gatsby - Javascript Framework
Engine SubAgent: Gatsby Plugin
Gatsby Plugin Name: Gatsby Layout Builder
Author: Edu4Dev - Milton Bolonha
Description: Gatsby Layout Builder is the platform web creators choose to build professional GatsbyJS HTML, plus SCSS basic structure, such as rows, number of columns, background color, header, responsive main menu, modals and simple stuffs.
*Keep in mind these bundle aren't a block builder.
Plugin URI: https://www.npmjs.com/package/gatsby-layout-builder-cursor
Plugin Install: npm i gatsby-layout-builder-cursor
Version: 0.6.0
Year: 2022
Invoke:
<Layout
type="ROW"
opt={{
bgColor: '#fff',
isBoxed: true,
alignTo: 'center',
numColumns: 3,
// bgImg: {};
}}
>
// Your content goes here
</Layout>
🚀 Quick start
To get started to invoke rows, columns, modals, header and footer wrapper standard structure on your theme, you can follow these steps:
- Install Gatsby Layout Builder plugin with:
npm i gatsby-layout-builder-cursor
If you already have customize your gatsby-config.js, you can use it. Otherwise, you should create a new gatsby-config.js file to setting your plugin.
- Add the Gatsby Layout plugin to the build. In your gatsby-config.js insert the code:
module.exports = {
plugins: [`gatsby-layout-builder-cursor`],
}
// gatsby-config.js
- Add the plugin correctly
Inside a page or component invoke Layout type="COMPONENT".
// type="BODY"
<BodyContainer subAgent={children} opt={opt} />
// type="FOOTER"
<FooterContainer subAgent={children} opt={opt} />
// type="HEADER"
<HeaderContainer opt={opt} />
// type="ROW"
<RowContainer opt={opt} subAgent={children} />
// type="SIDEBAR"
<SidebarContainer opt={opt} subAgent={children} />
// type="MAIN"
<MainContainer opt={opt} subAgent={children} />
Those types who accept subAgent parameter may be used as wrapper of some children element.
- Dependencies
{
"dependencies": {
"gatsby": "^4.11.1",
"gatsby-plugin-image": "^2.11.1",
"gatsby-plugin-sass": "^5.11.1",
"node-sass": "^7.0.1",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sass": "^1.49.11",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"prettier": "^2.4.1"
}
}
Keep in touch
Don't mail me yet. Unless you want to make some kind of friendship.
Milton Bolonha [email protected]
🎓 Learning Gatsby
If you're looking for more guidance on plugins, how they work, or what their role is in the Gatsby ecosystem, check out some of these resources:
- The Creating Plugins section of the docs has information on authoring and maintaining plugins yourself.
- The conceptual guide on Plugins, Themes, and Starters compares and contrasts plugins with other pieces of the Gatsby ecosystem. It can also help you decide what to choose between a plugin, starter, or theme.
- The Gatsby plugin library has over 1750 official as well as community developed plugins that can get you up and running faster and borrow ideas from.