• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

FlexiBlocks - React Gatsby Landing Page Templates

FlexiBlocks - React Gatsby Landing Page Templates v4.0.0

No permission to download

MerlinM

New member
May 19, 2022
10
5
3
OSOS submitted a new resource:

FlexiBlocks - React Gatsby Landing Page Templates - Exclusively release on Babiato

01_gatsby-template-flexiblocks-preview.__large_preview.png

FlexiBlocks is a collection of multi-purpose landing pages powered by React and GatsbyJS. Our goal is to develop templates that are beautiful and yet easily customizable in many aspects.

FlexiBlocks Gatsby templates are built with highly flexible hook-based React blocks to deliver maximum flexibility. Each template is connected to a set of JSON files via the GraphQL data layer and the JSON files, control the look and content of the blocks in the...

Read more about this resource...
 
@OSOS can you share documentation dude?
Hi there,

Documentation is already included in the file. It was only a link to html online.

Just so you don't have to look

 
  • Sad
Reactions: empyrium
Hi there,

Documentation is already included in the file. It was only a link to html online.

Just so you don't have to look


Did already, need account to access it.

Deploying / hosting section will be enough for me though.
 
Hope it helps. @empyrium

Sorry I didnt know it required authorization to look at the docs

Code:
— Integrating with FlexiBlog
Getting Started
With Gatsby’s theme composition feature, we can install multiple themes on a site. We’ll use this feature to install FlexiBlocks theme for site’s landing page and FlexiBlog theme for adding a blog to our site.

is a fully functional multi-purpose blog theme powered by React and Gatsby JS and packed with various page layouts.

supports Contentful, and Strapi, and Sanity, and Netlify CMS for writing your blog posts. Essential services such as Algolia search system, Mailchimp newsletter and Disqus commenting are also integrated into the theme.

In this section, we’ll cover adding FlexiBlog theme to a site built with FlexiBlocks or vice versa.

Prerequisites
FlexiBlocks v3 (March 17 2021) is compatible with FlexiBlog v3 (March 17 2021)
FlexiBlocks v2 (March 17 2021) is compatible with FlexiBlog v3 (March 17 2021)
FlexiBlocks v1 (March 01 2021) is compatible with FlexiBlog v2.10 (Feb 14 2021)
Directions
Step 1: Bootstrap your project
Before integrating the second theme with your site, you must bootstrap your site with one of the themes. Please refer to  or  to bootstrap your site.

Step 2: Add second theme’s packages
After bootstrapping your site, copy and overwrite the packages listed below from the second theme you want to add to your current project. The goal is to have both theme’s packages in your project.

From 💜 FlexiBlog package:
@elegantstack/packages/blog
@elegantstack/packages/flow-ui
@elegantstack/packages/plugins
@elegantstack/packages/themes
From 🖤 FlexiBlocks package:
@elegantstack/packages/blocks
@elegantstack/packages/solid-ui
@elegantstack/packages/themes
—> To project folder:
@elegantstack/packages


Step 2: Add second theme’s content files
Now we need to copy starter (sample) content files from the second theme you want to add to your current project:

From second theme’s starter content:
@elegantstack/starters/gatsby-starter-[THEME-NAME]/content

—> To site content:
@elegantstack/site/content


Step 3: Install new theme
Cd into your /site folder and install the second theme:

Installing 💜 FlexiBlog:
# Replace [THEME-NAME] with FlexiBlog theme name and version
yarn add @elegantstack/gatsby-theme-flexiblog-[THEME-NAME]@*

# EXAMPLE to install FlexiBlog Agency:
yarn add @elegantstack/gatsby-theme-flexiblog-agency@*
Installing 🖤 FlexiBlocks:
yarn add @elegantstack/gatsby-theme-flexiblocks@*

Step 4: Register second theme
Register the second theme in your site’s gatsby-config.js file:

site/gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: '@elegantstack/gatsby-theme-flexiblocks',
      options: {
        createDemoPages: true
      }
    },
    {
      // ATTENTION: Match the theme name with the theme you installed
      resolve: '@elegantstack/gatsby-theme-flexiblog-[THEME-NAME]',
      options: {
        // ATTENTION: Blog will be created on this path
        basePath: '/blog/'
      }
    }
    // Rest of your plugins...
  ]
  // Rest of your properties...
}
⚠️ Please pay attention to the comment in the code.


Step 5: Add siteMetadata
If you’re adding FlexiBlog as the second theme to your project, please copy the siteMetadata object in one of FlexiBlog starter’s gatsby-config.js file into your site/gatsby-config.js.


Step 6: Install dependencies
Open your project’s folder in your terminal and run the below command to refresh the dependencies:

yarn install
📝 It’s safe to ignore unmet peer dependency warnings.


Step 7: Develop & Build
Once all dependencies are installed you can begin working on your site.

# Go into the Gatsby site
cd site

# Run Gatsby development site
yarn clean
yarn develop

# Build your Gatsby site for production
yarn clean
yarn build

# Serve production site
yarn serve
If you encounter any issues, please check the  section and if you’re still having trouble please .

In the , we’ll connect the recent blogs block to FlexiBlog’s data layer.

Code:
Deploying & Hosting
Getting your new Gatsby site deployed and accessible is probably the first thing you will want to do now that it’s built! When you build your Gatsby application, the output is static content: HTML, CSS, JavaScript, images, etc. This content is incredibly easy and affordable to host with any provider. Checkout  in Gatsby’s docs for deploying to various hosting providers.

If you’re intending to use continuous deployment with providers like Netlify or Vercel, please make sure you’ve created your PRIVATE git repository at the root of @elegantstack folder so that yarn.lock file is at the root of your repo and the build settings should be configured as below:

Build Settings
Base Directory:
/
Build Command:
cd site && yarn build
Publish Directory:
site/public/
If you encounter any issues, please check the  section or .
 
The Template is Incomplete. It doesn't contain Starter Files So, we cannot create Size.
 
hello please can we get a zip file as doccumentation cause it's locked by account login, hope you can replay you are the best, best regards
 
@OSOS can you share documentation dude?

can you scrape the full documentation and include it inside the zip?


The Template is Incomplete. It doesn't contain Starter Files So, we cannot create Size.

hello please can we get a zip file as doccumentation cause it's locked by account login, hope you can replay you are the best, best regards
here you go
 

Attachments

  • doc.zip
    17.2 MB · Views: 43
  • Like
Reactions: empyrium
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock