Skip to content

Commit

Permalink
fix: base url in pdf path
Browse files Browse the repository at this point in the history
  • Loading branch information
pReya committed Jan 17, 2024
1 parent 30a781d commit c772a3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/pages/en/playbook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {
} from "@components";
import LinkNewTab from "@components/LinkNewTab.astro"
import Lightbox from "@components/Lightbox.astro"
import CommonUtils from "@util/CommonUtils";
export const baseUrl = CommonUtils.getBaseUrl(false);

<WideCard
bg={3}
Expand All @@ -40,7 +42,7 @@ import Lightbox from "@components/Lightbox.astro"

<div class="container-width grid grid-cols-12 p-0 md:pt-24">
<HeadlineUnderlined large variant={12} className="pt-10 pb-8 sm:py-0 col-span-5 mb-10">Read the Playbook</HeadlineUnderlined>
<object type="application/pdf" data="/playbook/HowToTolocar_Playbook_EN_ES.pdf" width="100%" height="800px" className="w-full md:col-span-12"></object>
<object type="application/pdf" data={baseUrl + "/playbook/HowToTolocar_Playbook_EN_ES.pdf"} width="100%" height="800px" className="w-full md:col-span-12"></object>
</div>

<div class="container-width grid grid-cols-1 md:grid-cols-12 gap-8 py-8 md:py-24">
Expand Down
6 changes: 4 additions & 2 deletions src/pages/ua/playbook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {
} from "@components";
import LinkNewTab from "@components/LinkNewTab.astro"
import Lightbox from "@components/Lightbox.astro"
import CommonUtils from "@util/CommonUtils";
export const baseUrl = CommonUtils.getBaseUrl(false);


<WideCard
Expand All @@ -39,8 +41,8 @@ import Lightbox from "@components/Lightbox.astro"
</div>

<div class="container-width grid grid-cols-12 p-0 md:pt-24">
<HeadlineUnderlined large variant={12} className="pt-10 pb-8 sm:py-0 col-span-5 mb-10">Прочитайте практичний посібник</HeadlineUnderlined>
<object type="application/pdf" data="/playbook/HowToTolocar_Playbook_UA_ES.pdf" width="100%" height="800px" className="w-full md:col-span-12"></object>
<HeadlineUnderlined large variant={12} className="pt-10 pb-8 sm:py-0 col-span-8 mb-10">Прочитайте практичний посібник</HeadlineUnderlined>
<object type="application/pdf" data={baseUrl + "/playbook/HowToTolocar_Playbook_UA_ES.pdf"} width="100%" height="800px" className="w-full md:col-span-12"></object>
</div>

<div class="container-width grid grid-cols-1 md:grid-cols-12 gap-8 py-8 md:py-24">
Expand Down

0 comments on commit c772a3b

Please sign in to comment.