Very Nice! is the prompt accessible from the stack?
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 togrid
, which allows us to create a grid layout. Thegrid-template-columns
property uses therepeat
function to create four columns that will automatically adjust to fit the available space. Theminmax
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. Theauto-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, thegap
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.
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.
Pretty amazing. How many folks have bought this stack?
This is pretty interesting stuff, but I’m a bit confused. How is this different from just opening up a Safari tab and using ChatGPT for free? Can you explain what makes it worth the $40 price tag?
Yes, I was wondering that too.
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.
Thanks @yabdab.
I just created an offsite page using this tip and it’s working great. MacGPT - a free app worth checking out! - #3 by habitualshaker
I’m into the idea of AI and curious to see the potential in Stacks. However, this isn’t for me. Still, I wish you luck with it and it’ll definitely be an interesting one to watch.