@@ -53,6 +53,21 @@ var git = []FeatureTuple{
5353 {" skip" , " Skip" },
5454}
5555
56+ var frontend = []FeatureTuple {
57+ {" htmx" , " HTMX" },
58+ {" react" , " React" },
59+ }
60+
61+ var frontendAdvanced = []FeatureTuple {
62+ {" tailwind" , " Tailwind CSS" },
63+ }
64+
65+ var advanced = []FeatureTuple {
66+ {" githubaction" , " CI/CD workflow setup using Github Actions." },
67+ {" websocket" , " Adds a Websocket endpoint." },
68+ {" docker" , " Docker configuration for go project." },
69+ }
70+
5671var options = OptionsStruct {
5772 ProjectName : " my_project" ,
5873 SelectedBackend : " standard-library" ,
@@ -83,40 +98,64 @@ templ Form() {
8398 </div >
8499 </div >
85100 <div class =" space-y-6" >
86- <div class =" flex justify-between px-4" >
87- <div class =" w-1/4" >
88- @ FeatureBlock (FeatureBlockProps{
89- Title : " Backend" ,
90- FeatureOptions : backend,
91- GroupName : " backend" ,
92- })
101+ // First row with Backend, Database, and Git
102+ <div class =" bg-white shadow sm:rounded-lg" >
103+ <div class =" flex justify-center gap-32 px-4" >
104+ <div class =" w-1/4" >
105+ @ FeatureBlock (FeatureBlockProps{
106+ Title : " Backend" ,
107+ FeatureOptions : backend,
108+ GroupName : " backend" ,
109+ })
110+ </div >
111+ <div class =" w-1/4" >
112+ @ FeatureBlock (FeatureBlockProps{
113+ Title : " Database" ,
114+ FeatureOptions : databases,
115+ GroupName : " database" ,
116+ })
117+ </div >
118+ <div class =" w-1/4" >
119+ @ FeatureBlock (FeatureBlockProps{
120+ Title : " Git" ,
121+ FeatureOptions : git,
122+ GroupName : " git" ,
123+ })
124+ </div >
93125 </div >
94- <div class =" w-1/4" >
95- @ FeatureBlock (FeatureBlockProps{
96- Title : " Database" ,
97- FeatureOptions : databases,
98- GroupName : " database" ,
99- })
100- </div >
101- <div class =" w-1/4" >
102- @ FeatureBlock (FeatureBlockProps{
103- Title : " Git" ,
104- FeatureOptions : git,
105- GroupName : " git" ,
106- })
126+ </div >
127+
128+ // Second row with Frontend and Frontend Advanced
129+ <div class =" bg-white shadow sm:rounded-lg" >
130+ <div class =" flex justify-center gap-32 px-4" >
131+ <div class =" w-1/4" >
132+ @ FeatureBlock (FeatureBlockProps{
133+ Title : " Frontend" ,
134+ FeatureOptions : frontend,
135+ GroupName : " frontend" ,
136+ })
137+ </div >
138+ <div class =" w-1/4" >
139+ @ FeatureBlockCheckbox (FeatureBlockProps{
140+ Title : " Frontend Advanced" ,
141+ FeatureOptions : frontendAdvanced,
142+ GroupName : " frontedAdvancedOptions" ,
143+ })
144+ </div >
107145 </div >
108146 </div >
109- <div class =" max-w-4xl mx-auto px-4" >
110- @ FeatureBlockCheckbox (FeatureBlockProps{
111- Title : " Advanced" ,
112- FeatureOptions : []FeatureTuple {
113- {" htmx" , " HTMX support using Templ." },
114- {" githubaction" , " CI/CD workflow setup using Github Actions." },
115- {" websocket" , " Adds a Websocket endpoint." },
116- {" tailwind" , " Adds Tailwind config and allows for using the Tailwind CLI to compile css based on classes used." },
117- },
118- GroupName : " advancedOptions" ,
119- })
147+
148+ // Third row with Advanced
149+ <div class =" bg-white shadow sm:rounded-lg" >
150+ <div class =" flex justify-center px-4" >
151+ <div class =" w-1/4" >
152+ @ FeatureBlockCheckbox (FeatureBlockProps{
153+ Title : " Advanced" ,
154+ FeatureOptions : advanced,
155+ GroupName : " advancedOptions" ,
156+ })
157+ </div >
158+ </div >
120159 </div >
121160 </div >
122161 </form >
0 commit comments