%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/var/www/html/pages/terms-and-conditions/
Upload File :
Create Path :
Current File : //proc/self/root/var/www/html/pages/terms-and-conditions/index.js

import Contact from "../../src/Components/Contact";
import CustomHead from "../../src/Components/Global/CustomHead";
// import Image from "next/image";
import { ArrowsRightBlack } from "../../src/Components/Icons";

function TermsAndConditions({ data, title, seo }) {
  return (
    <>
      <CustomHead data={seo} />
      <div className="termsAndConditions">
        <h2>{title}</h2>

        <div className="tcLanguages">
          <div className="language">
            <h3>{data.english_description}</h3>
            <a
              href="/General-terms-atvbuggy-dubrovnik.pdf"
              target="_blank"
              rel="noreferrer"
            >
              <button
                className="book bokunButton"
                id="bokun_aae68d0c_785b_444c_81e3_12cc7225b5bd"
                data-src="https://widgets.bokun.io/online-sales/0d4eaba0-0578-4436-8cbd-fac0d53a0473/experience/706501?partialView=1"
                data-testid="widget-book-button"
              >
                {" "}
                <div className="arrows">
                  <ArrowsRightBlack />
                </div>
                <span>English</span>
              </button>
            </a>
          </div>
          <div className="language">
            <h3>{data.hr_opis}</h3>
            <a
              href="/Opci-uvjeti-atvbuggy-dubrovnik.pdf"
              target="_blank"
              rel="noreferrer"
            >
              <button
                className="book bokunButton"
                id="bokun_aae68d0c_785b_444c_81e3_12cc7225b5bd"
                data-src="https://widgets.bokun.io/online-sales/0d4eaba0-0578-4436-8cbd-fac0d53a0473/experience/706501?partialView=1"
                data-testid="widget-book-button"
              >
                {" "}
                <div className="arrows">
                  <ArrowsRightBlack />
                </div>
                <span>Hrvatski</span>
              </button>
            </a>
          </div>
        </div>
      </div>
      <Contact />
    </>
  );
}

export default TermsAndConditions;
export async function getServerSideProps(ctx) {
  const res = await fetch(
    `https://api.atvbuggy-dubrovnik.com/wp-json/wp/v2/pages?slug=terms-and-conditions`
  )
    .then((response) => response.json())
    .then((data) => data);

  if (!res) {
    return {
      notFound: true,
    };
  }

  return {
    props: {
      data: res[0].acf,
      title: res[0].title.rendered,
      seo: res[0].yoast_head_json,
    },
  };
}

Zerion Mini Shell 1.0