diff --git a/README.md b/README.md index 77711fad..6d299ab3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ +# Filecoin Dev Summit 2023 +Website Url: https://fildev.io/, +Links Page: https://fil.page/ + + + + +# Updating Copy +To update copy, please go to the `/content` folder and find `filecoin-dev-summit.tsx` which contains the content for the general page copy. To edit the Schedule, please open a github issue requesting a change you would like to make. + + # NEXT-SASS Why would I use this? @@ -18,7 +29,7 @@ npm install npm run dev ``` -Go to `http://localhost:3005` in your browser of choice. Enjoy! +Go to `http://localhost:10000` in your browser of choice. Enjoy! ### Scripts diff --git a/app/ipfs-camp/2024/head.tsx b/app/FDS-1/head.tsx similarity index 99% rename from app/ipfs-camp/2024/head.tsx rename to app/FDS-1/head.tsx index 70fabfd5..1ce9d975 100644 --- a/app/ipfs-camp/2024/head.tsx +++ b/app/FDS-1/head.tsx @@ -1,6 +1,7 @@ -import DefaultMetaTags from '@components/DefaultMetaTags'; import PlausibleScript from '@root/components/PlausibleScript'; +import DefaultMetaTags from '@components/DefaultMetaTags'; + export default async function Head({ params }) { return ( <> diff --git a/app/FDS-1/layout.tsx b/app/FDS-1/layout.tsx new file mode 100644 index 00000000..7d9dfcb6 --- /dev/null +++ b/app/FDS-1/layout.tsx @@ -0,0 +1,8 @@ +export default function RootLayout({ children }: { children: React.ReactNode }) { + return ( + +
{children} + + ); + } + \ No newline at end of file diff --git a/app/ipfs-thing/2023/head.tsx b/app/FDS-1/list/head.tsx similarity index 99% rename from app/ipfs-thing/2023/head.tsx rename to app/FDS-1/list/head.tsx index 70fabfd5..1ce9d975 100644 --- a/app/ipfs-thing/2023/head.tsx +++ b/app/FDS-1/list/head.tsx @@ -1,6 +1,7 @@ -import DefaultMetaTags from '@components/DefaultMetaTags'; import PlausibleScript from '@root/components/PlausibleScript'; +import DefaultMetaTags from '@components/DefaultMetaTags'; + export default async function Head({ params }) { return ( <> diff --git a/app/ipfs-camp/2024/layout.tsx b/app/FDS-1/list/layout.tsx similarity index 100% rename from app/ipfs-camp/2024/layout.tsx rename to app/FDS-1/list/layout.tsx diff --git a/app/FDS-1/list/page.tsx b/app/FDS-1/list/page.tsx new file mode 100644 index 00000000..3d85316d --- /dev/null +++ b/app/FDS-1/list/page.tsx @@ -0,0 +1,77 @@ +import '@root/global.scss'; + +import { headers } from 'next/headers'; +import { makeRequest } from '@root/common/utilities'; +import FooterTiny from '@root/components/FooterTiny'; +import ResponsiveNavbar from '@root/components/ResponsiveNavbar'; +import SectionEventPage from '@root/components/SectionEventPage'; +import { FILECOIN_DEV_SUMMIT_ICELAND_PAGE_CONTENT } from '@root/content/iceland-page-content'; +import { FILECOIN_DEV_SUMMIT_NAVIGATION_CONTENT, FOOTER_FILECOIN_DEV_SUMMIT_CONTENT } from '@root/content/fildevsummit/filecoin-dev-singapore-iceland-2023'; +import { FIL_DEV_SUMMIT_PAGE_STYLE_CONTENT } from '@root/content/fildevsummit/filecoin-dev-iceland'; + +export async function generateMetadata({ params, searchParams }) { + const title = 'FIL Dev Summit 2023: Iceland'; + const description = + 'FIL Dev Summit is a gathering of developers, builders, and engaged community members who want to contribute to the core protocol and network evolution of Filecoin (think IPFS Thing, but bigger!).'; + const url = 'https://fildev.io'; + + return { + title, + description, + url, + openGraph: { + title, + description, + url, + // SUMMARY_LARGE_IMAGE: 1500x785 + images: ['https://i.ibb.co/XXgFfk0/twitter.png'], + }, + twitter: { + title, + description, + url, + handle: '@filecoin', + cardType: 'summary_large_image', + }, + }; +} + +export default async function Page(props) { + const blocks = FILECOIN_DEV_SUMMIT_ICELAND_PAGE_CONTENT; + const footerContent = FOOTER_FILECOIN_DEV_SUMMIT_CONTENT; + + const navContent = FILECOIN_DEV_SUMMIT_NAVIGATION_CONTENT; + const pageStyle = FIL_DEV_SUMMIT_PAGE_STYLE_CONTENT; + + const currentHeaders = headers(); + const host = currentHeaders.get('host'); + + const promises = blocks.flatMap((innerBlocks) => { + return innerBlocks.block.map(async (blockItem) => { + // Fetch table data + const airtableData = blockItem.scheduleData.airtable.endPoint; + + let tableData = await makeRequest({ + endpoint: airtableData, + host: host, + }); + + // Set data to blockItem.scheduleData.airtable.data + blockItem.scheduleData.airtable.data = tableData; + }); + }); + + await Promise.all(promises); + + return ( +{description}
} -{description}
} -{item.title}
)} @@ -31,11 +31,11 @@ export default function CampNavbarLogoMiddle({ navContent }) {{item.title}
{item.title}
)} @@ -87,15 +87,15 @@ function Dropdown({ dropdown }) { {dropdownItem?.header &&{dropdownItem.title}
- +{dropdownItem?.date}
diff --git a/components/Collapsable.tsx b/components/Collapsable.tsx
index 570004b9..d780c0cd 100644
--- a/components/Collapsable.tsx
+++ b/components/Collapsable.tsx
@@ -1,7 +1,7 @@
'use client';
import styles from '@components/Collapsable.module.scss';
-import { MarkdownToJSX } from './Markdown';
+import { MarkdownToJSX } from './MarkdownToJSX';
import { useState } from 'react';
import PlusSVG from './svgs/PlusSVG';
@@ -26,7 +26,7 @@ export function Collapsable({ id, title, backgroundColor, textColor, collapsedTe
{isExpanded && (
{event.name}
diff --git a/components/Footer.tsx b/components/Footer.tsx index e545265e..30875f2c 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -100,7 +100,7 @@ export default function Footer({ disclaimer, filResourcesCard, contactUsCard, so{label}
} - {title &&{date}
} - {location && ( -- {location} -
- )} -{description}
} +{label}
} + {title &&{date}
} + {location && ( ++ {location} +
+ )} +{description}
} -{subtitle}
} ++ + {rightSubheading} + +
+ )} +{description}
} ++ {subtitle} +
+ )} +Loading
+{mediaItem.title}
} - -{mediaItem.subtitle}
} - {smallDesc &&{mediaItem.smallDesc}
} -{mediaItem.desc}
} -{mediaItem.title}
} + + +{mediaItem.title}
} -{mediaItem.subtitle}
} - {smallDesc &&{mediaItem.smallDesc}
} -{mediaItem.description}
} -{mediaItem.subtitle}
} + {smallDesc &&{mediaItem.smallDesc}
}{mediaItem.desc}
} +