Skip to content

Commit

Permalink
training exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumeet Singh authored and Sumeet Singh committed Oct 24, 2024
1 parent 53b3618 commit 6256d06
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Empty file added blocks/row/row.css
Empty file.
16 changes: 16 additions & 0 deletions blocks/row/row.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default function decorate(block) {
console.log(block);

Check warning on line 2 in blocks/row/row.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement

// setup image columns
[...block.children].forEach((row,index) => {
debugger;
console.log(row)

Check warning on line 7 in blocks/row/row.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
row.classList.add(`row-${index + 1}`);

[...row.children].forEach((col,index) => {
col.classList.add(`columns-${index + 1}`);

});
});
}

0 comments on commit 6256d06

Please sign in to comment.