This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import '../styles/globals.css' | |
| import '../styles/index.css'; | |
| import {DataItemsProvider} from '../contexts/dataContext'; | |
| function MyApp({ Component, pageProps }) { | |
| return ( | |
| <DataItemsProvider> | |
| <div className="bg-gray-800 pattern py-5"> | |
| <Component {...pageProps} /> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Head from 'next/head'; | |
| import { table, minifyRecords } from './api/utils/airtable'; | |
| import {DataItemsContext} from '../contexts/dataContext'; | |
| import Navbar from '../components/Navbar'; | |
| import DataItem from '../components/DataItem'; | |
| import {useEffect, useContext} from 'react'; | |
| export default function Home({initialDataItems}) { | |
| const { dataItems, setDataItems } = useContext(DataItemsContext); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| export default function DataItem({ dataItem }) { | |
| return ( | |
| <div> | |
| <div className="m-auto mt-10 py-3"> | |
| <div className="bg-white shadow-2xl" > | |
| <div> | |
| <img src={dataItem.fields.image} /> | |
| </div> |
OlderNewer