-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85cdb8f
commit ba500f8
Showing
12 changed files
with
297 additions
and
74 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
3 changes: 3 additions & 0 deletions
3
...ite. The scene should depict a welcoming medical environment with a .webp:Zone.Identifier
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,3 @@ | ||
[ZoneTransfer] | ||
ZoneId=3 | ||
HostUrl=https://chat.openai.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
"use client" | ||
|
||
import MapContainer from "@/components/MapContainer" | ||
import MaxWidthWrapper from "@/components/MaxWidthWrapper" | ||
import { Button, buttonVariants } from "@/components/ui/button" | ||
import { cn } from "@/lib/utils" | ||
import Image from "next/image" | ||
import Link from "next/link" | ||
|
||
const Page = () => { | ||
return ( | ||
<> | ||
|
||
<section className="relative bg-cover bg-center bg-no-repeat"> | ||
<Image | ||
fill | ||
src="/hero.webp" | ||
className="absolute inset-0 w-full h-full object-cover" | ||
alt="thank you for your order" | ||
/> | ||
<div className="absolute inset-0 bg-blue-400/75 sm:bg-transparent sm:from-blue-400/95 sm:to-blue-400/50 ltr:sm:bg-gradient-to-r sm:bg-gradient-to-l"></div> | ||
|
||
<div className="relative mx-auto max-w-screen-xl px-4 py-32 sm:px-6 lg:flex lg:h-screen lg:items-center lg:px-8"> | ||
<div className="max-w-xl text-center ltr:sm:text-left m:text-right"> | ||
<h1 className="text-3xl font-extrabold sm:text-5xl text-white"> | ||
Let us guide you to your | ||
<strong className="block font-extrabold text-blue-600"> Perfect Health Partner </strong> | ||
</h1> | ||
|
||
<p className="mt-4 max-w-lg sm:text-xl text-left text-white font-medium"> | ||
Find your ideal health ally with us, where personalized care meets expertise. Start your journey to wellness today with a consultation that understands you. | ||
</p> | ||
|
||
<div className="mt-8 flex flex-wrap gap-4 text-center"> | ||
<Link | ||
href='#map' | ||
className={ | ||
cn(buttonVariants({ | ||
variant: 'default', | ||
size: 'lg', | ||
}), "w-full px-12 sm:w-auto")}> | ||
Get Started | ||
</Link> | ||
|
||
<a | ||
href="#" | ||
className="block w-full rounded border-white border-2 bg-transparent px-12 py-3 text-sm text-white font-medium hover:bg-white shadow hover:text-blue-700 ease-in-out focus:outline-none focus:ring active:text-blue-500 sm:w-auto" | ||
> | ||
Learn More | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{/* <MaxWidthWrapper className="mt-12"> */} | ||
<MapContainer /> | ||
{/* </MaxWidthWrapper> */} | ||
</> | ||
) | ||
} | ||
|
||
export default Page |
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 |
---|---|---|
|
@@ -13,30 +13,37 @@ const inter = Inter({ subsets: ["latin"] }); | |
export const metadata = constructMetadata | ||
|
||
export default function RootLayout({ | ||
children, | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<WalletContextProvider> | ||
<html lang="en" className="h-full"> | ||
<body | ||
className={cn( | ||
"relative h-full font-sans antialiased", | ||
inter.className | ||
)} | ||
> | ||
<main className="relative flex flex-col min-h-screen"> | ||
<Providers> | ||
<Navbar /> | ||
<div className="flex-grow flex-1">{children}</div> | ||
<Footer /> | ||
</Providers> | ||
</main> | ||
return ( | ||
<WalletContextProvider> | ||
<html lang="en" className="h-full"> | ||
<head> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/dist/leaflet.css" | ||
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" | ||
/> | ||
</head> | ||
<body | ||
className={cn( | ||
"relative h-full font-sans antialiased", | ||
inter.className | ||
)} | ||
> | ||
<main className="relative flex flex-col min-h-screen"> | ||
<Providers> | ||
<Navbar /> | ||
<div className="flex-grow flex-1">{children}</div> | ||
<Footer /> | ||
</Providers> | ||
</main> | ||
|
||
<Toaster position="top-center" richColors /> | ||
</body> | ||
</html> | ||
</WalletContextProvider> | ||
); | ||
<Toaster position="top-center" richColors /> | ||
</body> | ||
</html> | ||
</WalletContextProvider> | ||
); | ||
} |
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,35 @@ | ||
import React, { useState } from 'react'; | ||
import { Map, Marker } from 'pigeon-maps'; | ||
import COORDS from '@/config'; | ||
import { Button } from './ui/button'; | ||
|
||
export function MapContainer() { | ||
const [showPrompt, setShowPrompt] = useState(true); | ||
|
||
const hidePrompt = () => { | ||
setShowPrompt(false); | ||
}; | ||
|
||
return ( | ||
<div className='relative bg-cover bg-center bg-no-repeat' id="map"> | ||
{showPrompt && ( | ||
<> | ||
<div className="z-[1000] absolute map-ui text-center"> | ||
<p className='text-3xl text-white mb-2 italic font-semibold'>Find your nearest clinic</p> | ||
<Button onClick={hidePrompt} size="lg" className="px-12 w-full sm:w-auto border-[2.5px] border-blue-600 bg-transparent font-semibold" variant="default">Show me</Button> | ||
</div> | ||
<div className="z-[999] absolute inset-x-0 top-[-1px] bottom-0 bg-blue-600/75 sm:bg-transparent sm:from-blue-500/95 sm:to-blue-500/25 ltr:sm:bg-gradient-to-r sm:bg-gradient-to-l"></div> | ||
</> | ||
)} | ||
<div className='pt-0'> | ||
<Map height={500} defaultCenter={[3.1390, 101.6869]} defaultZoom={11}> | ||
{COORDS.map((coordinate, index) => ( | ||
<Marker key={index} width={50} anchor={coordinate as [number, number]} /> | ||
))} | ||
</Map> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default MapContainer; |
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
Oops, something went wrong.