File tree Expand file tree Collapse file tree
src/components/AwesomeArcadeList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,8 +79,6 @@ export function AwesomeArcadeExtensionGroup({
7979 { ( ( ) => {
8080 switch ( layout ) {
8181 case "masonry" :
82- case "grid" :
83- default :
8482 return (
8583 < div
8684 id = { `${ title } ExtensionRow` }
@@ -113,6 +111,40 @@ export function AwesomeArcadeExtensionGroup({
113111 } ) }
114112 </ div >
115113 ) ;
114+ case "grid" :
115+ default :
116+ return (
117+ < div
118+ id = { `${ title } ExtensionRow` }
119+ className = "row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-3"
120+ >
121+ { exts . map ( ( ext , index ) => {
122+ return (
123+ < motion . div
124+ className = "col py-1"
125+ key = { ext . repo }
126+ custom = { index }
127+ variants = { CARD_VARIANTS }
128+ initial = "initial"
129+ animate = "animate"
130+ whileHover = "whileHover"
131+ whileTap = "whileTap"
132+ transition = { {
133+ type : "spring" ,
134+ stiffness : 260 ,
135+ damping : 20 ,
136+ } }
137+ >
138+ < AwesomeArcadeExtensionCard
139+ ext = { ext }
140+ highlight = { ext . repo === extToHighlight }
141+ pad = { index < exts . length - 1 || true }
142+ />
143+ </ motion . div >
144+ ) ;
145+ } ) }
146+ </ div >
147+ ) ;
116148 case "github" :
117149 return exts . map ( ( ext , index ) => {
118150 return (
Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ export function AwesomeArcadeToolGroup({
7878 { ( ( ) => {
7979 switch ( layout ) {
8080 case "masonry" :
81- case "grid" :
82- default :
8381 return (
8482 < div
8583 id = { `${ title } ToolRow` }
@@ -112,6 +110,40 @@ export function AwesomeArcadeToolGroup({
112110 } ) }
113111 </ div >
114112 ) ;
113+ case "grid" :
114+ default :
115+ return (
116+ < div
117+ id = { `${ title } ToolRow` }
118+ className = "row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-3"
119+ >
120+ { tools . map ( ( tool , index ) => {
121+ return (
122+ < motion . div
123+ className = "col py-1"
124+ key = { tool . repo }
125+ custom = { index }
126+ variants = { CARD_VARIANTS }
127+ initial = "initial"
128+ animate = "animate"
129+ whileHover = "whileHover"
130+ whileTap = "whileTap"
131+ transition = { {
132+ type : "spring" ,
133+ stiffness : 260 ,
134+ damping : 20 ,
135+ } }
136+ >
137+ < AwesomeArcadeToolCard
138+ tool = { tool }
139+ highlight = { tool . repo === toolToHighlight }
140+ pad = { index < tools . length - 1 || true }
141+ />
142+ </ motion . div >
143+ ) ;
144+ } ) }
145+ </ div >
146+ ) ;
115147 case "github" :
116148 return tools . map ( ( tool , index ) => {
117149 return (
You can’t perform that action at this time.
0 commit comments