new file: download/Otryvok_1.pdf
Some checks failed
Deploy Nuxt App / deploy (push) Failing after 50s

new file:   download/Otryvok_2.pdf
	modified:   nuxt.config.ts
	modified:   package.json
	modified:   pages/books/[slug].vue
	modified:   pages/books/_data/1.json
	modified:   pages/books/_data/2.json
This commit is contained in:
2025-07-27 08:55:28 +04:00
parent 1fd718a0a0
commit 42a6225e99
7 changed files with 14 additions and 9 deletions

View File

@ -104,7 +104,11 @@
</NuxtLink>
</li>
<li class="flex flex-row items-center">
<NuxtLink to="#" class="flex flex-col items-center gap-8 cursor-pointer">
<a
download
:href="book.download"
class="flex flex-col items-center gap-8 cursor-pointer"
>
<img
src="/img/svg/books/download.svg"
alt="Скачай отрывок"
@ -113,7 +117,7 @@
/>
<UiParagraph size="250" as="span"> Скачай отрывок </UiParagraph>
</NuxtLink>
</a>
</li>
<li class="flex flex-row items-center">
<NuxtLink
@ -167,7 +171,6 @@ import { useRoute, useRouter } from '#app'
import UiHeading from '@/components/Typography/UiHeading.vue'
import UiParagraph from '@/components/Typography/UiParagraph.vue'
import UiButton from '@/components/UiButton/UiButton.vue'
import { useSelectedBook } from '@/store/useSelectedBook'
interface BookDetail {
id: number
@ -189,6 +192,7 @@ interface BookDetail {
}>
href: string
hrefTitles: string
download: string
}
const route = useRoute()