StacksGPT?

6 Likes

Very Nice! is the prompt accessible from the stack?

1 Like

Really, Stacks GPT would write a flexbox grid? (No, while I’m tempted, I’m not going to say it!) This is how Chat GPT answers that question — even it has heard of CSS Grid, and it’s not supposed to have done any learning for four years! (And, note, no need for any media queries.)

Here’s an example of CSS that creates a responsive 4 column grid:

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid-item {
  background-color: #f2f2f2;
  padding: 20px;
}

Explanation:

  • The .grid class sets the display property to grid, which allows us to create a grid layout. The grid-template-columns property uses the repeat function to create four columns that will automatically adjust to fit the available space. The minmax function sets a minimum width of 250 pixels and a maximum width of 1 fraction unit (1fr). This means that the columns will be at least 250 pixels wide, but will expand to fill any remaining space equally. The auto-fit keyword allows the columns to wrap to a new row when the available space is too small to fit them all in one row. Finally, the gap property sets the spacing between grid items to 20 pixels.
  • The .grid-item class sets the background color to light gray (#f2f2f2) and adds padding to create some space around the content inside each grid item.

To use this grid in your HTML, you would create a container element with the .grid class, and then add child elements with the .grid-item class:

<div class="grid">
  <div class="grid-item">Column 1</div>
  <div class="grid-item">Column 2</div>
  <div class="grid-item">Column 3</div>
  <div class="grid-item">Column 4</div>
</div>

This will create a responsive grid with four columns that adjust to fit the available space, with a 20 pixel gap between each item.

Yes, It is a preview only solution that can be used without ever leaving RapidWeaver.

2 Likes
5 Likes

This looks very interesting, Mike. Is your new stack already working with current version of Stacks, or will it work with the upcoming StacksPro app?

Already works with Stacks 5 Plugin and will DEFINITELY run in Stacks Pro when it is released.

4 Likes

Pretty amazing. How many folks have bought this stack?

Yes, I was wondering that too.

@PeterSmall

StacksGPT eliminates the need to open multiple windows or switch between different applications, streamlining the development process and saving users time and effort.

I understand not everyone will want ( or need ) this, but some will.

I hope this answers your question.