The Renaissance Neighborhood of Tulsa recognizes that our community is built on the original land assigned to two Native Muscogee Creek Citizens, Emma Adeline "Addie" Perryman and Mary Jane Perryman. The Perrymans were prominent Tulsans, often called the “First Family of Tulsa.” To learn more about these Creek women and other neighborhood history, visit the RNA History Project.
+
+
+
+
A Little History Lesson
The Renaissance Neighborhood Association was established in 1994. An early accomplishment was successfully preventing the demolition of the Casa Loma Building at 11th and Columbia Ave. This building is now known as the historic Max Campbell Building and is listed on the National Register of Historic Places. It has been completely renovated and is open for business today.
diff --git a/src/pages/events.js b/src/pages/events.js
index 7edd29d..a417fbf 100644
--- a/src/pages/events.js
+++ b/src/pages/events.js
@@ -1,4 +1,5 @@
import React from 'react'
+import { DateTime } from 'luxon'
import Title from '@/components/title'
import Banner from '@/components/banner'
@@ -13,10 +14,11 @@ import YardSale from '@/images/wix/8ddcb11aa53c45ce954624a4aea25994.jpg'
import First from '@/images/wix/events/scavenger-hunt/first.png'
import Second from '@/images/wix/events/scavenger-hunt/second.png'
import styles from '@/styles/events.module.css'
-import sectionStyles from '@/styles/section.module.css'
-import { documentToHtmlString } from '@contentful/rich-text-html-renderer'
import { fetchEvents } from '@/lib/contentful/entries'
+import { renderComponents } from '@/lib/contentful/render'
+import { formatDateTime } from '@/lib/utils'
+
const CHILIFEST_IMAGES = [
require('@/images/wix/ChiliFest/BannerOnTable.jpg'),
@@ -61,25 +63,33 @@ const PARKFEST_IMAGES = [
export async function getStaticProps() {
return {
props: {
- events: await fetchEvents({order: 'fields.date'})
+ events: await fetchEvents({ order: 'fields.date' })
}
}
}
-function Event({event}) {
- const __html = documentToHtmlString(event.fields.content)
+function Event({ event }) {
+ const { title, date, location, content } = event.fields
+
+ const formatDate = (date) => {
+ return formatDateTime(date, { weekday: true })
+ }
return <>
-
+
-
{event.fields.title}
-
+
{title}
+
+ {date &&
{formatDate(date)}
}
+ {location &&
{location}
}
+
+ {renderComponents(content)}
>
}
-export default function Events({events}) {
+export default function Events({ events }) {
return <>
Events
diff --git a/src/pages/index.js b/src/pages/index.js
index f4ed91c..0b60e97 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -1,10 +1,11 @@
import React from 'react'
import Title from '@/components/title'
+import { DateTime } from 'luxon'
import { css } from 'twin.macro'
import { Gallery, GalleryText, GalleryButtons, GalleryButton } from '@/components/gallery'
-import { UpcomingEventsSection, UpcomingEvent} from '@/components/home/upcoming-events'
-import { WhatsNewsSection, WhatsNewsItem} from '@/components/home/whats-news'
+import { UpcomingEventsSection, UpcomingEvent } from '@/components/home/upcoming-events'
+import { WhatsNewsSection, WhatsNewsItem } from '@/components/home/whats-news'
import RNAalbum7 from '@/images/wix/home-page/gallery/RNAalbum7.jpg';
const IMAGES = [
@@ -23,30 +24,32 @@ import RNAshirt1 from '@/images/wix/home-page/news/RNAshirt1.jpg'
import Alert from '@/images/wix/home-page/news/Alert.jpg'
import NewRNAsign1 from '@/images/wix/home-page/news/NewRNAsign1.jpg'
-import { documentToHtmlString } from '@contentful/rich-text-html-renderer'
+import { renderComponents } from '@/lib/contentful/render'
import { fetchEvents } from '@/lib/contentful/entries'
+import { writeRedirects } from '@/lib/contentful/netlify-redirects'
+import { formatDateTime } from '@/lib/utils'
export async function getStaticProps() {
+ await writeRedirects()
+
return {
props: {
- events: await fetchEvents({order: 'fields.date'})
+ events: await fetchEvents({ order: 'fields.date' })
}
}
}
-function UpcomingEventContent({event}) {
- const field = event.fields.content
- const __html = documentToHtmlString({
- ...field,
- content: field.content.slice(0, 1)
- })
+function UpcomingEventContent({ event }) {
+ const { title, date, location, content } = event.fields
-return <>
-
- >
+ return