mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 02:01:29 +10:00
implement reorder/moving of sections between blocks
This commit is contained in:
@ -1,8 +1,23 @@
|
||||
import React from "react";
|
||||
import React, { useContext } from "react";
|
||||
import TemplateContext from "../../../contexts/TemplateContext";
|
||||
import styles from "./Artboard.module.css";
|
||||
|
||||
const Artboard = () => {
|
||||
return <div className={styles.container}></div>;
|
||||
const { blocks } = useContext(TemplateContext);
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<div className={`grid gap-8 grid-cols-${blocks.length}`}>
|
||||
{blocks.map((block, ind) => (
|
||||
<div key={ind} className="col-span-1">
|
||||
{block.map((x) => (
|
||||
<div key={x.id}>{x.name}</div>
|
||||
))}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Artboard;
|
||||
|
||||
Reference in New Issue
Block a user