Skip to content

Commit

Permalink
v1 added booking section with mobile responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
git-create-devben committed Jul 24, 2024
1 parent aaaad2d commit 771bb9a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/api/gemini/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function POST(req: NextRequest) {
const stream = new TransformStream();
const writer = stream.writable.getWriter();

const writeChunk = async (chunk: string) => {
const writeChunk = async (chunk: { type: string; data: any }) => {
await writer.write(encoder.encode(JSON.stringify(chunk) + '\n'));
};

Expand Down Expand Up @@ -59,7 +59,7 @@ export async function POST(req: NextRequest) {
}

function extractServiceKeywords(input: string): string | null {
const keywords = ["plumber", "electrician", "mechanic", "restaurant", "dentist"];
const keywords = ["plumber", "nearby", 'downtown', 'near me', "any", "electrician", "mechanic", "restaurant", "dentist"];
const lowercaseInput = input.toLowerCase();

for (const keyword of keywords) {
Expand Down
5 changes: 4 additions & 1 deletion components/booking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export function Booking({
id="link"
defaultValue="1234567890"
readOnly
className="outline-none bg-white/15 border-none rounded-tl-2xl "
disabled
className="hover:border-none bg-white/15 border-none outline-none rounded-tl-2xl "
/>
</div>
<div>
Expand All @@ -76,11 +77,13 @@ export function Booking({
id="link"
defaultValue="1234567890"
readOnly
disabled
className="outline-none bg-white/15 border-none rounded-tr-2xl"
/>
</div>
</div>
</div>
<span>{mapLink}</span>
<div className="">
<iframe
title={locationName}
Expand Down
7 changes: 7 additions & 0 deletions components/cardoption.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

export const CardOption = () => {
return (
<div>CardOption</div>
)
}

0 comments on commit 771bb9a

Please sign in to comment.