alva icon indicating copy to clipboard operation
alva copied to clipboard

Integrate with static site generator? Like Gatsby

Open voordev opened this issue 6 years ago • 3 comments

Is your feature request related to a problem? Please describe. Very promosing project but the exported code is 'somewhat' encrypted. Is it possible to somehow export the generated layout in gatsby format like:

const IndexPage = () => (
  <Layout>
    <ComposerHero />
    <UseCases />
    <DividerSection />
    <SupportedBy />
    <DividerSection />
    <WallOfLove />
    <DividerSection />
    <Cta />
    <DividerSection />
    <Blog />
    <DividerSection />
    <Faq />
    <Footer />
  </Layout>
)

So you can use the program as a visual 'editor' It would be nice if it would output in a compatible way to static site generators like gatsby.

voordev avatar Jan 22 '19 14:01 voordev

Hey @voordev, let's have the discussion here: https://gitter.im/meetalva/Lobby?at=5c472b798ce4bb25b8f0e6fe

tilmx avatar Jan 23 '19 10:01 tilmx

Alva is the best tool so far after evaluating all the options. Basically exactly perfect for my needs except it does not 'export' What I would like is have output that defines the components and attributes so you get code, that you can import in your existing projects.

For example building a gatsby static site, one would be able to copy and paste the prototyped structure of several components.

So I want to build the prototype THEN get output like this ( with attributes like hero text and here title, so the content of the components )

const IndexPage = () => (
  <Layout>
    <ComposerHero />
    <UseCases />
    <DividerSection />
    <SupportedBy />
    <DividerSection />
    <WallOfLove />
    <DividerSection />
    <Cta />
    <DividerSection />
    <Blog />
    <DividerSection />
    <Faq />
    <Footer />
  </Layout>
)

voordev avatar Jan 30 '19 12:01 voordev

YES. This would be SO MUCH WIN.

Ideally, Alva would output a Gatsby Theme. Imagine the power :boom:

gunar avatar Feb 20 '19 20:02 gunar