dsfoisadfje

Untitled

Nov 13th, 2024 (edited)
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // the data import statement allows us to access the json file we downloaded earlier. you can modify the content of the data such as different names, items, and pictures.
  2. // But make sure you understand how the key-value structure of this document works. Altering the keys will change how we 'access' the data.
  3.  
  4. import data from '../data/data.json';
  5. import Card from './Card';
  6.  
  7. function Dashboard() {
  8.     console.log(data)
  9.     // Insert state to store items, initialized with data from JSON file
  10.     return (
  11.         <div className="relative my-12 flex flex-col items-center">
  12.             {/* TITLE */}
  13.             <h1 className="poppins-bold flex-row text-2xl">Who's Invited?</h1>
  14.            <hr className="mb-4 mt-2 w-1/3 border-black" />
  15.  
  16.            {/* Event List Grid */}
  17.            <div className="relative z-10 grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
  18.                {/* Map through items and render a Card component for each in the section below */}
  19.                <Card
  20.                img='/images/sample1.webp'
  21.                name='Alan Roybal'
  22.                bringing='Fruit'
  23.                status='Going'
  24.                />
  25.            </div>
  26.        </div>
  27.    );
  28. }
  29.  
  30. export default Dashboard;
  31.  
Advertisement
Add Comment
Please, Sign In to add comment