Browse Source
fix (UI) : UI of hero , DownloadApp , customTour , sections and header changed changed
main
fix (UI) : UI of hero , DownloadApp , customTour , sections and header changed changed
main
sina_sajjadi
1 week ago
20 changed files with 252 additions and 217 deletions
-
4public/locales/en/common.json
-
13src/app/[locale]/(client-components)/(Header)/LangDropdown.tsx
-
11src/app/[locale]/(client-components)/(Header)/MainNav1.tsx
-
25src/app/[locale]/(client-components)/(Header)/MyTripButton.tsx
-
6src/app/[locale]/(client-components)/(Header)/SearchDropdown.tsx
-
32src/app/[locale]/(home)/SectionDowloadApp.tsx
-
58src/app/[locale]/(server-components)/SectionHero.tsx
-
159src/app/[locale]/custom-trip/page.tsx
-
2src/app/[locale]/page.tsx
-
128src/components/SectionCustomTour.tsx
-
2src/components/SectionGridFeaturePlaces.tsx
-
4src/components/UserMenu.tsx
-
BINsrc/images/Frame 412.png
-
BINsrc/images/Free Mockup - iPhone 16 Pro Max copy 1.png
-
BINsrc/images/Vector.png
-
BINsrc/images/map.png
-
BINsrc/images/material-symbols-light_language.png
-
3src/images/material-symbols-light_language.svg
-
3src/images/mynaui_search.svg
-
19src/shared/Navigation/NavigationItem.tsx
@ -0,0 +1,25 @@ |
|||
import { useUserContext } from "@/components/contexts/userContext"; |
|||
import Link from "next/link"; |
|||
import { MdOutlineCardTravel } from "react-icons/md"; |
|||
|
|||
function MyTripButton() { |
|||
|
|||
const {user} = useUserContext() |
|||
|
|||
|
|||
if (!Object.keys(user).length) { |
|||
return null |
|||
} |
|||
return ( |
|||
<div> |
|||
<Link |
|||
href="/my-trips" |
|||
className="self-center text-2xl md:text-[28px] w-12 h-12 rounded-full text-neutral-700 dark:text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 focus:outline-none flex items-center justify-center" |
|||
> |
|||
<MdOutlineCardTravel size={25} /> |
|||
</Link> |
|||
</div> |
|||
); |
|||
} |
|||
|
|||
export default MyTripButton; |
@ -1,68 +1,76 @@ |
|||
import React, { FC } from "react"; |
|||
import rightImgPng from "@/images/our-features.png"; |
|||
import Image, { StaticImageData } from "next/image"; |
|||
import Badge from "@/shared/Badge"; |
|||
import BackgroundSection from "@/components/BackgroundSection"; |
|||
import React from "react"; |
|||
import BackgroundImage from "@/images/Frame 412.png"; |
|||
import Image from "next/image"; |
|||
import ButtonPrimary from "@/shared/ButtonPrimary"; |
|||
|
|||
export interface SectionCustomTourProps { |
|||
className?: string; |
|||
rightImg?: StaticImageData; |
|||
type?: "type1" | "type2"; |
|||
} |
|||
|
|||
const SectionCustomTour: FC<SectionCustomTourProps> = ({ |
|||
className = "lg:py-14", |
|||
rightImg = rightImgPng, |
|||
type = "type1", |
|||
}) => { |
|||
const SectionDownloadApp = () => { |
|||
return ( |
|||
<div |
|||
className={`nc-SectionCustomTour relative flex flex-col items-center ${ |
|||
type === "type1" ? "lg:flex-row" : "lg:flex-row-reverse" |
|||
} ${className}`}
|
|||
data-nc-id="SectionCustomTour" |
|||
> |
|||
<div className="flex-grow"> |
|||
<Image src={rightImg} alt="" /> |
|||
</div> |
|||
<div |
|||
className={`max-w-2xl flex-shrink-0 mt-10 lg:mt-0 lg:w-2/5 ${ |
|||
type === "type1" ? "lg:pl-16" : "lg:pr-16" |
|||
}`}
|
|||
> |
|||
|
|||
<h2 className="font-semibold text-4xl mt-5">Custoum Tour </h2> |
|||
|
|||
<ul className="space-y-10 mt-16"> |
|||
<li className="space-y-4"> |
|||
<span className="block text-xl font-semibold"> |
|||
Cost-effective advertising |
|||
</span> |
|||
<span className="block mt-5 text-neutral-500 dark:text-neutral-400"> |
|||
With a free listing, you can advertise your rental with no upfront |
|||
costs |
|||
</span> |
|||
</li> |
|||
<li className="space-y-4"> |
|||
<BackgroundSection className="relative h-[455px] lg:py-32 xl:py-40 rounded-lg flex items-center sm:text-left sm:pl-12 lg:pl-56 xl:overflow-hidden bg-gray-900 text-center"> |
|||
{/* Background Image */} |
|||
<Image |
|||
className="absolute inset-0 object-cover object-right z-0" // Dim the background image for contrast
|
|||
alt="Custom Tour Background" |
|||
src={BackgroundImage} |
|||
fill |
|||
/> |
|||
|
|||
<span className="block mt-5 text-neutral-500 dark:text-neutral-400"> |
|||
Millions of people are searching for unique places to stay around |
|||
the world |
|||
</span> |
|||
</li> |
|||
<li className="space-y-4"> |
|||
<span className="block mt-5 text-neutral-500 dark:text-neutral-400"> |
|||
A Holiday Lettings listing gives you a secure and easy way to take |
|||
bookings and payments online |
|||
</span> |
|||
</li> |
|||
<li className="space-y-4"> |
|||
<ButtonPrimary>Custoum Tour</ButtonPrimary> |
|||
</li> |
|||
</ul> |
|||
{/* Content Wrapper */} |
|||
<div className="relative z-10 "> |
|||
<h1 className="text-white text-4xl md:text-5xl lg:text-6xl font-bold leading-tight"> |
|||
Create |
|||
</h1> |
|||
<h1 className="text-white text-4xl md:text-5xl lg:text-6xl font-bold leading-tight"> |
|||
Custom Tour |
|||
</h1> |
|||
<p className="text-white text-lg mt-4 opacity-80"> |
|||
Create your personalized tour and design the |
|||
</p> |
|||
<p className="text-white text-lg mt-4 opacity-80"> |
|||
perfect travel experience tailored to your preferences. |
|||
</p> |
|||
<ButtonPrimary className="mt-8 px-8 py-3 text-lg">Custom Tour</ButtonPrimary> |
|||
</div> |
|||
</div> |
|||
</BackgroundSection> |
|||
); |
|||
}; |
|||
|
|||
export default SectionCustomTour; |
|||
export default SectionDownloadApp; |
|||
// import BackgroundSection from "@/components/BackgroundSection";
|
|||
// import React from "react";
|
|||
// import BackgroundImage from "@/images/Frame 412.png";
|
|||
// import Image from "next/image";
|
|||
// import ButtonPrimary from "@/shared/ButtonPrimary";
|
|||
|
|||
// const SectionDownloadApp = () => {
|
|||
// return (
|
|||
// <BackgroundSection className="relative h-[455px] pl-56 pb-0 pt-24 lg:py-32 xl:py-40 rounded-lg overflow-hidden flex items-center bg-gray-900 bg-opacity-50">
|
|||
// {/* Background Image */}
|
|||
// <Image
|
|||
// className="absolute inset-0 object-cover z-0" // Dim the background image for contrast
|
|||
// alt="Custom Tour Background"
|
|||
// src={BackgroundImage}
|
|||
// fill
|
|||
// />
|
|||
|
|||
// {/* Content Wrapper */}
|
|||
// <div className="relative z-10 ">
|
|||
// <h1 className="text-white text-4xl md:text-5xl lg:text-6xl font-bold leading-tight">
|
|||
// Create
|
|||
// </h1>
|
|||
// <h1 className="text-white text-4xl md:text-5xl lg:text-6xl font-bold leading-tight">
|
|||
// Custom Tour
|
|||
// </h1>
|
|||
// <p className="text-white text-lg mt-4 opacity-80">
|
|||
// Create your personalized tour and design the
|
|||
// </p>
|
|||
// <p className="text-white text-lg mt-4 opacity-80">
|
|||
// perfect travel experience tailored to your preferences.
|
|||
// </p>
|
|||
// <ButtonPrimary className="mt-8 px-8 py-3 text-lg">Custom Tour</ButtonPrimary>
|
|||
// </div>
|
|||
// </BackgroundSection>
|
|||
// );
|
|||
// };
|
|||
|
|||
// export default SectionDownloadApp;
|
After Width: 1520 | Height: 553 | Size: 443 KiB |
After Width: 298 | Height: 536 | Size: 152 KiB |
After Width: 136 | Height: 358 | Size: 24 KiB |
After Width: 920 | Height: 455 | Size: 55 KiB |
After Width: 24 | Height: 24 | Size: 759 B |
@ -0,0 +1,3 @@ |
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|||
<path d="M12 21C10.7613 21 9.59467 20.7633 8.5 20.29C7.40533 19.816 6.452 19.1727 5.64 18.36C4.828 17.5473 4.18467 16.594 3.71 15.5C3.23533 14.406 2.99867 13.2393 3 12C3 10.7573 3.23667 9.58967 3.71 8.497C4.184 7.40367 4.82733 6.45133 5.64 5.64C6.45267 4.82867 7.406 4.18533 8.5 3.71C9.59467 3.23667 10.7613 3 12 3C13.2427 3 14.4103 3.23667 15.503 3.71C16.5963 4.184 17.549 4.82733 18.361 5.64C19.173 6.45267 19.816 7.405 20.29 8.497C20.7633 9.59033 21 10.758 21 12C21 13.2387 20.7633 14.4053 20.29 15.5C19.816 16.5947 19.1727 17.548 18.36 18.36C17.5473 19.172 16.595 19.8153 15.503 20.29C14.411 20.7647 13.2433 21.0013 12 21ZM12 20.008C12.5867 19.254 13.0707 18.5137 13.452 17.787C13.8327 17.0603 14.1423 16.247 14.381 15.347H9.619C9.88367 16.2977 10.1997 17.1363 10.567 17.863C10.935 18.5897 11.4127 19.3047 12 20.008ZM10.727 19.858C10.2603 19.308 9.83433 18.628 9.449 17.818C9.06367 17.0087 8.777 16.1847 8.589 15.346H4.754C5.32733 16.5893 6.13967 17.6093 7.191 18.406C8.243 19.202 9.42167 19.686 10.727 19.858ZM13.273 19.858C14.5783 19.686 15.757 19.202 16.809 18.406C17.8603 17.6093 18.6727 16.5893 19.246 15.346H15.412C15.1587 16.1973 14.8397 17.0277 14.455 17.837C14.0697 18.647 13.6757 19.3213 13.273 19.858ZM4.346 14.347H8.381C8.305 13.9363 8.25167 13.5363 8.221 13.147C8.189 12.7583 8.173 12.376 8.173 12C8.173 11.624 8.18867 11.2417 8.22 10.853C8.25133 10.4643 8.30467 10.0643 8.38 9.653H4.347C4.23833 9.99967 4.15333 10.3773 4.092 10.786C4.03067 11.194 4 11.5987 4 12C4 12.4013 4.03033 12.8063 4.091 13.215C4.15167 13.6237 4.23667 14.0007 4.346 14.346M9.381 14.346H14.619C14.695 13.936 14.7483 13.5427 14.779 13.166C14.811 12.79 14.827 12.4013 14.827 12C14.827 11.5987 14.8113 11.21 14.78 10.834C14.7487 10.458 14.6953 10.0647 14.62 9.654H9.38C9.30467 10.064 9.25133 10.4573 9.22 10.834C9.18867 11.21 9.173 11.5987 9.173 12C9.173 12.4013 9.18867 12.79 9.22 13.166C9.25133 13.542 9.30567 13.9353 9.381 14.346ZM15.62 14.346H19.654C19.7627 14 19.8477 13.623 19.909 13.215C19.9697 12.8063 20 12.4013 20 12C20 11.5987 19.9697 11.1937 19.909 10.785C19.8483 10.3763 19.7633 9.99933 19.654 9.654H15.619C15.695 10.064 15.7483 10.4637 15.779 10.853C15.811 11.2423 15.827 11.6247 15.827 12C15.827 12.3753 15.8113 12.7577 15.78 13.147C15.7487 13.5363 15.6953 13.9363 15.62 14.347M15.412 8.654H19.246C18.66 7.38467 17.8573 6.36467 16.838 5.594C15.8187 4.82333 14.6303 4.333 13.273 4.123C13.7397 4.737 14.1593 5.43933 14.532 6.23C14.9047 7.02 15.198 7.828 15.412 8.654ZM9.619 8.654H14.381C14.117 7.71533 13.7913 6.86667 13.404 6.108C13.0167 5.34933 12.5487 4.644 12 3.992C11.4513 4.64333 10.9833 5.34867 10.596 6.108C10.2087 6.86733 9.88233 7.716 9.619 8.654ZM4.755 8.654H8.589C8.803 7.82867 9.09633 7.02067 9.469 6.23C9.84167 5.43933 10.2613 4.737 10.728 4.123C9.35867 4.33367 8.16733 4.827 7.154 5.603C6.14067 6.38033 5.34067 7.397 4.754 8.653" fill="#838E92"/> |
|||
</svg> |
@ -0,0 +1,3 @@ |
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|||
<path d="M16.893 16.92L19.973 20M19 11.5C19 13.4891 18.2098 15.3968 16.8033 16.8033C15.3968 18.2098 13.4891 19 11.5 19C9.51088 19 7.60322 18.2098 6.1967 16.8033C4.79018 15.3968 4 13.4891 4 11.5C4 9.51088 4.79018 7.60322 6.1967 6.1967C7.60322 4.79018 9.51088 4 11.5 4C13.4891 4 15.3968 4.79018 16.8033 6.1967C18.2098 7.60322 19 9.51088 19 11.5Z" stroke="#D09460" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
|||
</svg> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue