-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-docs-next
- Loading branch information
Showing
30 changed files
with
311 additions
and
186 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: 2 | ||
updates: | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- dependencies | ||
commit-message: | ||
prefix: "⬆️ Actions" | ||
rebase-strategy: auto | ||
|
||
# Maintain dependencies for npm | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- dependencies | ||
commit-message: | ||
prefix: "⬆️ NPM" | ||
rebase-strategy: auto |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Template } from 'tinacms'; | ||
|
||
export const bookingTemplate: Template = { | ||
label: 'Booking', | ||
name: 'booking', | ||
fields: [ | ||
{name: 'title', label: 'Title', type: 'string'}, | ||
{name: 'description', label: 'Description', type: 'string'}, | ||
], | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import React, { useEffect, useState } from 'react' | ||
import Link from 'next/link' | ||
import Image from 'next/image' | ||
import { FaChevronRight } from 'react-icons/fa' | ||
import { fetchMeetingLinks } from 'utils/getMeetingLinks' | ||
|
||
export type BookingItem = { | ||
name: string | ||
description: string | ||
image: string | ||
url: string | ||
} | ||
|
||
const BookingCard = ({ cardItem }) => { | ||
const isValidImage = (url) => { | ||
return url && (url.startsWith('http') || url.startsWith('/')) | ||
} | ||
|
||
return ( | ||
<Link href={cardItem.url || '#'}> | ||
<div className="relative p-2 mb-4 rounded-md group flex flex-col md:flex-row lg:flex-row w-full h-full items-center justify-between bg-background p-4 shadow transition transform duration-200 hover:scale-105 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring text-blue-800 hover:text-blue-700 bg-gradient-to-br from-white/25 via-white/50 to-white/75 sm:pt-1"> | ||
{isValidImage(cardItem.image) && ( | ||
<Image | ||
src={cardItem.image} | ||
alt={`${cardItem.name} Portrait`} | ||
className="hidden md:block w-24 h-24 rounded-full mr-4" | ||
width={96} | ||
height={96} | ||
/> | ||
)} | ||
<div className="flex-grow text-center md:text-left lg:pl-4 lg:text-left"> | ||
<div className="font-medium text-3xl">{cardItem.name}</div> | ||
<div className="text-muted-foreground text-md"> | ||
{cardItem.description} | ||
</div> | ||
</div> | ||
<div className="flex-shrink-0 sm:self-center"> | ||
<FaChevronRight className="h-10 w-10 text-muted-foreground pr-6" /> | ||
</div> | ||
</div> | ||
</Link> | ||
) | ||
} | ||
|
||
const BookingBlock = ({ data, index }) => { | ||
const [meetingPeople, setMeetingPeople] = useState<BookingItem[]>([]); | ||
|
||
useEffect(() => { | ||
const fetchData = async () => { | ||
const meetingPeopleData = await fetchMeetingLinks(); | ||
setMeetingPeople(meetingPeopleData); | ||
} | ||
|
||
fetchData(); | ||
}, []); | ||
|
||
if (!meetingPeople.length) return null; | ||
|
||
return ( | ||
<div className="flex justify-center"> | ||
<div className="md:my-18 lg:w-1/2 p-6 sm:pt-1 container mx-auto px-4"> | ||
<div className="flex justify-center mb-6 step-indicator items-center"> | ||
<div className="step flex flex-col items-center relative z-10"> | ||
<div className="step-icon w-6 h-6 border-2 border-orange-300 flex items-center justify-center rounded-full"></div> | ||
<p className="text-center absolute bottom-[-20px] text-xxs md:text-xs whitespace-nowrap"> | ||
CHOOSE LOCATION | ||
</p> | ||
</div> | ||
<div className="indicator-line h-0.5 w-20 md:w-40 bg-gray-300"></div> | ||
<div className="step flex flex-col items-center relative z-10"> | ||
<div className="step-icon w-6 h-6 border-2 border-gray-300 flex items-center justify-center rounded-full"></div> | ||
<p className="text-center absolute bottom-[-20px] text-xxs md:text-xs whitespace-nowrap"> | ||
CHOOSE TIME | ||
</p> | ||
</div> | ||
<div className="indicator-line h-0.5 w-20 md:w-40 bg-gray-300"></div> | ||
<div className="step flex flex-col items-center relative z-10"> | ||
<div className="step-icon w-6 h-6 border-2 border-gray-300 flex items-center justify-center rounded-full"></div> | ||
<p className="text-center absolute bottom-[-20px] text-xxs md:text-xs whitespace-nowrap"> | ||
YOUR INFO | ||
</p> | ||
</div> | ||
</div> | ||
<div className="grid gap-3 my-16 px-10 py-12 md:bg-gradient-to-br from-white/25 via-white/50 to-white/75 break-inside-avoid md:shadow-md rounded-lg"> | ||
<h1 className="w-full text-center inline-block m-0 md:text-4xl font-tuner lg:text-4xl text-2xl whitespace-nowrap lg:leading-tight bg-gradient-to-br from-orange-400 via-orange-500 to-orange-600 bg-clip-text text-transparent"> | ||
{data.title} | ||
</h1> | ||
<h3 className="w-full text-center mb-6 inline-block m-0 pb-4 text-lg md:whitespace-nowrap lg:leading-tight text-black"> | ||
{data.description} | ||
</h3> | ||
{meetingPeople.map((cardItem, idx) => ( | ||
<BookingCard key={idx} cardItem={cardItem} /> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
} | ||
|
||
export { BookingBlock } |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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
Oops, something went wrong.